Several times my PLM has gone offline for various reasons. Of course, when this happens all the automation configured from events and scripts ceases. I want to do a heartbeat on the PLM so I can send a text if it fails. I know there is a command "isResponding", but I can't seem to figure out how to get it to work in a script. Any ideas?
Announcement
Collapse
No announcement yet.
Heartbeat for PLM
Collapse
This topic is closed.
X
X
-
Originally posted by skimis View PostSeveral times my PLM has gone offline for various reasons. Of course, when this happens all the automation configured from events and scripts ceases. I want to do a heartbeat on the PLM so I can send a text if it fails. I know there is a command "isResponding", but I can't seem to figure out how to get it to work in a script. Any ideas?
there is a new feature that will attempt to restart the com port if for some reason the plugin gets an error when trying to send or recv. if the port can't be restarted there is a new trigger "Interface Crashes" that will be called and you can do whatever you decide to get your system running again. usually just restarting hs is enough.
as part of this upgrade, i suggest you upgrade your ftdi chipset drivers to the latest v2.8.8
feedback welcomeMark
HS3 Pro 4.2.19.5
Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway | Tuya Smart Plugs
Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 | Ultra1Wire3 | RFXCOM | HS MyQ | BLRadar | BLDenon | Tuya | Jon00 Charting | Jon00 Links
Platform: Windows Server 2022 Standard, i5-12600K/3.7GHz/10 core, 16GB RAM, 500GB SSD
-
Thanks. I'm already running 1.5.2.22. I upgraded the PLM drivers as you suggested. Then I created an event trigger for device "RF PLM Interface" when "Interface Crashes". I unplugged my PLM and then sent and OFF command to another device. The event does not fire. Perhaps a non-reponse is different than a crash? Unfortunately being unplugged is too common a problem here because of family just doesn't get it.
Here are the log entries:
1/28/2011 5:39:26 PM Device Control Device: Office Candles (]25) OFF
1/28/2011 5:39:26 PM Insteon Processing SetIOEx for device - ]25 Cmd: 3 Bright: 0 Data1: 0 Data2: 0
1/28/2011 5:39:26 PM Insteon Setting status and value for device ]25. Old status:2 Old Value:100, New Status:3 New Value:0
1/28/2011 5:39:26 PM Insteon Sending command 02 62 15 88 8A 0A 13 00 to RF PLM, (Expecting 0 bytes extra back) Pre-Payload ACK:False, NAK is ok:False
1/28/2011 5:39:30 PM Insteon ..Got junk instead of ACK/NAK for command 00 00 00 00 00 00 00 00 00
1/28/2011 5:39:30 PM Insteon ..Retry #1 required. Pausing 250ms for RF PLM to clear...
1/28/2011 5:39:34 PM Insteon ..Got junk instead of ACK/NAK for command 00 00 00 00 00 00 00 00 00
1/28/2011 5:39:34 PM Insteon ..Retry #2 required. Pausing 250ms for RF PLM to clear...
1/28/2011 5:39:39 PM Insteon ..Got junk instead of ACK/NAK for command 00 00 00 00 00 00 00 00 00
Comment
-
so you had the usb cable disconnected during the scenario you posted and you still got a response from the plm?
your log does not indicate a problem other than the PLM NAK'd your cmd.
i'm confused
the trigger will not fire unless the com port dies (closes, etc) and the plugin cannot restart it after a few minutes.Mark
HS3 Pro 4.2.19.5
Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway | Tuya Smart Plugs
Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 | Ultra1Wire3 | RFXCOM | HS MyQ | BLRadar | BLDenon | Tuya | Jon00 Charting | Jon00 Links
Platform: Windows Server 2022 Standard, i5-12600K/3.7GHz/10 core, 16GB RAM, 500GB SSD
Comment
-
Originally posted by mnsandler View Postso you had the usb cable disconnected during the scenario you posted and you still got a response from the plm?
your log does not indicate a problem other than the PLM NAK'd your cmd.
i'm confused
the trigger will not fire unless the com port dies (closes, etc) and the plugin cannot restart it after a few minutes.
So I think I understand that the trigger won't work for me. I need some other way to identify that things are not working. I thought I can write a script to try some command or query to the PLM, and if it does not reply I'll assume it's dead and send a notification.
Comment
-
Originally posted by skimis View PostOh no, sorry. I unplugged the PLM from the wall. USB still connected. Don't understand how the PLM could even NAK as it is not powered any longer.
So I think I understand that the trigger won't work for me. I need some other way to identify that things are not working. I thought I can write a script to try some command or query to the PLM, and if it does not reply I'll assume it's dead and send a notification.
If an "unplugged plm" is the situation that you are trying to discover through script, i don't think its possible.
i suppose i could add a trigger that would fire if the plm NAK'd 5 cmds in a row, but this could still cause a false-positive.
what do you think?Mark
HS3 Pro 4.2.19.5
Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway | Tuya Smart Plugs
Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 | Ultra1Wire3 | RFXCOM | HS MyQ | BLRadar | BLDenon | Tuya | Jon00 Charting | Jon00 Links
Platform: Windows Server 2022 Standard, i5-12600K/3.7GHz/10 core, 16GB RAM, 500GB SSD
Comment
-
Originally posted by mnsandler View Postok, i understand the issue. Disconnecting the plm from the wall does not shutoff the plm or close the com port. so this is not a situation that i can trap. the PLM gets its power from the usb like any other usb device. so the reason it NAK'd your cmd is because it couldn't actually send it out to the powerline.
If an "unplugged plm" is the situation that you are trying to discover through script, i don't think its possible.
i suppose i could add a trigger that would fire if the plm NAK'd 5 cmds in a row, but this could still cause a false-positive.
what do you think?
Thanks!
Comment
Comment