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.

What is the proper way to write this program?

Featured Replies

Posted

I want to write a program that will turn all my exterior lights on 15 minutes before sunset and turn them all off at sunrise. It seems like there are many ways to accomplish this. Would this work?

 

If

Sunset - 15 minutes to Sunrise (next day)

Then

Turn on front porch lights
Turn on dog run lights
Turn on patio lights

Else

Turn off front porch lights
turn off dog run lights
turn off patio lights

 

Or does it make more sense to have two separate programs. One to turn them on and the other to turn them off with no "else" statement?

The program is fine, however you might want to create an "ALL" Scene that contains the porch lights, dog lights and patio lights.

 

Then you can just say

Set Scene "ALL" On

&

Set Scene "ALL" Off

Michel, I was referring to a scene name "ALL" and doing a Set Scene ALL off. Not suggesting sending an All Off. How confusing I made it with my choice of scene name, sorry!

  • Author

Thanks for the help, guys! Now if I can just get my ISY to once again communicate with my patio lights, I'll be all set. :D

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.