Athlon Posted February 14, 2019 Share Posted February 14, 2019 You guys helped me choose the Insteon Garage Door Control & Status Kit ( here in this thread ). Thank you! It's easy to do simple programming with it, like most other Insteon devices. I have our Alexa devices 'Announcing' a door opens or closes using 'Routines' in the Alexa app. I have the Alexa app checking for when a sensor opens or closes. That's working just fine for me. What I would like to do, however, is have Alexa 'Announce' a door is open every 20 minutes until it closes, as well as send me a text message after the second 'Announcement'. After reading through the forums, it looks like IFTTT is the best way for the text piece? I've been playing with different programs to get Alexa to continue to make the announcements until the door closes, but just can't figure it out. Any help would be greatly appreciated! Link to comment
Athlon Posted February 15, 2019 Author Share Posted February 15, 2019 Never mind - got it done. Learned some new ISY commands along the way, as well as integrating my ISY with IFTTT to send me a text if one of our doors is left open for 20 minutes or more. Link to comment
ENCJP Posted February 15, 2019 Share Posted February 15, 2019 If you don't mind sharing, I'd be interested in hearing how you have this setup. 1 Link to comment
Athlon Posted February 15, 2019 Author Share Posted February 15, 2019 (edited) 51 minutes ago, ENCJP said: If you don't mind sharing, I'd be interested in hearing how you have this setup. Sure - I have two doors, one for my wife (JoAnn) and one for me (Dave). I'll show you what I did for her door. Let me say at the outset that I have no idea if I could have done it with fewer steps, more elegant programming or anything else that would be better, however I will say it works. First, here's a screenshot of my main page - JoAnn's IO Link and sensors are circled: Here is a screenshot of the three programs I use to make this happen: Here is a screenshot of the three State Variables used to cause Alexa to make her three different announcements: Announcement 1 - "hello, joanns garage door just opened" (some characters not allowed, btw) Announcement 2 - "hello, joanns garage door is still open" Announcement 3 - "hello, final warning, joanns garage door is still open, you should consider closing it" Screenshots of my Network Resources page and Resource Editor: JoAnn's Garage Door Opens program: JoAnn's Garage Door Opens - [ID 002C][Parent 0001] If 'IO Link-Sensor - JoAnn' is switched Off Then Run Program 'JoAnn's Garage Door Is Open' (If) Else - No Actions - (To add one, press 'Action') JoAnn's Garage Door Is Open program (disabled): (The Resource 'JoannsDoorLeftOpen' causes a text to be sent to my cell phone.) JoAnn's Garage Door Is Open - [ID 002E][Parent 0001][Not Enabled] If - No Conditions - (To add one, press 'Schedule' or 'Condition') Then $JoAnn_Garage_Door_Open_1st_Announcement = 1 Wait 20 minutes $JoAnn_Garage_Door_Open_2nd_Announcement = 1 Resource 'JoannsDoorLeftOpen' Wait 20 minutes $JoAnn_Garage_Door_Open_3rd_Announcement = 1 Else - No Actions - (To add one, press 'Action') JoAnn's Garage Door Closes program: JoAnn's Garage Door Closes - [ID 002D][Parent 0001] If 'IO Link-Sensor - JoAnn' is switched On Then Stop program 'JoAnn's Garage Door Is Open' $JoAnn_Garage_Door_Open_1st_Announcement = 0 $JoAnn_Garage_Door_Open_2nd_Announcement = 0 $JoAnn_Garage_Door_Open_3rd_Announcement = 0 Else - No Actions - (To add one, press 'Action') Alexa makes the following announcement when the door closes - "hello, joanns garage door just closed, all is well" Let me know if you have any questions. Adding spokens for Alexa in the ISY Portal is easy once you have the State Variables set up. I can expand on that if you would like. The integration with IFTTT is covered in the Wiki. I can expand on that if you would like. Edited February 15, 2019 by Athlon 1 Link to comment
ENCJP Posted February 16, 2019 Share Posted February 16, 2019 Thanks for sharing @Athlon, this is very clever! Link to comment
drprm1 Posted February 16, 2019 Share Posted February 16, 2019 19 hours ago, Athlon said: Adding spokens for Alexa in the ISY Portal is easy once you have the State Variables set up. I can expand on that if you would like. I would appreciate this Link to comment
Athlon Posted February 17, 2019 Author Share Posted February 17, 2019 (edited) 19 hours ago, ENCJP said: Thanks for sharing @Athlon, this is very clever! You're welcome. 18 hours ago, drprm1 said: I would appreciate this I did the following three times in the Portal, one for each of the three Routines in my Alexa app. Each of the three uses one of the three State Variables I refer to in my post above. Here is how I set up the one for 'JoAnn_Garage_Door_Is_Open_1st_Announcement' Go to your portal, then go to Select tool/Connectivity/Amazon Echo Click 'Variable' My state variable: Use the drop down box to choose your 'State Variable' ('JoAnn_Garage_Door_Is_Open_1st_Announcement' in my case) Room is optional Alexa Category: choose 'Contact Sensor' Contact closed value: for me, 0 works Spoken: I used 'J Gar Dr One' Click 'Save' +++ I created four Routines in my Alexa app, one for each of the State Variables, and one for when her door closes. Here's how I did the Routine for the first announcement. In your Alexa app choose 'Routines' Click the + button to create a new Routine Click the + button to choose a 'When This Happens' Click 'Device' In my case, I chose 'J Gar Dr One' (created above) Finishing the 'When This Happens' section is self explanatory In the 'Add Action' section, choose 'Messaging', then 'Send Announcement' Finishing the 'Add Action' section is self explanatory I did one of these for each of the three announcements triggered by the 'JoAnn's Garage Door Is Open program' detailed in my previous post. I also did one for when the door closes. A State Variable is not needed for that one because Alexa 'sees' the sensor directly, in my case 'Joann Door Sensor' (see images in my previous post). One last thing, when testing the program 'JoAnn's Garage Door Is Open', rather than use 20 minutes between actions, I used 45 seconds so I didn't have to wait 40 minutes to see if it all worked together like I hoped, especially the text sent after the second announcement. The reason for 45 seconds is that you have to let Alexa rest at least 30 seconds between announcements or they risk being delayed. Edited February 17, 2019 by Athlon Link to comment
ENCJP Posted February 19, 2019 Share Posted February 19, 2019 I implemented this today and it works great. Thanks again for sharing! Link to comment
Athlon Posted February 19, 2019 Author Share Posted February 19, 2019 8 hours ago, ENCJP said: I implemented this today and it works great. Thanks again for sharing! Great! Link to comment
Recommended Posts