Greetings,
On my gate with 2 wings I have on both wings a sensor to know if a wing is completely closed or not.
I also use the Garage door plugin for this gate ( with 1 of these sensors).
Occasionally some people don’t repect privacy and want to force the gate open. For that reason I have an old cellphone with veralerts , a bluetooth speaker and alarm sound installed near the gate.
What I want is; when someone pushes one of the wings open when the gate is locked , to sound an alarm.
I had this , which worked:
triggers:
-G_Gate_lock (garage door plugin)
-G_gate_right_sensor
-G_gate_left_sensor_
condition:
G_Gate_lock AND ( G_gate_left_sensor_ OR G_gate_right_sensor)
action:
veraalerts send message
This worked fine , untill I opened the gate (intentionally with the garagedoor plugin switch) , and I closed it again. When I closed the gate I got the alarm sound , which makes sense offcource , since the “G_Gate_lock” becomes true , and logically the 2 sensors are true as well, the whole condition became true.
How would I correct this , I don’t want to sound the alarm when I close the gate.
Thanks ,
Cor