Jump to content

Notify intermittent or flakey? Or is there some magic setting?


lpollis

Recommended Posts

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

Link to comment

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 by paulbates
Link to comment

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 by lpollis
Link to comment

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 by paulbates
Link to comment

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 by lpollis
Link to comment

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 by paulbates
Link to comment

Paul,

This test program works just fine.

 

Notificatiopn Test - [iD 000E][Parent 0001]
If
        Control 'KpGb G UnUsed' is switched On
Then
        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

Link to comment

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

Link to comment

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 by lpollis
Link to comment

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

Link to comment

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

Link to comment

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 by lpollis
Link to comment

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: Yes
    If 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 by paulbates
Link to comment

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 by lpollis
Link to comment

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.

 
 

Link to comment

 

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 by Techman
Link to comment
Guest
This topic is now closed to further replies.

×
×
  • Create New...