Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

If either of these are true....

Featured Replies

Posted

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

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

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

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

  • Author
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')
 

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

  • Author
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 

Sorry for the misdirection, @phatmatt.  Thanks to lilyoyo for getting it right.

 

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

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.