SonoffLAN icon indicating copy to clipboard operation
SonoffLAN copied to clipboard

Fan presets should not be used for speeds

Open mouth4war opened this issue 2 years ago • 4 comments

Currently, Ifan entities have presets used for speeds (low, medium, high). While there is working speed control via fan speed percentage slider.

Actual use case for presets is for modes (like Auto or Breeze) not for fan speeds.

Presets should not be used for fan speeds as this is unnecessary and against HA design.

mouth4war avatar Jul 02 '22 10:07 mouth4war

Some users asked me to add presets. They not break anything. Sonoff devices don't have real presets. So I don't see any problem here.

AlexxIT avatar Jul 07 '22 10:07 AlexxIT

Can it at least be made optional via config? It clutters up homekit integration with unnecessary switches for each fan speed preset

mouth4war avatar Jul 08 '22 00:07 mouth4war

Can you please link me to the issue where someone requested fan speeds to be shown as presets? I am unable to find it

mouth4war avatar Jul 15 '22 17:07 mouth4war

Issue was accidentally deleted. I'll add a setting when have some free time

AlexxIT avatar Jul 25 '22 19:07 AlexxIT

This is still an on going issue. Can we get this bumped up a bit?

azuretower avatar Dec 13 '23 18:12 azuretower

Config will be:

devices:
  1000xxxxxx:
    preset_mode: False

AlexxIT avatar Feb 14 '24 17:02 AlexxIT

https://github.com/AlexxIT/SonoffLAN/releases/tag/v3.6.0

AlexxIT avatar Feb 16 '24 12:02 AlexxIT

Thank you for adding this but it didn't fix the real issue. When I add my ifan04 to Homekit it still shows up with 4 extra switches along with the speed slider. We would like it to only show up in Homekit with a speed selector.

azuretower avatar Feb 16 '24 20:02 azuretower

Can you see modes switch in the Hass GUI with this option?

AlexxIT avatar Feb 17 '24 04:02 AlexxIT

IMG_4041 It looks correct in HA. It removed the preset modes as expected. But in HomeKit it still looks like this. IMG_4042 The goal was to only have the fan speed slider without the extra switches.

azuretower avatar Feb 17 '24 04:02 azuretower

Check latest master version

AlexxIT avatar Feb 17 '24 10:02 AlexxIT

I downloaded the master version and it got rid of the extra homekit entities but now Home Assistant never thinks the fan is "on". if I use the speed control in home assistant it will turn the fan on but not show as on or show what speed it's set to. Also, Homekit should snap to 33% 66% and 100% on the speed slider.

azuretower avatar Feb 17 '24 13:02 azuretower

Don't think I have time to research HomeKit integration and this strange behaviour.

AlexxIT avatar Feb 19 '24 07:02 AlexxIT