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.

Lights on at Sunset off 30 Minutes later

Featured Replies

Posted

So I tried this, what am I doing wrong as it is not working.

 

If: From Sunset

For 30 Minutes

 

Then

Set 'Outside - Family Room Door' On

 

Am I missing something?

 

Thanks for my newbie questions.

I'm not an expert here but here is what will work if you want the lights to go on at sunset then off after 30 minues

 

If time is sunset

 

then

 

Set 'whatever you want' on

wait 30 minutes

Set 'whatever you want' off

 

else

 

 

this should work if I understand what you are trying to do

There are no experts here :) We are all new to this ISY. Maybe some more experienced :roll:

 

AnthemAVM, I believe what you are thinking is

If
       From    Sunset 
       For      30 minutes 

Then
       Set 'Backyard' On

Else
       Set 'Backyard' Off

 

Which would work, but it will be turning off the Backyard any time you are outside of the 30 minute window. We don't want that, do we?

 

If you know you will only ever want it on for 30 minutes at a time the Wait example from gfrnd is the way to go.

 

For lights I would use two programs.

 

Backyard On

If
       Time is Sunset 

Then
       Set 'Backyard' On

Else
  - No Actions - (To add one, press 'Action')

 

Backyard Off

If
       Time is Sunset  + 30 minutes

Then
       Set 'Backyard' Off

Else
  - No Actions - (To add one, press 'Action')

 

Then if you need to modify either the On or Off time it will not affect the other.

 

 

Rand

Which would work, but it will be turning off the Backyard any time you are outside of the 30 minute window. We don't want that, do we?

 

Hey Rand -

 

That's what I had thought too, but it's not the case.

 

I run the following code for my front door lights:

 

If
       From    Sunset  + 20 minutes
       To       9:30:00PM (same day)

Then
       Set Scene 'FrontDoor' On

Else
       Set Scene 'FrontDoor' Off

 

 

I can turn them on any time of the day, and they will stay on.

 

I believe the conditions are evaluated only twice (at the start time, and at the end time) - not continuously.

Cool Mike,

 

That is good to know!

 

Rand

MikeB,

 

You are absolutely right, when entering a time range that time range becomes True, when leaving a time range it becomes False. Entering and leaving a time range are events that cause the program to run (either Then or Else path depending on all the If conditions).

 

Check out this post if you want to keep something on (or off) during a time range:

 

http://forum.universal-devices.com/viewtopic.php?t=394

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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.