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.

only run then if device is on for x seconds

Featured Replies

Posted

all, i'm having not much luck with trying, and i am guessing i am not using the right search terms.

 

i'd like for the hidden door sensors to only beep if after 7 seconds the door is still open.

---------

if
       control sensor is on  <for 7 seconds>

then

        set buzzer relay on

        wait 1 second

        set buzzer relay off

else

        set buzzer off

 

i tried a few things but it isn't straight forward, i can;t use wait statements in [if] for example

anyone have an idea that works ?

Edited by bilsk

You'll need two programs and a spare device (you'll need to query the device because you can't query a battery powered device). Link the sensor as a controller of the spare device.

 

If

        Control 'sensor' is switched On

 

Then

        Wait 7 seconds

        Run 'program 2' (If)

 

Program 2

If

        Status 'spare device' is not off

 

Then

        set ...

 

Else

       set ...

  • Author

works like a champ ...! .. i'm still open for suggestions to do this on (1) program  :)

 

thanks

This may provide a single Program approach

 

OpenDoor - [iD 002F][Parent 0001]
 
If
        Control '2C.71.C2.1 - Door Sensor' is switched On
     Or Control '2C.71.C2.1 - Door Sensor' is not switched Off
 
Then
        Set 'ApplianceLinc' On
        Wait  7 seconds
        Set 'ApplianceLinc' Off
 
Else
        Set 'ApplianceLinc' Off
 
 

Edited by LeeG

bilsk

 

Apologies for poor sample.  Seven second Wait replaced the 1 second Wait rather than being added where it should have been.

 

OpenDoor - [iD 002F][Parent 0001]
 
If
        Control '2C.71.C2.1 - Door Sensor' is switched On
     Or Control '2C.71.C2.1 - Door Sensor' is not switched Off
 
Then
        Wait  7 seconds
        Set 'ApplianceLinc' On
        Wait  1 second
        Set 'ApplianceLinc' Off
 
Else
        Set 'ApplianceLinc' Off
 
Thanks Larry for the heads up.
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.