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.

Programming Help

Featured Replies

Posted

Hi All

 

Need help with a simple program.  I'd like my hidden door sensor to trigger a hallway light to come for 5 minutes when the sensor is switched on. This is what I have so far

test sensor - [ID 014B][Parent 0032]

If
        Status  '32.7A.4D.1 - Door Sensor' is Off
 
Then
        Set 'Master Bedroom / M/Bedroom light' On
 
Else
   - No Actions - (To add one, press 'Action')


Edited by ldrinc

You want to use "Control" rather than status.  The hidden door sensor sends an off signal when door is closed.

 

 

Jon...

Hi 

Update the If statement to use Control / switched on (as jerlands suggested), and add the 2 lines to the then clause

 

test sensor - [ID 014B][Parent 0032]

If
        Control '32.7A.4D.1 - Door Sensor' is switched On
 
Then
        Set 'Master Bedroom / M/Bedroom light' On    

        Wait 5 minutes

        Set 'Master Bedroom / M/Bedroom light' Off

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

Edited by paulbates

  • Author

Thanks all...

 

Your suggestions fixed my issue.  Thanks again.

 

 

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.