Jump to content

If either of these are true....


phatmatt

Recommended Posts

Posted (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 by phatmatt
Posted

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....

  • Like 1
Posted
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.

Posted
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

  • Like 2
Posted
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')
 

Posted (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 by lilyoyo1
  • Thanks 1
Posted
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 

  • Like 1
Posted

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').

  • Like 2
Posted
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.

Guest
This topic is now closed to further replies.

×
×
  • Create New...