Hi Guys Here is my current rule, questions below:
rule "AC Filter Triggered Fire Light"
when
//Item AcFilterClear changed and
Time cron "0 0 0/1 1/1 * ? *" // Every hour when flag is set.
then
if( ( AcFilterClear.state == ON && Kitchen.state == ON ) && ( now.getHourOfDay > 8 && now.getHourOfDay < 21 ) ) {
Light1_Alert.sendCommand("LSELECT")
//mappings=[NONE="None", SELECT="Alert", LSELECT="Long Alert"]
logInfo(RuleLogName,"AcTriggered")
}
logInfo(RuleLogName,"Ran Cron Only in Home_triggers")
end
Question, can I setup a rule to say:
rule
when
Trigger A and
Trigger B
…
Also, can I trigger with something like when item on or an if statement? Vs item changed. I am trying to avoid having the hourly cron with the if in the body of rule. This is not a requirement but a curiosity.
Thanks!