phatmatt Posted November 17, 2020 Posted November 17, 2020 (edited) This seems like it would be an easy one to do, but Im not getting it. If any of the light switches in the master bath are on, and then any of them change to off, turn them all off.. Do I need to create variable when one goes on? Im lost. Please help Edited November 17, 2020 by phatmatt
oberkc Posted November 17, 2020 Posted November 17, 2020 There are probably opportunities to use scenes here, but below is a programmatic approach. I made the assumption that there is no harm in turning off switches that were already off. if status switch1 is off or status switch2 is off or status switch3 is off or.... then turn off switch1 turn off switch2 turn off switch3 turn off.... 1
phatmatt Posted November 17, 2020 Author Posted November 17, 2020 10 minutes ago, oberkc said: There are probably opportunities to use scenes here, but below is a programmatic approach. I made the assumption that there is no harm in turning off switches that were already off. if status switch1 is off or status switch2 is off or status switch3 is off or.... then turn off switch1 turn off switch2 turn off switch3 turn off.... Thanks Oberkc. I tried that before asking. That program wont let the lights stay on. If you turn on any of the lights, it turns it right back off. I can say it, LOL, but I cant create it. If any of the lights are on, and either of them changes to off, turn them all off.
lilyoyo1 Posted November 17, 2020 Posted November 17, 2020 1 hour ago, phatmatt said: Thanks Oberkc. I tried that before asking. That program wont let the lights stay on. If you turn on any of the lights, it turns it right back off. I can say it, LOL, but I cant create it. If any of the lights are on, and either of them changes to off, turn them all off. Post your program 2
phatmatt Posted November 17, 2020 Author Posted November 17, 2020 22 minutes ago, lilyoyo1 said: Post your program Master Bath Lights - [ID 001E][Parent 0001] If 'Master Bedroom / Bathroom / Matt's Sink' Status is Off Or 'Master Bedroom / Bathroom / Shelli's Sink' Status is Off Or 'Master Bedroom / Closet / Closet Switch' Status is Off Or 'Master Bedroom / Bathroom / Master Bath' Status is Off Then Set 'Master Bedroom / Bathroom / Matt's Sink' Off Set 'Master Bedroom / Bathroom / Shelli's Sink' Off Set 'Master Bedroom / Closet / Closet Switch' Off Set 'Master Bedroom / Bathroom / Master Bath' Off Else - No Actions - (To add one, press 'Action')
lilyoyo1 Posted November 17, 2020 Posted November 17, 2020 (edited) 5 minutes ago, phatmatt said: Master Bath Lights - [ID 001E][Parent 0001] If 'Master Bedroom / Bathroom / Matt's Sink' Status is Off Or 'Master Bedroom / Bathroom / Shelli's Sink' Status is Off Or 'Master Bedroom / Closet / Closet Switch' Status is Off Or 'Master Bedroom / Bathroom / Master Bath' Status is Off Then Set 'Master Bedroom / Bathroom / Matt's Sink' Off Set 'Master Bedroom / Bathroom / Shelli's Sink' Off Set 'Master Bedroom / Closet / Closet Switch' Off Set 'Master Bedroom / Bathroom / Master Bath' Off Else - No Actions - (To add one, press 'Action') This is why it doesn't work. You're looking at the status. If you only turn 1 light on and any of the rest are off, then the program will operate and turn off the lights Change status to control and it'll work If control a is switched off Or b Or c Or d Then set all of them off Edited November 17, 2020 by lilyoyo1 1
phatmatt Posted November 17, 2020 Author Posted November 17, 2020 24 minutes ago, lilyoyo1 said: This is why it doesn't work. You're looking at the status. If you only turn 1 light on and any of the rest are off, then the program will operate and turn off the lights Change status to control and it'll work If control a is switched off Or b Or c Or d Then set all of them off Yep that was it. TYVM 1
oberkc Posted November 17, 2020 Posted November 17, 2020 Sorry for the misdirection, @phatmatt. Thanks to lilyoyo for getting it right. 1 1
PurdueGuy Posted November 19, 2020 Posted November 19, 2020 You are also better off creating 1 scene with 4 responders. That way you can turn that scene off, and they all go off in unison, instead of one at a time in rapid succession ('popcorn effect'). 2
phatmatt Posted November 19, 2020 Author Posted November 19, 2020 36 minutes ago, PurdueGuy said: You are also better off creating 1 scene with 4 responders. That way you can turn that scene off, and they all go off in unison, instead of one at a time in rapid succession ('popcorn effect'). Funny you mentioned that. I noticed them going off one at a time, but hadnt looked into that yet. Thanks.
Recommended Posts