UD2)17rrh Posted October 22, 2023 Posted October 22, 2023 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 Techman Posted October 22, 2023 Solution Posted October 22, 2023 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 1
larryllix Posted October 22, 2023 Posted October 22, 2023 "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. 2
UD2)17rrh Posted October 22, 2023 Author Posted October 22, 2023 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.
UD2)17rrh Posted October 22, 2023 Author Posted October 22, 2023 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. 1
Recommended Posts