Jump to content

Simple motion sensor/light program


rfrancis97

Recommended Posts

Posted

I'm new to programming the ISY-994i, but I have 40 years or programming experience. Yet and I'm really struggling with a few ISY programming concepts.

 

I'm trying to run this simple program to turn on my porch light when the motion sensor detects motion, but to only do so between sunset and sunrise.

 

My problem: The light turns on when motion is detected, regardless of the time of day. I only want the program to work between sunset and sunrise.

 

Here are the programs used:

 

------------------------------------------------------------

Rear Porch Light Status - [iD 0003][Parent 0001]
 
If
        Status  'Rear Porch Motion Sensor-Sens' is On
    And Status  'Rear Porch Light' is Off
 
Then
        Run Program 'Rear Motion Sensor Sched' (If)
        
Else
   - No Actions - (To add one, press 'Action')
 
------------------------------------------------------------
 
Rear Motion Sensor Sched - [iD 0005][Parent 0001]
 
If
        From    Sunset 
        To      Sunrise (next day)
 
Then
        Set 'Rear Porch Light' On
 
Else
   - No Actions - (To add one, press 'Action')
 
------------------------------------------------------------
 
What don't I understand? Any advice would be appreciated.
 
Posted

If it's the Insteon motion sensor, you can configure its settings to trigger only when it's dark. I would start there

 

 

Sent from my iPhone using Tapatalk

Posted

Personally I prefer:

 

If
        From    Sunset 
        To      Sunrise (next day)
And
        Status  'Rear Porch Motion Sensor-Sens' is On
 
Then
        Run Program 'Rear Motion Sensor Sched' (Then)
        
Else
   - No Actions - (To add one, press 'Action')
 
 
Rear Motion Sensor Sched - [iD 0005][Parent 0001]
 
If
        (nothing is in IF)
 
Then
        Set 'Rear Porch Light' On
        Wait 5 Minutes
        Set 'Rear Porch Light' Off
 
Else
   - No Actions - (To add one, press 'Action')
Posted

I also prefer an approach similar to mike ippolito. I would like to add, however, that if you want to use a program to trigger lights from motion, be sure to make sure that there is no scene relationship between the motion sensor and lights.

Posted

Thank you for the quick responses! All good suggestions.

 

I'm not sure why (yet), but "oberkc" had the answer. I had a scene relationship between the MS and light. I removed them from a scene and it works as expected.

Posted
I'm not sure why (yet)

 

What is it about which you are unsure?  Is it how your scene relationship came to exist?  Is your uncertainty about how removing the scene solved your problem?  Or are you wondering how it was possible that I had the answer?

  • 4 weeks later...
Guest
This topic is now closed to further replies.

×
×
  • Create New...