peterh Posted 19 hours ago Posted 19 hours ago Recently purchased a isy and a bunch of used Insteon and Zwave modules. I have a question regarding overriding timed events triggered by motion detectors. I spent a great deal of time reading and trying to understand Control verse Status (still scratching my head). Scenario, closet light triggered by a Insteon motion detector with a 1 minute timer. If you need to stay longer than 1 minute, paddle the switch ON to kill the timer. To restart the normal timed motion, paddle the switch OFF . This seems to be working for the most part with one exception, when you paddle off the switch, the motion detector can see you, it turns the light back on. Not sure how to perfect this, a delay somewhere ? I'm not a programmer, so my solution is probably not very eloquent. Please let me know if there is a better method to write this ------------------------------------------------- Motion turns On Switch If 'Motion Detector' is switched On (Control) And $Test1 is 0 Then Set 'Test Switch' On Wait 1 minute Set 'Test Switch' Off ------------------------------------------------- Override - Stop the Timer If 'Test Switch' is switched On (Control) >>> paddle the switch ON Then Stop program 'Motion turns on Switch' ------------------------------------------------- Set Variable >>>> (to prevent motion restarting timer) If 'Test Switch' is switched On (Control) And 'Test Switch' Status >= 1% (Status) Then $Test1 = 1 Else $Test1 = 0 >>>> when switch is paddled off ------------------------------------------------- Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.