acvigue / esphome-levoit-air-purifier

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

Unexpected Behavior of Homeassistant Components #4

Open haydonryan opened 2 months ago

haydonryan commented 2 months ago

Me again. I apologize this is going to be a bit of a word soup.

My ESPhome is hooked up to homeassistant with my other devices. Overall working really really well. The integration creates 1 device and 10 entities.

The fan entity it isn't doing what I think it should be doing (and also not working per the old VEsync integration).

fan.office_purifier can be set to 0, 33%,66% and 100% switch.office_purifier_master_power (on or off). switch.office_purifier_master_power (Default, Quiet and Efficient)

The VEsync integration worked that 0 for fan.office_purifier (fan) was the fan not spinning. There was a switch for auto mode (on / off) and sleep mode (on / off).

With this integration if I set the fan to zero, this changes the select.office_purifier_fan_mode to go from manual to "auto" mode, which spins at a very slow speed. At the moment I'm overcoming this by also turning switch.office_purifier_master_power to off.

select.office_purifier_auto_mode stays on "default", but has options for Quiet and Efficient, but neither of these makes sense given that auto it's either on auto or not.

What I'd love to have happen is that setting the fan to 0, keeps the fan on manual, stops the fan from spinning (this would align it to the ceiling fan, and old vesync integration).

Currently if i turn on the purifier - I'll set the fan to 33% and that will turn it on, but to turn it off I have to use the master power switch.

haydonryan commented 2 months ago

We definitely need to adjust this - automatons fail to work properly in home assistant + homekit with ios..

EG upstairs right now my purifier is on 33% however master power is "off"

For Automations: Setting fan to zero% results in turning master power on (if it's showing off). Turning the master power off, resutls in the fan still showing 33% speed even though it's not running.

haydonryan commented 2 months ago

Sorry i know more information - When creating scenes in homeassistant you can only add per device, so one entity can't rely on another entity - eg can't set fan to 0% AND turn off master power - ends in a race condition.