core: Insteon stops working (communicating with hub) and never reconnects
Home Assistant release with the issue: 0.97 and above, including 0.98.1
Last working Home Assistant release (if known): 0.96.5
Operating environment (Hass.io/Docker/Windows/etc.): hass.io
Component/platform: insteon
Description of problem: The connection to the hub is lost 1 to 2 times per day. It does not reconnect until you restart home assistant. I realize this can happen sometimes, but it has been very rare for many releases now. If I revert back to 0.96.5 it works fine again.
One error in the log and it does not repeat: (MainThread) [insteonplm] Reconnect to Hub (TimeoutError)
I turned on logging and I did not see any other relevant information. I can provide additional log information if you let me know what might me useful.
I can run custom component code tests if I can get a starting point or what might have caused the issue.
Problem-relevant configuration.yaml
entries and (fill out even if it seems unimportant):
insteon:
host: 10.10.123.123
username: !secret insteon_user
password: !secret insteon_pass
Traceback (if applicable):
Additional information: I have verified that using the old component from .96.5 with the newer .99.3 version works. I have not had the time to locate the specific file/problem yet.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 33 (3 by maintainers)
So far so good. It has never failed but because I am adding other components I did restart HA once. So it has been working without errors, 2 entire days and then another day after restarting ha. I am running HA version 102.2, insteon custom component using most recent insteon component files except for init.py, manifest.jason, and services.yaml which were copied from version 0.16.0 of the insteon component (you have to go on the component history and then copy the files from there) url from where you can copy the files into your custom component directory: https://github.com/home-assistant/home-assistant/tree/0595fc3097fd6a8efa65f51fcb90aa9c125bd290/homeassistant/components/insteon
I have tested on 105.5. It is still doing the same thing. The following error messages show in the log:
Lost connection to Insteon Modem: False 10:21 AM main.py (WARNING) Reconnect to Hub (TimeoutError) 10:21 AM main.py (ERROR)
It takes between 8 and 48 hours to fail, then you have to restart. It has failed now 3 times, so I am reverting to the custom version.
This fix is in the current 0.105 beta releases if anyone wants to try it out.
This should be resolved in the next release. Sorry for the delay. I started a new job and it has been overwhelmingly busy.
I have copied the files from the insteon component and then replace only the files (4 files) which have been modified after 96.5 release from the insteon component history. So far so good, no error running on custom component. Will see if it stays up more than 2 days …
I copied mine from the insteon directory in my .96.5 deployment and I do not see a version number specific to insteon. The insteonplm is 0.16.0. Let me know if there is somewhere I can grab the insteon version number from.
Same issue, Insteon 2245 looses connection. Fails within an hour of a restart. I installed a new clean HASSIO instance on a Pi 4 with only Insteon added. Fails there also.
2019-12-06 15:01:00 WARNING (MainThread) [insteonplm.devices] Device 3D.FA.FE returned a pre-NAK message 2019-12-06 15:01:00 WARNING (MainThread) [insteonplm.devices] Checking status to confirm if message was processed 2019-12-06 15:01:38 WARNING (MainThread) [insteonplm.devices] Device 3D.FA.FE returned a pre-NAK message 2019-12-06 15:01:38 WARNING (MainThread) [insteonplm.devices] Checking status to confirm if message was processed 2019-12-06 15:22:56 ERROR (MainThread) [insteonplm] Reconnect to Hub (TimeoutError) 2019-12-06 15:22:56 WARNING (MainThread) [insteonplm.plm] Lost connection to Insteon Modem: True 2019-12-06 16:31:17 ERROR (MainThread) [insteonplm] Reconnect to Hub (TimeoutError) 2019-12-06 16:31:17 WARNING (MainThread) [insteonplm.plm] Lost connection to Insteon Modem: True