Trigger Switch A only when switch B changes state from On-> Off

Moderator: leecollings

Post Reply
superczar
Posts: 65
Joined: Wednesday 14 January 2015 12:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: India
Contact:

Trigger Switch A only when switch B changes state from On-> Off

Post by superczar »

TL;DR : I have a use-case which requires me to set Switch A to off when switch B switches off
However , I want this to happen only when switch B changes state from On to off i.e. if I switch A back On while B is off, it shouldn't be triggered off again.

Real life scenario - We get frequent powercuts, up to 2-3 a week
We have a DG backup that takes between a minute to two to start

When the utility power goes off, I have a ping switch that switches off and comes back on when utility power is back on
In such an event, I want my harmony hub to switch off my TV/AVR etc (which are on a UPS)
However, once the DG backup comes back on and if I switch the TV/AVR on again, standard blockly If-Do will trigger it back off unless the mains power is back again

I was hoping that I could trigger the harmony switch to off only when the ping switch changes state from on to off
For anything else (stays off or goes from off to on) , the harmony switch is not triggered
superczar
Posts: 65
Joined: Wednesday 14 January 2015 12:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: India
Contact:

Re: Trigger Switch A only when switch B changes state from On-> Off

Post by superczar »

Answered on another thread.
The solution was rather simple - Just trigger switch A to off via the off action in switch B settings
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest