Jump to content

Simple programming if statement


Mike1980

Recommended Posts

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?

Posted

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...

Posted

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.

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?

 

can you post a copy of your program

Posted (edited)

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
Posted

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.

×
×
  • Create New...