Jump to content

Difference Between Control and Status


Go to solution Solved by Techman,

Recommended Posts

Posted

So this program is not running (ie not turning off the switch after five minutes).

Should I be using Control instead of Status in the "If" line?  If so, why?  I never seem to get the difference between the two.

Bathroom Fan Copy

If
        Status  'Second Floor / Bathroom Fan' is On
 
Then
        Wait  5 minutes 
 
Else
        Set 'Second Floor / Bathroom Fan' Off
 

Thanks very much.

  • Solution
Posted

This is how it should be written..  An else statement will only run if the IF statement is false.

IF

   Status 'Second Floor / Bathroom Fan' is On

Then

   Wait 5 minutes

    Set 'Second Floor / Bathroom Fan' Off

Else

 

  • Like 1
Posted

"Control" monitors signals that operate a device.
"Status" monitor the change of status inside a device.

If some devices sends ON...ON...ON... "Control" programs will trigger three times. "Status" programs will only trigger once if the device changes to ON.

This is classically used for Switchlinc switches. The light may already be on when somebody taps the up toggle switch. Status cannot detect that. Control could detect it and scroll the brightness level through 3 to 100 brightness levels on each tap.

  • Like 2
Posted
9 hours ago, Techman said:

An else statement will only run if the IF statement is false.

 

Thanks for the reply and the above now makes complete sense.  Thank-you.

Posted

 

7 hours ago, larryllix said:

"Control" monitors signals that operate a device.
"Status" monitor the change of status inside a device.

If some devices sends ON...ON...ON... "Control" programs will trigger three times. "Status" programs will only trigger once if the device changes to ON.

This is classically used for Switchlinc switches. The light may already be on when somebody taps the up toggle switch. Status cannot detect that. Control could detect it and scroll the brightness level through 3 to 100 brightness levels on each tap.

Thank-you  larryllix.  Very helpful.  

  • Like 1
Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.4k
×
×
  • Create New...