I have an esphome-based controller that interfaces with my garage door open/close circuit to control door state, as well as a reed sensor to report state. The garage door state is in Alarmo as a door. If I accidentally tell HA to open the garage door, Alarmo triggers the alarm. That’s not what I want, since I asked for HA to open the garage door; it’s not a burglar forcing the door open.
Is there a way to preempt HA events like ‘switch.turn_on’ so that I tell Alarmo to turn off the alarm before it’s opened? (This is also important because I also want to retract the garage lock solenoid before processing the garage door open command).
The closest forum topic I could find is Intercepting, Handling an Event but that remains unresolved.