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.

What's wrong with this program

Featured Replies

Posted

What is wrong with this program? The Rear BR can light comes on if the conditions are affirmed. However, it does not turn off.

 


If

Time is Sunset - 15 minutes

And (

Status 'Fam Rm Key - Ceiling' is Off

And Status 'Fam Rm Table' is Off

And Status 'Kitchen Ceiling Keypad - A' is Off

)

And Status 'Rear Br Can' < 34%

 

Then

Set 'Rear Br Can' 70%

Wait 1 hour and 40 minutes

Set 'Rear Br Can' Off

 

Else

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

The first "then" statement changes the Rear BR Can lights to 70%, which triggers an evaluation of the "if" condition, which is now false. This happens before the program "then" statement is completed, which means that the Rear BR Can lights are never turned off.

When you use the wait command then the next time the program runs it re-evaluates the if statement and it is false so it doesn't do the next part.

 

Instead of doing a wait you should call a different program and not have anything in the if and in the then column put your wait and the the light action.

 

 

Sent from my iPhone using Tapatalk

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.