RKinOhio Posted February 14, 2017 Share Posted February 14, 2017 I have been using the ISY for about a month after migrating from the Hub and I am encouraged by the possibilities. I am definitely not new to programming in general, but I am still feeling my way around the specifics of ISY programming. I have been looking at a way to write a program that will send a text message to my phone whenever the garage door (Insteon controlled) changes state, both opening and closed. In reading about 10-12 examples, I thought that I understood it, but number of people have programs that monitor devices/sensors/KPLs that then call to another program to drive the text. I have tested my text configuration and it works (I get the test text on my phone), but I haven't been able to get a change of state text message on opening or closing the door. I am trying to do this within a single "Garage Door Down" program. I wrote it around a time period with an AND in the IF, IF From 5:25:00AM on 2017/02/13 To 5:25:00PM on 2017/02/28 And Status 'Garage Door-Sensor' is On Then Send Notification to 'Us' content 'Garage Door Down' Else No Actions There is another program that monitors the door up condition. The time frame was just something that I wanted to play with, but could be left out. Can anyone help me understand why this isn't picking up a change in state on the door and sending out the text notification? Yes, I did verify that the ISY is seeing the sensor condition correctly. Any thoughts would be appreciated. RK Link to comment
TrojanHorse Posted February 14, 2017 Share Posted February 14, 2017 Is the date function a 5.x alpha feature? If so, I would start with current 4.5.4 stable version for firmware AND UI. Regardless, maybe start by removing the date condition until the basic program is working. To troubleshoot I would try the following: -when you run the "then" portion of the program, do you receive the notification? Sometimes text messages can be finicky depending upon provider. -if no luck, try using "control" instead of "status" (I'm not sure here since I don't use an ioLinc)? Let us know what happens. Link to comment
apostolakisl Posted February 15, 2017 Share Posted February 15, 2017 I assume by you saying you have tested the text configuration that you have done a "run then" on your program manually and you get the text. If so, then your then section and your texting setup is correct. You have 3 triggers in this program 1) the start time (true) 2) the end time (false) 3) status on (true when changes to on, false when changes to something else). . . this I assume since I don't have any IO lincs. When you change the garage door status, the program should run. You should see this on the program summary page. It will say the time of the run and whether it was true or false. This should help you figure out if your door changing state is working as a trigger. I don't really know what the purpose of including the from and to dates on this program are. I would get rid of that. If you are looking for this program to only work during certain hours of the day, this is not how to do it. You would not include the dates, just something like "from 8 am to 10 pm". Either way, I would kill this section of the program until you can get the simple status change to act as a trigger. Link to comment
GlowingHair Posted February 15, 2017 Share Posted February 15, 2017 Here is what I use for when the garage door opens when it probably shouldn't: Garage Door Not Home - [iD 0109][Parent 00AE] If $sHome is $cFALSE And Control 'Oakwood / Ground Floor / Outdoor / Garage Door / Garage Door Controller-Sensor' is switched On And Control 'Oakwood / Ground Floor / Outdoor / Garage Door / Garage Door Controller-Sensor' is not switched Off Then Send Notification to '$Main Notification' Set 'Oakwood / Ground Floor / Kitchen / ZW 002 Siren' On Wait 1 second Set 'Oakwood / Ground Floor / Kitchen / ZW 002 Siren' Off Else - No Actions - (To add one, press 'Action') $Main Notification does both text and email. For when it closes, I would have a second program using "switched off" and "not switched on" in the If statement. It does work. Link to comment
RKinOhio Posted February 16, 2017 Author Share Posted February 16, 2017 Thank you all for the responses. I wrote the same type of program for a second door and found that I am able to monitor it. I started with TrojanHorse's suggestion and found that I was not receiving the text when I ran the 'Then'. I looked at the customized message content and noticed that I had tried to imbed ${alert.date} and ${alert.time24} in the subject for the garage door, but not in the other door. In the second door's case the ${alert.date} and ${alert.time24} were in the body of the message. I changed that for the garage door and everything is running as it should. I had not expected that the time and date in the Subject field would be an issue. Thanks again to all of you for your help and suggestions! RK Link to comment
Teken Posted February 17, 2017 Share Posted February 17, 2017 Thank you all for the responses. I wrote the same type of program for a second door and found that I am able to monitor it. I started with TrojanHorse's suggestion and found that I was not receiving the text when I ran the 'Then'. I looked at the customized message content and noticed that I had tried to imbed ${alert.date} and ${alert.time24} in the subject for the garage door, but not in the other door. In the second door's case the ${alert.date} and ${alert.time24} were in the body of the message. I changed that for the garage door and everything is running as it should. I had not expected that the time and date in the Subject field would be an issue. Thanks again to all of you for your help and suggestions! RK Hello RK, For the benefit of others are you using Gmail or Other ISP? I ask because having included the same in the subject line poses no issues for me. So if this is from a local ISP they may have filters in place blocking the mail to process correctly. Link to comment
RKinOhio Posted March 1, 2017 Author Share Posted March 1, 2017 Sorry for the delay, Teken. I took a little vacation..... I am sending out the message using a text message to my Verizon phone. If you have successfully used the subject field configuration that I tried and failed with and you were using Email, then it is likely that the Verizon SMS stopped my messages from reaching my phone. Everything works fine now with the change to the subject field. Thanks again for the help! RK Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.