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.

Wait in program does not turn off device

Featured Replies

Posted

Hi all,

 

I have the following program which the thought is to have the device come on at sunset, wait four hours and then cut off. While the device will come on at sunset, it refuses to turn off after four hours.

 

If

        Status  'Front Entry (Outdoor)' is Responding

    And Time is Sunset 

    And Status  'Front Entry (Outdoor)' is Off

 

Then

        Set 'Front Entry (Outdoor)' On

        Wait  4 hours 

        Set 'Front Entry (Outdoor)' Off

 

Else

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

 

Is the above correct or am I missing something?

 

Thanks for any help.


Ed

The status check in your program is the problem. It forces a reevaluation when the light turns on and cancels the wait. This will do:

 

If

Time is sunset

 

Then

Set light on

Wait 4 Hours

Set light off

 

Else

 

 

 

 

-Xathros

 

Sent from my iPhone using Tapatalk

Edited by Xathros

  • Author

Excellent! Thanks for the help on that.

 

Ed

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.