lpollis Posted August 13, 2015 Posted August 13, 2015 I am using 'Notify' in my irrigation programs and it seems to be intermittent. The Cell phone and email options work when using the test button in the Configuration->Settings/Groups tab. Is there any magic that I need to know? Lp
paulbates Posted August 13, 2015 Posted August 13, 2015 (edited) lp Irrigation programs can be tricky depending what is allowing/preventing their running. If the conditions causing the programs to run change, its possible it never gets to sending the alert. I had this same experience in my irrigation programs and I had to create a set of programs manage variables for state that only get touched once a day, right before running the main sprinkling routine. Can you post the program(s) in question?Paul Edited August 13, 2015 by paulbates
lpollis Posted August 13, 2015 Author Posted August 13, 2015 (edited) Thanks for the reply Paul. But my programs do run and the lines execute as expected. My Program: Irrigation Zone 1 5 Min - [iD 000B][Parent 000A]If Control 'KpIrr A Zone 1' is switched On And Status 'KpIrr B IrrigationTime 5 Min' is 100%Then Send Notification to 'Larry (Cell)' content 'Running 5 Min Drip' Set Scene 'Irrigation Zone 1 Indicator' On Set Scene 'Irrigation Zone 2 Indicator' Off Set Scene 'Irrigation Zone 3 Indicator' Off Set 'EZRain 2 - Side Yard' Off Set 'EZRain 3 - Back Patio' Off Set 'EZRain 1 - Drip Zone' On Send Notification to 'Larry' content 'Running 5 Min Drip' Wait 5 minutes Set 'EZRain 1 - Drip Zone' Off Set Scene 'Irrigation Zone 1 Indicator' Off Send Notification to 'Larry (Cell)' content '5 Minute Drip Complete' Send Notification to 'Larry' content '5 Minute Drip Complete'Else - No Actions - (To add one, press 'Action') ******* Lp Edited August 13, 2015 by lpollis
paulbates Posted August 13, 2015 Posted August 13, 2015 (edited) Lp Ok, that helps. I see 4 different Send Notification commands. Are all of them intermittent and flaky? How would you describe it? Any one of the 4 flakier than the others? Email more flaky than cell? Was there ever a time it worked right, and then it started becoming flaky? Paul Edited August 13, 2015 by paulbates
lpollis Posted August 13, 2015 Author Posted August 13, 2015 (edited) Paul, I have seen both. The last time I ran this program, none of the notifications got sent. But while I was experimenting in the past few days, I have seen that the first notify gets sent and the second did not. (I only had 2 instances at that time.) Another question: Should "Notify" get logged? It does not seem to be. And no, I have not seen any difference in the email vs the text messages. Lp Edited August 13, 2015 by lpollis
paulbates Posted August 13, 2015 Posted August 13, 2015 (edited) Lp Try building a program that only has the notifications in it and some other action to trigger it. See if you can spot a trend without waiting for everything to run. The next steps would be to look out how the notifications are configured, what email / mobile provider, etc Paul Edited August 13, 2015 by paulbates
lpollis Posted August 13, 2015 Author Posted August 13, 2015 Paul, This test program works just fine. Notificatiopn Test - [iD 000E][Parent 0001]If Control 'KpGb G UnUsed' is switched OnThen Send Notification to 'Larry' content 'Notify test' Send Notification to 'Larry (Cell)' content 'Notify test'Else - No Actions - (To add one, press 'Action') 'Tis a puzzle! Lp
paulbates Posted August 13, 2015 Posted August 13, 2015 Lp Hmm ok. Just to confirm, that the program always finishes and the ezrains run all the way everytime regardless of messages? What is this and how does it affect program execution? Status 'KpIrr B IrrigationTime 5 Min' is 100% Paul
lpollis Posted August 13, 2015 Author Posted August 13, 2015 (edited) Paul, I just ran the program again and it sent the first email notification, not the cell. And neither of the ending notifications when the program completed. The Status 'KpIrr B IrrigationTime 5 Min' is 100% one of 3 keypad buttons in an exclusive or configuration that sets the time for the zone to run. 5 Minutes, 10 or 15. There are 2 additional programs identical to the one posted with a different wait time. Lp Edited August 13, 2015 by lpollis
paulbates Posted August 13, 2015 Posted August 13, 2015 Lp, Ok. So it might be the mail / cell service or potentially configuration of it. Can you describe the provider(s) and how you've configured them (no accounts and passwords) The Status 'KpIrr B IrrigationTime 5 Min' is 100% one of 3 keypad buttons in an exclusive or configuration that sets the time for the zone to run. 5 Minutes, 10 or 15. There are 2 additional programs identical to the one posted with a different wait time. Lp Ok, that "if status" caught my eye.. if something changes it, it could stop the program. But it looks like its something to do with the messages being sent / received. Paul
lpollis Posted August 13, 2015 Author Posted August 13, 2015 Paul, Sprint is my cell service and iCloud has my email address: See the attached... Lp
Techman Posted August 13, 2015 Posted August 13, 2015 Ipollis You might want to take a look at your ISY error log to see if you have any email related errors.
lpollis Posted August 13, 2015 Author Posted August 13, 2015 Thanks, Techman, but I just did after the last run and I was error free for the time interval when the program ran. And just the execute lines were in the log. I'll try the event viewer and see if it has anything. Lp
paulbates Posted August 13, 2015 Posted August 13, 2015 LP Can you post the configuration you used under settings/groups? Who/what is providing SMTP transport to the sprint and icloud destinations? Paul
lpollis Posted August 13, 2015 Author Posted August 13, 2015 (edited) Paul, I have SMTP Setting -> Use Default checked. I just ran again and I had put a 15 second delay in a few places and the email notification and cell notifications were sent out. But neither of the Completed messages were sent. See the code: ****** Irrigation Zone 1 5 Min - [iD 000B][Parent 000A]If Control 'KpIrr A Zone 1' is switched On And Status 'KpIrr B IrrigationTime 5 Min' is 100%Then Send Notification to 'Larry (Cell)' content 'Running 5 Min Drip' Set Scene 'Irrigation Zone 1 Indicator' On Set Scene 'Irrigation Zone 2 Indicator' Off Set Scene 'Irrigation Zone 3 Indicator' Off Set 'EZRain 2 - Side Yard' Off Set 'EZRain 3 - Back Patio' Off Set 'EZRain 1 - Drip Zone' On Wait 15 seconds Send Notification to 'Larry' content 'Running 5 Min Drip' Wait 5 minutes Set 'EZRain 1 - Drip Zone' Off Set Scene 'Irrigation Zone 1 Indicator' Off Wait 15 seconds Send Notification to 'Larry (Cell)' content '5 Minute Drip Complete' Wait 15 seconds Send Notification to 'Larry' content '5 Minute Drip Complete'Else - No Actions - (To add one, press 'Action') ********I'll experiment with the wait times at the end and see if that makes any difference. But now I have to stop playing and go take a shower. My wife awaits... Thanks to you both for the assistance. Lp Edited August 13, 2015 by lpollis
paulbates Posted August 13, 2015 Posted August 13, 2015 (edited) LP, Ok, this helps. UDI is on record of saying don't use their mail service (default), but send through your own. Intermittent success is a symptom. I send through google. This is a little bit of guessing, but I would see if you can send through icloud. Back up your ISY, and then see if these settings for smtp will work. SMTP information for the outgoing mail server Server name: smtp.mail.me.com SSL Required: YesIf you see an error message when using SSL, try using TLS or STARTTLS instead. Port: 587 SMTP Authentication Required: Yes Username: Your full iCloud email address (for example, emilyparker@icloud.com, not emilyparker) Password: Your iCloud password You should be able to send to both accounts using your icloud account. You can try searching the forum for icloud or maybe others who have used it can chime in, Paul Edited August 13, 2015 by paulbates
lpollis Posted August 13, 2015 Author Posted August 13, 2015 (edited) Paul, I set up my SMTP infi and that works. It does not seem to help the real problem but does eliminate another variable. My program is now consistantly sending out the first two start messages but does not send out the last two. I increased the wait delay to 30 seconds and that had no effect. So I guess the next step is see what Universal Devices support has to say about this. I cannot think of anything I can do. Again, thanks for the help. Lp Edited August 13, 2015 by lpollis
paulbates Posted August 13, 2015 Posted August 13, 2015 Lp Ok. I'm sure they will figure it out. Paul
lpollis Posted August 14, 2015 Author Posted August 14, 2015 Steve (& Paul), The following works (so far) per Steve's suggestion. I'll keep testing... Thanks Steve. Lp ******* Irrigation Zone 1 5 Min - [iD 000B][Parent 000A]If Control 'KpIrr A Zone 1' is switched On And Status 'KpIrr B IrrigationTime 5 Min' is 100% Then Send Notification to 'Larry (Cell)' content 'Running 5 Min Drip' Set Scene 'Irrigation Zone 1 Indicator' On Set Scene 'Irrigation Zone 2 Indicator' Off Set Scene 'Irrigation Zone 3 Indicator' Off Set 'EZRain 2 - Side Yard' Off Set 'EZRain 3 - Back Patio' Off Set 'EZRain 1 - Drip Zone' On Wait 30 seconds Send Notification to 'Larry' content 'Running 5 Min Drip' Wait 5 minutes Set 'EZRain 1 - Drip Zone' Off Set Scene 'Irrigation Zone 1 Indicator' Off Run Program 'Notify Cycle Complete' (Then Path) Else - No Actions - (To add one, press 'Action') PS: On an additional subject, I have the following in a Customization Notification "Notify test". The messages sent do not contain CR/LF and the text is received as: Temperature is 89 FHumidity is 43 %21:11:07Larry Pollis:larrypollis@icloud.comOn I have tried Text, HTML and XML (and for XML I get an attached file with an .XML extension as I would expect.) How can I include the CR/LF? Thanks.
paulbates Posted August 14, 2015 Posted August 14, 2015 Lp Not sure I'm following, just put the a CR in the body of the message per this example. Paul
Techman Posted August 14, 2015 Posted August 14, 2015 (edited) PS: On an additional subject, I have the following in a Customization Notification "Notify test". The messages sent do not contain CR/LF and the text is received as: Temperature is 89 FHumidity is 43 %21:11:07Larry Pollis:larrypollis@icloud.comOn I have tried Text, HTML and XML (and for XML I get an attached file with an .XML extension as I would expect.) How can I include the CR/LF? Thanks. ---------------------------------------------------------------------------- Use HTML and put <BR> where you want a LF/CR Edited August 14, 2015 by Techman
Recommended Posts