Jump to content

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


ahwman

Recommended Posts

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

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

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

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

Archived

This topic is now archived and is closed to further replies.


  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

    • There are no registered users currently online
  • Forum Statistics

    • Total Topics
      36.9k
    • Total Posts
      370.2k
×
×
  • Create New...