Interface not waiting for esphome template switch to report its new state #20069
Unanswered
etiennec78
asked this question in
Dashboard
Replies: 0 comments
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.
-
When trying to turn on an esphome template switch from Home Assistant, the UI shows the switch as activated, even if it reverted back to its original state.
For example, I have a gate which can be open only if someone is near home. I set up a template switch which evaluates these conditions.
However, if they are not met, I still see the switch as activated on the switch interface. If I tap it again, it sends an off command to the switch even though it is still technically off.
My solution would be to have an in-between state while the switch template hasn't reported its new state. Visually I think it should stay in the middle, grated out, with a clock icon instead of I/O. Once having received the new state, it would display it as usual.
This visual change could also be adapted to Android Auto interface. It would change the color of the icon and disable it while the template switch hasn't sended its new state.
Maybe we could also make it flash green or red to show the new state received.
Thanks for reading my feature request,
I hope it will be accepted by the team
Beta Was this translation helpful? Give feedback.
All reactions