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.

Simple programming if statement

Featured Replies

Posted

I'm using a switch to turn on several switches. Here's the problem, in the if statement, it shows percent on level for my trigger. How do I control it if I don't care what level on %, just anytime the button is turned on?

In the admin console > Help > About what does it show for firmware and UI version?

 

Some versions have both Status and Status(Old) and you'd need use Status.

 

 

Jon...

  • Author

I know it's the latest firmware but I will check when I'm home. If my memory serves me correctly, there was responding, and 1-100%. There wasn't status but I'll check again.

I'm using a switch to turn on several switches. Here's the problem, in the if statement, it shows percent on level for my trigger. How do I control it if I don't care what level on %, just anytime the button is turned on?

 

can you post a copy of your program

I'm using a switch to turn on several switches. Here's the problem, in the if statement, it shows percent on level for my trigger. How do I control it if I don't care what level on %, just anytime the button is turned on?

Use "switched" instead of "status"

 

If "status" is actually wanted then use "Not Off" or "> 0"

 

 

If one SwitchLinc is used to control light2 with Status,

and then light2  is turned off, but then wanted back on from the first SwitchLinc, "status" will not operate the second switch via a program.

 

"Switched" will trigger a program every time the switch paddle is operated.

"Status" will trigger a program only when the switch turns on the light.

 

 

Note: Earlier than v5.x ISY versions use

Control switchlinc is switched 'On'

 

while v5.+ uses

switchlinc is switched 'On'

 

The 'control' word may be disappearing.

Edited by larryllix

As Larry pointed out.. for dimmers you'd use "Not Off" where as relays have the option for On

 

 

Jon...

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.