I have a usecase where I want to blink a ceiling light once for confirmation of a user action (in this case: long-pressing the light switch to temporarily deactivate an auto-off timeout). The blinking itself is not a problem, but I would like to avoid having a reported state change of the light in HA.
Reason for that is that I trigger another action as soon as the light is being switched off and I want to avoid triggering this action by the confirmation blinking.
Now I am sure I can find a rather complicated solution to this but I was wondering if there is a simple way to just locally control the relay for the short blinking without the binary light even changing its state.
Not all lights have this, but some do, so itâs worth a try. You can send a âflashâ to a light when you turn it on. This will cause it to blink once. AFAICT, the light will then return to itâs default âonâ state, which may be the previous state or some other state that is set as default. The âflashâ isnât counted as a change to an âoffâ state.
Thanks for the suggestion, that would be exactly what I need. Unfortunately it does not work in this case:
While I can call the turn_on service with data: flash: short, it will only blink once when the light was off before. If the light is already on it does nothing Iâm not exactly sure if this is the intended behaviour. Maybe a candidate for an esphome feature requestâŚ
Does anybody know if I can for example manipulate the output which is used in a binary light in esphome directly without changing the status of the light? That would allow me to create an esphome automation to get the intended effect.
Jep, that would be a workaround. Anyway I would rather keep it a bit less complicated if I can, making reuse of this functionality easier. Thanks for the suggestion anyway!