adrianByv / home-assistant-custom-components-switch-humidifier

Home Assistant custom component Switch Humidifier Platform
MIT License
18 stars 7 forks source link

Humidifier entity will turn off by itself #8

Closed auspic7 closed 3 years ago

auspic7 commented 3 years ago

image

It seems like to work properly but has a problem... When the sensor value reaches target humidity, it turns off the smart plug successfully, and it will turn off by itself in few seconds.

I know there's already a logic handles internal state change. But I still don't know why this won't work. https://github.com/adrianByv/home-assistant-custom-components-switch-humidifier/blob/b4d7b5c7eda1b4aaf1773c8fb4b780f2807b55d8/custom_components/switch_humidifier/humidifier.py#L216-L226

auspic7 commented 3 years ago

image

It is possible to happen a off -> off state transition because some switch have additional attribute other than power like current.

I am going to make some fix to resolve this problem.