Jump to content

Need help with writing a quick program


ghaynes27

Recommended Posts

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?

 

 

Link to comment

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"

Link to comment

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
 
 

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...