acvigue / esphome-levoit-air-purifier

ESPHome custom component for Levoit branded smart WiFi air purifiers
https://vigue.me/
Other
31 stars 8 forks source link

No value for PM Sensor #9

Open Zerogiven opened 1 month ago

Zerogiven commented 1 month ago

Hi there,

First thanks a lot for doing this great work, it was one reason why i've choose the 300s purifier. Flashing worked like a charm and i already linked it to my HA instance.

The only "problem" i have, but maybe this is an expected behavior, i only get a value for the PM Sensor if i turn on the fan with manual or auto mode. So why is this a problem for me: Cause i want to turn the purifier on if the PM Sensor is above some value, otherwise i would like to put it into sleep mode. Another option would be that you can set it to 0 at manual mode (not working, 0-1 is the same fan speed at manual mode)

If it's an expected behavior, maybe you have an idea how i can "hack" it to get the PM sensor values also if the fan is in sleep mode.

I think the fan sleep mode is using the deep sleep from the esp32. Not sure, however, maybe we could make another mode where the esp32 is still running, but the fan has just 1% power (or something above where you still don't hear the fan).

cheers Christopher