Jump to content

Need help with writing a quick program


Recommended Posts

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?

 

 

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?

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"

Posted

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
 
 

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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...