Jump to content

How to turn off ceiling fan after no motion detected after 1 hour?


ahwman

Recommended Posts

Posted (edited)

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...

Edited by ahwman
Posted

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 

Posted

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 .

Posted (edited)

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

    --

Edited by larryllix
Posted

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.  

Guest
This topic is now closed to further replies.

×
×
  • Create New...