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.

Light switch not turning off? Turns on through sensor?

Featured Replies

Posted

Hi,

 

I am using a program with two motions sensors in the garage.  The idea is it is an occupancy sensor.  

 

If either sensor is turned on, the light should turn on for 20 minutes then shut off.

 

Now it will turn on without issue but it will never turn off.  If i use the web interface it turns off no problem.  Is there something obvious wrong with the program?

 

 

Here is the program:

Garage 1+2 Motion - [ID 00C0][Parent 0010]

If
        Status  'Main Garage sensor1-Sensor' is On
     Or Status  'Main Garage sensor2-Sensor' is On
 
Then
        Send Notification to 'Rich Email' content 'Garage Bay 1-2 Motion'
        Set 'Main: Garage Interior New' On
        Wait  15 seconds
        Set 'Main: Garage Interior New' On
        Wait  20 minutes 
        Set 'Main: Garage Interior New' Off
        Wait  15 seconds
        Set 'Main: Garage Interior New' Fast Off
 
Else
   - No Actions - (To add one, press 'Action')
 


If one of the motion sensors turns off before the other, the program will trigger again and start the 20:15 minute wait all over again. So you could be waiting for up to 40 minutes for the lights to turn off. Both motion sensors would have to turn off at exactly the same time to do what you want, which is likely impossible.

 

Take out one of the sensors in the "if" statement to test if that is what's happening.

  • Author

The problem is that the light never turns off.  It stays on until I shut it off via another scene (all off, downstairs).

 

Everytime i check on a camera or app the lights are on.

 

Any ideas why it wouldnt shutoff?

Each time either MS sends an "On" signal the timer restarts. Sending an Off should have no effect on the program. In any case, try using using "Contol" instead of "Status" and set the MS's to send on "On" only.

I think the problem is that the ISY re-evaluates the IF statement before executing the statement after the Wait command (it will go down the Else path) . I think you can split it into two programs. Or maybe turn it off on the else path, but I prefer to not use the else path very often.

 

IF

Motion triggered

 

THEN

Turn on lights

Send notification

Run "2nd program" then path

 

2nd program

THEN

WAIT 20 minutes

Turn off lights

 

 

 

Sent from my iPhone using Tapatalk

I think stusviews identified the proper solution (use "control" versus "status"). 

 

Still, I am curious why you have the duplicate ON and OFF commands (separated by 15-sec waits)?

  • Author

Hi,

 

I will give this a try.  I have a ton of devices & sometimes things 'miss' - ideally this will stop any missed off or on command.

 

Thanks,

Rich

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.