Page 1 of 1

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

Posted: Wednesday 22 May 2019 20:55
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

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

Posted: Wednesday 22 May 2019 21:33
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