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.

"Vacation" Program

Featured Replies

Posted

I want to set a program that anytime my Elk is armed in away mode, and the time is between sunset and 11:30, a light randomly turns on. Here is the program that I wrote:

 

If

From Sunset

To 11:30:00PM (same day)

And Elk Area 'Alarm' 'Armed State' is Armed Away

 

Then

Set Scene 'Lights' On

Wait 20 minutes

Wait 45 minutes (Random)

Set Scene 'Lights' Off

 

Else

Set Scene 'Lights' Off

 

The problem is that if we are home all day and have the lights on, once sunset hits, the ISY sees that the Alarm state is disarmed and initiates the else. For some reason I have having troube thinking through the logic. If I remove the else statement altogether, and we go out of town for a couple days, and that 11:30 hits, and the lights are still on. Would they turn off after the wait period even though the program conditions are no longer true? Or would they stay in their current state once 11:30 hits?

If I remove the else statement altogether, and we go out of town for a couple days, and that 11:30 hits, and the lights are still on. Would they turn off after the wait period even though the program conditions are no longer true?

 

No. They would stay in their current status.

 

I am not sure that I fully understand your requirements, but what about removing the else path, then creating a second program:

 

if
time is 1130
then
set scene "lights" off
else

  • Author

Thanks. I think that will do it. Pretty obvious answer I guess I was just over complicating it in my head

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.