Just getting going in the Homey world and I just can’t figure out something so simple. I want any of two switches to turn on a light, then both switches need to be off to then turn the light off. I seems so simple using advance flow, I’m trying to get familiar on how do use advance flows. Please see below that does not work. The light turns on, but does not turn off when both switches go off. Thanks for any help!
Thanks for response, but still not sure what I have won’t work to turn off if both switches off. I guess I may not understand what turns the result “on” if a switch is “off” then take that result to control something.
You are correct, the bottom 2 card (off) are not trigger cards but AND cards.
BUT even if you replace them it will not work. Because the ALL card check at every trigger (it is not a wait untill).
2 trigger cards will never trigger at the same time so the ALL card will never be a YES.
SO
For both switched add the trigger (WHEN) card. Behind both connct the AND Card of the otherswitch (the ones you have at the bottom). Connect them bot to a ANY card (so replace your ALL card by an ANY card)
“when” in combination with “any” will also work, if you want the light to respond to one of the two triggers. The “all” card will never work, as it needs to originate from the same flow/when card. Then indeed you need to build in the “and card” to check for the other state.
In this case it was indeed both steps. replacing for a when card, and removing the " all” .
Hi @Chet_Brokhof ,
For the Is turned off Cards you use AND cards. They do not start without a WHEN card. So if you would start with Every 5 seconds (dumb/busy method) and then go to both cards your Homey would constantly check, if both are switches are off. The better idea is either the methods @Wim_Post, @Paul_van_Ulft and @DirkG showed, or you take the WHEN-Cards **turned off" connect them with any and then go to both cards you started with.
My old example is a bit more complex, but I guess you can adopt it to your needs.