I am using a PMS5003 on an ESP32 board and want to use the sleep mode. I am using the code example from https://espeasy.readthedocs.io/en/lates ... light=dust :
Code: Select all
On System#Boot do //When the ESP boots, do
looptimerset,1,300 // Start loop timer 1, 300 sec interval
timerSet,2,30 // Set timer 2 to put the sensor to sleep again
endon
On Rules#Timer=1 do
timerSet,2,30 // Set timer 2 to put the sensor to sleep again
pmsx003,wake
endon
On Rules#Timer=2 do
pmsx003,sleep
endon
My sensor is connected only through the RX and TX with ESP32. SET and RST are not connected. Did I understand the Wiki correctly that the sleep/wake command is performed thorugh the serial interface?
I attatched the settings of my sensor.pmsx003,sleep Either pulls the PWR_SET pin low, or writes sleep command to the sensor.