Jump to content

Programming outside ligth with insteon motion sensor


ctviggen1

Recommended Posts

Posted

I have read through this thread:

 

http://forum.universal-devices.com/topic/12824-how-to-program-an-insteon-motion-sensor/

 

And I don't think it answers my questions. So, I'll ask my questions here.

 

My situation is as follows.  I have an Insteon motion sensor controlled by my ISY 994i, and to only work at night and to report ons but not offs. 

 

I want to use it to control my garage lights. However, I want my garage lights (on/off switch, Insteon) to be on certain days of the week.  Here's the programming currently (in pseudo-code).

 

Program Garage Lights:

If

{

    it's the weekend from sunset to 10:30pm

    or

    it's during the week from sunset to 9 pm

}

then

    Set the garage lights on

else

    Set the garage lights off

 

Now, I want the garage lights to come on for 5 minutes if the motion sensor comes on, but I don't want the lights to turn off if it's in the time ranges above.  So, I created a second program to ignore motion sensor on events occurring within those times above, but to turn on the lights for five minutes if it's outside that time (I'm assuming the programming of the sensor to night means that the lights only come at night, so I ignored this time period).

 

Program Garage Lights if Lights On:

If

{

    Control 'Garage-sensor" is switched on

    And (the time periods from above, separated by "or")

}

then

    no actions

else

{

    Set the garage lights on

    Wait 5 minutes

    Set the garage lights off

}

 

Next, I wanted to ensure that if I manually turned off the lights (using Alexa) during the above time periods, the lights would still come on.  So I set up a third program:

 

Program Garage Lights if Lights Off:

If

{

    Control 'Garage-sensor" is switched on

    And status of 'garage lights' is off

    And (the time periods from above, separated by "or")

}

then

    Set the garage lights on

    Wait 5 minutes

    Set the garage lights off

else

{

    no actions

}

 

Do these seem reasonable?

 

Is there any way to condense this, particularly for the time periods (if I change the time periods, it would be nice to change them in one place instead of three).

 

Thank you. 

 

 

 

 

 

   

Guest
This topic is now closed to further replies.

×
×
  • Create New...