Add assumed_state to fan template #3627
Unanswered
mvdwetering
asked this question in
Component enhancements
Replies: 1 comment
-
|
🏷️ I've automatically added the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Component name
fan
Link to component documentation on our website
https://esphome.io/components/fan/
Describe the enhancement
Add
assumed_stateto the fan component (or at least the fan template) similar to the cover component.Use cases
I am trying to setup an IR controlled ceiling fan. That in itself works fine, but the displayed state in Home Assistant can get out of sync with the actual fan (e.g. manual control with the normal IR remote) and then I need to flip the on/off switch twice because I cannot just press the off or on button (depending on how it is out of sync).
E.g. the fan (Ventilator) is now spinning, but the state in Home Assistant is Off, so I need to turn it on and off again to make it go off. Hmmm.. actually it is the same for the light, but I am not planning to use it. Just added all the commands the remote supports.

I have something similar for a cover that controls an RF projectorscreen for which I don't have state feedback, but there I could just set
assumed_state: trueon the cover template and in Home Assistant it would allow me to always press up/down. I also haveoptimistic: truefor the cover, not sure if that was really needed.Anything else?
For completeness, my fan template
Details
Beta Was this translation helpful? Give feedback.
All reactions