View single post by slychiu
 Posted: Sunday Dec 7th, 2014 04:56 pm
 Full Topic 
slychiu



Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 5495
Status: 
Offline

  back to top

Conditional Programming

It is possible to program using Conditions, eg If the time is between 7 PM to 6 AM, and the front Door is opened, AND it is Monday AND the security system is Off, then switch on the kitchen lights for 10 minutes.

Go to Response Wizard and select the IF category




On the right properties pane, click on the right of Conditions.





select from the dropdown list  of conditions which appears





Two or more conditions can be combined using AND or OR

select the Attribute on the right pane, eg Hours
Then select the Comparison;=,  >, >=, <, <>
and the Value to compare, as shown below.



The two or more conditional statements can be related by AND or OR by selecting on the right pane "Combine Conditions With". In the example, select OR




Insert the action to be perfomed if the condition is true, eg Output PorchlightOn


To be continued

Last edited on Monday Dec 8th, 2014 05:17 pm by slychiu

 Close Window