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.

How do I program light to stay on if its already on?

Featured Replies

Posted

I've got a program that runs from sunset to sunrise and turns on a kitchen light when I get home from my night shift. It turns the light on for 2 minutes then turns it off. How can I program the ISY to check the current status of the light prior to turning it off? 

 

If were eating dinner at the kitchen table and the light is on everything is fine. But as soon as someone goes out to the garage the light will turn off after 2 minutes regardless of the current state. How can I avoid this and keep my wife from rolling her eyes every time we have dinner? 

 

If

Elk Zone "Garage Door" is voilated

And from Sunset - 30 minutes

To Sunrise + 30 minutes (next day)

 

Then 

Set "Kitchen LIght" On

 

Else

Wait 2 minutes

Set "Kitchen Light" Off

 

 

If

Elk Zone "Garage Door" is voilated

And from Sunset - 30 minutes

To Sunrise + 30 minutes (next day)

And status kitchen light is off

 

Then

Run second,progrm (then path)

 

Second program:

 

If

 

Then 

Set "Kitchen LIght" On

Wait 2 minutes

Set "Kitchen Light" Off

 

I assume (no first hand experience) that the elk condition behaves as a "control" rather than "status". Otherwise, this program may turn into the equivalent of an infinite do loop.

  • Author

Worked perfectly! Thank you so much! I have been ignoring this problem for a few months now because I didnt want to deal with it. One post to this forum and you made me and my wife very happy! Thanks so much! 

You are welcome so much. That type of question is, possibly, the most common, typically associated with triggers from motion sensors rather than from garage doors or security sensors. Still, the solution is the same, and seems to be the one used by many who post here regularly.

 

I contine to be concerned about the way the elk condition behaves. If like a status condition, you may find the kitchen lights coming on at sunset for a couple of minutes. Keep an eye on things to make sure there are no surprises lurking.

Edited by oberkc

What's the reason for doing this in two programs?

Because the change in status of the light coming on when triggered would have canceled the timer if done in a single program.  This method also takes care of a possible issue when the light is triggered On less thaan 2 minutes before Sunrise+30.

 

 

-Xathros

Edited by Xathros

My brain just opened up! This solves so many issues for me!

Glad I could be of assistance. :)

 

-Xathros

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.