I am trying to recreate some of my ADI CMAX routines in HS.
If X10 A1=on received ' motion sensor sends A1 on
then variable1 = 1 'yes motion
then timer1 = 1 'timer activated ;resets to 1 if new motion sensed
If timer1 becomes >=300 ' if timer gets to 300 with no new motion
then variable1 = 0 ' no motion
then timer1 = 0 'reset timer to 0 (stops it)
If variable1 becomes=1
turn my lamp on
If variable1 becomes-0
turn my lamp off
How in the world do I do something simple like this in homeseer? I don't see timers. I assume I can create virtual devices for "variables". And I don't see a "becomes =" trigger.
Thanks.
If X10 A1=on received ' motion sensor sends A1 on
then variable1 = 1 'yes motion
then timer1 = 1 'timer activated ;resets to 1 if new motion sensed
If timer1 becomes >=300 ' if timer gets to 300 with no new motion
then variable1 = 0 ' no motion
then timer1 = 0 'reset timer to 0 (stops it)
If variable1 becomes=1
turn my lamp on
If variable1 becomes-0
turn my lamp off
How in the world do I do something simple like this in homeseer? I don't see timers. I assume I can create virtual devices for "variables". And I don't see a "becomes =" trigger.
Thanks.
Comment