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.

garage light program

Featured Replies

Posted

hey guys does this look right?? i want to turn on the gargae light sfor 5 minutes and turn on the kitchen lights until manually turned off and notify me when garage is open thanks pete

 

If

From Sunset

To Sunrise (same day)

And Status 'garage door sensor' is On

 

Then

Set Scene 'Garage Lights' On

Set Scene 'Kitchen Lights' On

Send Notification to 'text'

Wait 5 minutes

Set Scene 'Garage Lights' Off

 

Else

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

Do you want the garage light to turn off five minutes after the door is opened, or after it is closed?

 

Using "status" for your garage door as a trigger, you run the risk that if the door is closed prior to the five-minute time period, the program will halt execution and the light will stay on. While unlikely, if you open the door less than five minutes prior to sunrise, you will have the same problem.

 

Try, instead, control:

 

If
From Sunset 
To Sunrise (same day)
And control 'garage door sensor' is turned On   <<< try "control" here, instead

Then
Set Scene 'Garage Lights' On
Set Scene 'Kitchen Lights' On
Send Notification to 'text'
Wait 5 minutes 
Set Scene 'Garage Lights' Off

Else
 wait 5 minutes  <<< I would add these statements to account for the sunrise problem
 set scene "Garage Lights' off

If nothing else the If is wrong regardless of Status or Control ....

 

If

From Sunset

To Sunrise (same day)

And Status 'garage door sensor' is On

 

 

The To Sunrise must be (next day). The way it is written To time is before From time.

  • Author

thank you sir.. works like a champ. here are the settings if anyone needs them

If
       From    Sunset  -  1 hour 
       To      Sunrise (next day)
   And Control 'garage door sensor' is switched On

Then
       Set Scene 'garage lights' On
       Set Scene 'Kitchen Lights' On
       Send Notification to 'text'
       Wait  5 minutes 
       Set Scene 'garage lights' Off

Else
       Wait  5 minutes 
       Set Scene 'garage lights' Off


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.