Jump to content

Simple motion sensor/light program


rfrancis97

Recommended Posts

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.
 
Link to comment

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')
Link to comment

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.

Link to comment
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?

Link to comment
  • 4 weeks later...

Archived

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


×
×
  • Create New...