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.

Trouble with ELSE

Featured Replies

Posted

I thought anytime an IF became false, the program should become false and run the ELSE statement?  For the example below, if the Den Light is switched On then Off (while the program is still running), shouldn't it become false and run ELSE?  What if the program is not running, and I turn the Den Light Off.... should that cause it to evaluate the statement and run the ELSE?  With the following program, I can find no situation where the ELSE statement runs (Off, Fast-On/Off, Dim/Bright...)

 

If
        Control 'Upstairs / Den / Light' is switched On
 
Then
        Wait  10 seconds
        Set 'Upstairs / Den / Light' 36%
 
Else
        Set 'Upstairs / Master Bedroom / Bedroom Light' On
 
 

The "If Control 'xxxx' is switched On" never has a False evaluation. Add a check with not switched Off to have the Off command drive the Else

 

If

Control 'Upstairs / Den / Light' is switched On

And Control 'Upstairs / Den / Light' is not switched Off

Then

"If Status 'xxxx' is On" does have a False evaluation when the device is no longer On.

  • Author

Great - I knew it could be done, just wasn't sure what I had done wrong.  Thank you, Lee!

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.