#Disable fan presets

12 messages · Page 1 of 1 (latest)

normal fox
#

the matter-over-thread fan switches I got support fan speed when used for a ceiling fan, but not when used for an exhaust fan. is there any way that i can just disable presets/speeds on the exposed fan entity instead of creating a new helper?

willow prairie
#

Probably by overriding the supported_features flags via customize. Try this in your configuration.yaml:

homeassistant:
  customize:
    fan.bathroom_1:
      supported_features: 48
#

(fix the entity name to your entity)

normal fox
#

That's what I was looking for, thanks!

lucid python
#

Ive noticed that the fan spins very very slowly and would like to give it some more power on low setting but havent seen any option

#

You have any ideas?

normal fox
normal fox
# willow prairie Probably by overriding the supported_features flags via customize. Try this in y...

i just wanted to share this for anyone who finds this in the future through search

the way this "48" number was determined is from:
https://github.com/home-assistant/core/blob/6974f61703261ae329b76bb2d8884fec573350cb/homeassistant/components/fan/__init__.py#L56-L61

GitHub

:house_with_garden: Open source home automation that puts local control and privacy first. - home-assistant/core

#

the supported_features is a bitflags number, so you could think of the number in binary as a list of boolean options:
000001 - 1 - SET_SPEED
000010 - 2 - OSCILLATE
000100 - 4 - DIRECTION
001000 - 8 - PRESET_MODE
010000 - 16 - TURN_OFF
100000 - 32 - TURN_ON

#

so when you add the TURN_OFF and TURN_ON features together, you get the number 48, which is 110000 in binary