ESPHome is incredibly well thought out and written. Thank you for making this and sharing!
I’m using the PMS7003 sensor by reading it for 1 minute every 15 minutes, and making it sleep for 14mins. Doing this to minimize power as well as preserve the sensor life:
I’m using code like this to implement the sleep-wake-measure-sleep:
The problem is, the sensor needs to warm up for 30sec after it is up. Values for that time period should be ignored. So the cycle needs to look like:
00:00 sleep PMS7003 via set pin
14:00 wake up via set pin; ignore values for the next 30sec*
14:30 start taking measurements, once every two seconds
15:00 sleep PMS7003 via set pin
How can I implement the 30-second warm up period in ESPHome? Thank you.