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 'Light' is Greater Than 'Off'

Featured Replies

Posted

I am trying to create a simple 'turn light' off if forgotten program. I have had this working on other lights, but this is one that is controlled from other locations also, and has a default 'on' state of 80%. So... I am trying to capture any scenario that has the light either being controlled locally or remotely.

 

This doesn't seem to work though. The program ends the same second that it starts.

 

If
       Status  'Room Light' is 80%
    Or Control 'Room Light' is switched On
    Or Control 'Room Light' is switched Brighten
    Or Control 'Room Light' is switched Fast On
    Or Status  'Room Light' is On

Then
       Wait  1 hour 
       Set 'Room Light' Off

Else
  - No Actions - (To add one, press 'Action')

  • Author

I guess that I should have paid closer attention to the 'status' options.

I used '> Off' and it works very well. :oops:

 

I am curious why all the 'Or' commands caused this program to immediately end though.

Don't forget about the 'not' option, it handles all the code you have in one line.

 

If
       Status  'Room Light' is not Off

Then 
       Wait  1 hour 
       Set 'Room Light' Off 

Else 
  - No Actions - (To add one, press 'Action')

Create an account or sign in to comment

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.