ahwman Posted June 9, 2015 Share Posted June 9, 2015 I'm trying to write a simple program that will turn off my ceiling fan if no motion from my Insteon motion dectector has been detected for over an hour. Any ideas on how best to accomplish this? Thank you... Link to comment
LeeG Posted June 9, 2015 Share Posted June 9, 2015 Each time Motion Sensor senses motion the Wait starts over, waiting for 1 hour. When no motion for 1 hour wait completes and Fan is turned Off. If Control 'Motion Sensor - Sensor' is switched On Then Wait 1 hour Set 'FanLinc - Fan' Off Else Link to comment
stusviews Posted June 9, 2015 Share Posted June 9, 2015 If control motion sensor is turned on Then wait 1 hour set fan off Each time motion is sensed the program runs, thus restarting the wait period . Link to comment
larryllix Posted June 9, 2015 Share Posted June 9, 2015 Each time Motion Sensor senses motion the Wait starts over, waiting for 1 hour. When no motion for 1 hour wait completes and Fan is turned Off. If Control 'Motion Sensor - Sensor' is switched On Then Wait 1 hour Set 'FanLinc - Fan' Off Else This is provided that you have a "direct link" between your MS and your fan tha you can install by creating a scene in ISY. If not you will require an extra line of code to turn the fan on. If Control 'Motion Sensor - Sensor' is switched On Then Set 'FanLinc - Fan' On Wait 1 hour Set 'FanLinc - Fan' Off Else -- Link to comment
LeeG Posted June 9, 2015 Share Posted June 9, 2015 There is no dependency on a "direct link" for this example to work. The OP did not discuss how he should turn the Fan On. Fan could be a member of a Scene, could be the Responder to a Controller Only device such as RemoteLinc2 (Mini Remote), etc. Hopefully the OP will post back if there is a question on turning Fan On. Certainly worthy noting though. Link to comment
ahwman Posted June 9, 2015 Author Share Posted June 9, 2015 I was able to get it working thanks to your help. This is a great community! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.