Hello Rule Gurus ray:
I'm trying to setup a rule that will turn off the thermostat if the patio door is open for more than 5 minutes. Would appreciate if someone could help validate the logic as the rule doesnt seem to be firing. I've tried ensure that the logic handles cases where the door is closed within the 5 minutes
first rule
when patio door is open
set output 207 on for 5 mins
set counter x to 5
second rule
every 1 minute
that output 207 is on
then subtract 1 from counter x
third rule
when counter x is 0
and patio door is open
then turn tstat off
when patio door is closed
and output 207 is on
then set counte x to 6
turn output 207 off
just for clarity I'm also using a counter so i can trigger Homeseer to do a tts announcement once when the door is opened (counter =5) and second when there's a minute left to turn off the tstat (counter =2)
Appreicate the help
I'm trying to setup a rule that will turn off the thermostat if the patio door is open for more than 5 minutes. Would appreciate if someone could help validate the logic as the rule doesnt seem to be firing. I've tried ensure that the logic handles cases where the door is closed within the 5 minutes
first rule
when patio door is open
set output 207 on for 5 mins
set counter x to 5
second rule
every 1 minute
that output 207 is on
then subtract 1 from counter x
third rule
when counter x is 0
and patio door is open
then turn tstat off
when patio door is closed
and output 207 is on
then set counte x to 6
turn output 207 off
just for clarity I'm also using a counter so i can trigger Homeseer to do a tts announcement once when the door is opened (counter =5) and second when there's a minute left to turn off the tstat (counter =2)
Appreicate the help