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.

Need help with writing a quick program

Featured Replies

Posted

I am having an issue writing up a program. What I am trying to do is to setup a phrase like "Alexa, I am home" and for it to be dynamic with the time. If the time is before 6pm only turn on 1 set of lights else if the time is past 6pm I want it to turn on 5 sets of lights. I only want this program to run if I invoke using Alexa. Nothing else should run this. I have two scenes made already for daytime and night but I need help with the program that Alexa will call.

 

Is this something that is doable?

 

 

I am having an issue writing up a program. What I am trying to do is to setup a phrase like "Alexa, I am home" and for it to be dynamic with the time. If the time is before 6pm only turn on 1 set of lights else if the time is past 6pm I want it to turn on 5 sets of lights. I only want this program to run if I invoke using Alexa. Nothing else should run this. I have two scenes made already for daytime and night but I need help with the program that Alexa will call.

 

Is this something that is doable?

Very easily done.

 

Create a program say "IamHome" and disable it so that no triggers in the ISY If section can trigger it.

In the Then section that Alexa will cal on default to with the spoken "On", use a program line to call program (If) IamHome.2

 

 

 

In another proram "IamHome.2" disable it also, so no ISY triggers can trigger it.

Set a condition time frame in the If section for your time frame you want bracketted.

In the Then section turn on all the devices you want during that time frame.

In the Else section turn on all the devices you want outside of the time frame.

 

Go to ISY.io.com and enable voice control of the first program "IamHome"

You will have to say "Alexa. Turn on I am home"

Program_2 is disabled.

 

Program_1

If

 

Then

          Run Program 'Program_2'

 

Program_2

If
        From    Sunrise
        To       5:59:00PM (same day)
 
Then
        Set Scene 'OneLight' On
 
Else
       Set Scene 'FiveLights' On
 
 

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.