Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Simple motion sensor/light program

Featured Replies

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.
 

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

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')

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.

  • Author

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.

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

[deleted original post - my programs have changed]

Edited by Dracarys

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.