I want all buzzers to go off if one leak sensor goes off
I want all buzzers to stop if I press any button for >3sec
Idea: Use a helper as “global variable”
What’s missing: I’d like to avoid maintaining automation with naming each single sensor and buzzer.
e.g.
create an automation to set a water alarm helper to TRUE if [list of leak sensors] activates
Create an automation to set the [list of buzzers] to buzzers to true if helper activates
Create an automation to set the helper to FALSE if [list of buttons] is pressed for >3sec
Can I avoid automation and set the helper to true from the D1
Can I make the D1 to simply subscribe to the helper and mirror it’s status to a GPIO (the buzzer)?
I can think of a few ways to make this happen. One way could be to use the Event action and have Home Assistant listen to this event in an automation.
As an example: I have a single automation that covers the auto-light turning on from all my presence sensors. Each sensor sends an event with the entity_id of the light and HA uses this to turn on the correct light.