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.

Help with the program.

Featured Replies

Posted

I trying to write a program to control my lights, and after unsuccessful attempts I decided to seek help from forum members.

 

            This is what I’m trying to accomplish if the light is “on” in the office, and motion sensor (located in the office) is normal then wait three minutes and run another program to double check that motion sensor is still  normal if its normal then wait three minutes and turn the light off, but if the motion sensor is “trouble” then leave the lights on. This is what I have so far any help would be greatly appreciated.

OFFICE - Check - [ID 0019][Parent 0018][Not Enabled]

If
        Status  'Office / 01 Office Main Light' is 100%
    And Elk Zone 'OFFICE MOTION SE' is Normal
 
Then
        Wait  3 minutes 
        Enable Program 'OFFICE - Light Off'
 
Else
   - No Actions - (To add one, press 'Action')
 

and here is the check program:

OFFICE - Light Off - [ID 001B][Parent 0018][Not Enabled]

If
        Elk Zone 'OFFICE MOTION SE' is Normal
 
Then
        Wait  1 minute 
        Set 'Office / 01 Office Main Light' 1 (Beep Duration)
        Wait  1 minute 
        Set 'Office / 01 Office Main Light' Off
        Set 'Office / 02 Office Desk Light' Off
 
Else
        Run Program 'OFFICE - Check' (If)
 

  • Author

I forgot to mention that the reason why I want my program to wait three minutes is due to wireless sensors that after they detect the motion they go to ”sleep” for three minutes.

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.