|
1 | | -# ISY Programs to monitor the ISYHelperThese are the programs I have started using to make sure ISYHelper is running. Forthese to work you must have the DateAndTime Helper enabled.## ISYHelper Pong WatchThis runs and restarts whenever the ISYHelper Pong variable changes.The Status variable is set to 1 to indicate everything is good, butif the Wait completes it will set Status to 2.The Wiat time should be larger then the interval you have specifiedin the ISYHelper DateAndTime Module.```If $s.IH.DateAndTime.Pong >= 0 Then $s.IH.DateAndTime.Pong.Status = 1 Wait 1 minute and 30 seconds $s.IH.DateAndTime.Pong.Status = 2```## ISYHelper ProblemThis sends a notification any time the Status variable is changed to a value that is not 1.```If $s.IH.DateAndTime.Pong.Status is not 1 Then Send Notification to 'Pushover-Default' content 'ISYHelper Problem' ``` ## ISYHelper Prog WatchThis makes sure the Pong Watch program is running. This can happen if the ISY is restarted and ISYHelper does not reconnect to the ISY.```If $s.IH.DateAndTime.Pong.Status is 1 And Time is Last Run Time for 'ISYHelper Pong Watch' + 2 minutes Then $s.IH.DateAndTime.Pong.Status = 3``` ## Notification contentThe notification content specified in ISYHelper should look like this. You can create thisin the admin console Configuration -> Emails/Notifications -> CustomizationsSubject: ISYHelper StatusBody:```Ping=${var.2.139}Pong=${var.2.137}Status=${var.2.153}---Status Key---0 = Pong check program never run? ISYHelper never run?1 = Pong OK (normal status)2 = Pong missed (ISYHelper dead, or can't connect to ISY?)3 = Pong check program not running----------------``` |
| 1 | + |
| 2 | +# ISY Programs to monitor the ISYHelper |
| 3 | + |
| 4 | +These are the programs I have started using to make sure ISYHelper is running. For |
| 5 | +these to work you must have the DateAndTime Helper enabled. |
| 6 | + |
| 7 | +## ISYHelper Pong Watch |
| 8 | + |
| 9 | +This runs and restarts whenever the ISYHelper Pong variable changes. |
| 10 | +The Status variable is set to 1 to indicate everything is good, but |
| 11 | +if the Wait completes it will set Status to 2. |
| 12 | +The Wiat time should be larger then the interval you have specified |
| 13 | +in the ISYHelper DateAndTime Module. |
| 14 | + |
| 15 | +``` |
| 16 | +If |
| 17 | + $s.IH.DateAndTime.Pong >= 0 |
| 18 | + |
| 19 | +Then |
| 20 | + $s.IH.DateAndTime.Pong.Status = 1 |
| 21 | + Wait 1 minute and 30 seconds |
| 22 | + $s.IH.DateAndTime.Pong.Status = 2 |
| 23 | +``` |
| 24 | + |
| 25 | + |
| 26 | +## ISYHelper Problem |
| 27 | + |
| 28 | +This sends a notification any time the Status variable is changed to a value that is not 1. |
| 29 | + |
| 30 | +``` |
| 31 | +If |
| 32 | + $s.IH.DateAndTime.Pong.Status is not 1 |
| 33 | + |
| 34 | +Then |
| 35 | + Send Notification to 'Pushover-Default' content 'ISYHelper Problem' |
| 36 | + ``` |
| 37 | + |
| 38 | +## ISYHelper Prog Watch |
| 39 | + |
| 40 | +This makes sure the Pong Watch program is running. This can happen if the ISY is restarted and ISYHelper does not reconnect to the ISY. |
| 41 | + |
| 42 | +``` |
| 43 | +If |
| 44 | + $s.IH.DateAndTime.Pong.Status is 1 |
| 45 | + And Time is Last Run Time for 'ISYHelper Pong Watch' + 2 minutes |
| 46 | + |
| 47 | +Then |
| 48 | + $s.IH.DateAndTime.Pong.Status = 3 |
| 49 | +``` |
| 50 | + |
| 51 | +## Notification content |
| 52 | + |
| 53 | +The notification content specified in ISYHelper should look like this. You can create this |
| 54 | +in the admin console Configuration -> Emails/Notifications -> Customizations |
| 55 | + |
| 56 | +Subject: ISYHelper Status |
| 57 | + |
| 58 | +Body: |
| 59 | +``` |
| 60 | +Ping=${var.2.139} |
| 61 | +Pong=${var.2.137} |
| 62 | +Status=${var.2.153} |
| 63 | +---Status Key--- |
| 64 | +0 = Pong check program never run? ISYHelper never run? |
| 65 | +1 = Pong OK (normal status) |
| 66 | +2 = Pong missed (ISYHelper dead, or can't connect to ISY?) |
| 67 | +3 = Pong check program not running |
| 68 | +---------------- |
| 69 | +``` |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
0 commit comments