Greetings.
I have successfully automated my SONOFF gate switch.
In SONOFF, it’s set with a ‘nudge’ function, so an ‘ON’ is really only an ‘ON’ for half a second.
This emulates my pressing a button to open the gate: there are physical buttons, indoors and out.
Trouble, is, in Home Assistant, the button goes from blue to yellow – and stays that colour.
Ideally, it would go yellow for half a second, just to acknowledge the ‘hit’.
It works if I hit the button twice – colour goes back to blue (= waiting to be hit) – but this is ugly and counter-intuitive.
Any ideas as to how I might code this required brief colour-change?
I’m most grateful.
You can:
- use a script that turns the entity on and off and press the script in the UI. Optionally you can use an input button.
- use an automation that sets back your switch after it’s turned on.
Thank you.