Basically I need to open a network relay switch when there are active triggers in a host group. This will trigger an alarm for the surveillance team
The network relay is controllable via web so is quite easy to open it with a script:
wget http://relay/relay1=on
The problem is that I have only 1 relay for an host group, think of this:
trigger 1 = on -> relay open
trigger 2 = on -> relay stays open
trigger 2 = off -> relay closed
But trigger 1 is still active!
Obviously I can't use a network relay for every single trigger of the host group!
I need to find a way to close the relay ONLY when all triggers in the host group are off
Any idea??
The network relay is controllable via web so is quite easy to open it with a script:
wget http://relay/relay1=on
The problem is that I have only 1 relay for an host group, think of this:
trigger 1 = on -> relay open
trigger 2 = on -> relay stays open
trigger 2 = off -> relay closed
But trigger 1 is still active!
Obviously I can't use a network relay for every single trigger of the host group!
I need to find a way to close the relay ONLY when all triggers in the host group are off
Any idea??