I have PMS7003 dust sensor and sometimes it stops working, so I want to automatically reset it via Rules.
Have checked PMS7003 specs and it looks like we need to set Reset Pin Low, but in ESP Easy source I see this code for reset:
Code: Select all
// Toggle 'reset' to assure we start reading header
addLog(LOG_LEVEL_INFO, F("PMSx003: resetting module"));
pinMode(_resetPin, OUTPUT);
digitalWrite(_resetPin, LOW);
delay(250);
digitalWrite(_resetPin, HIGH);
pinMode(_resetPin, INPUT_PULLUP);