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.
This latest version 0.98 does not recognize my insteon devices. (version 0.96 was perfect).
When I write in conffig, yaml the code:
host: 192.xxx.x.xx
hub_version: 1,
and restart, the system crashes and I can no longer access
Solved.
It was my mistake with the IP of the Insteon hub. Currently I can see my devices insteon in version 0.98.3
On 0.98.3. In my case, it connects and sees the devices, but cannot control them. My hub model is 2245
I am having the same issue on 0.100.3. as @webxl
Seeing errors
Reconnect to Hub (TimeoutError)
Lost Connection to Insteon Modem: True
Requires multiple restart of Hassio & Insteon modem
I'm also seeing the same problem as @asan2020. Connection appears to drop to the insteon modem every 1-3 days with those errors and will require a restart of home-assistant to successfully reconnect.
I've however never had to restart the modem itself, and a single restart of home-assistant is all that's needed.
Perhaps an issue with the reconnect logic?
Same issue (loosing connection with the HUB) on 102.2 Need to resart HA. Restarting the hub does not resolve the issue. Temporary until there is a fix I have set an automation for HA to restart every day at night.
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
Same error ...... Sometimes it will time out within few hours after HA has been restarted.
2019-12-09 17:08:28 ERROR (MainThread) [insteonplm] Reconnect to Hub (TimeoutError)
2019-12-09 17:08:28 WARNING (MainThread) [insteonplm.plm] Lost connection to Insteon Modem: True
I suspect it is the insteonplm version since not much has changed in the release from the version that worked (.96.5) to the most recent. I put the insteon .96.5 version into custom components and that solves the issue. The next step is to swap in the new files using the old insteonplm, if this is supported or swap the other files or specific changes until it stops working. It takes 1 to 2 days to stop, so the test is a multi-day process.
Which version should I download into custom component (0.16.0) to solve the issue? thks.
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.
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 ........
Looking forward to testing results, and a detailed example on the fix!!
Has the fix worked??
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 never created a custom component. IS there any way to share your custom compononet?
You have to create a directory named: custom_components into your config directory and then create another directory named : insteon into you new directory custom_components. Finally copy all the files into the new insteon directory from the url: https://github.com/home-assistant/home-assistant/tree/0595fc3097fd6a8efa65f51fcb90aa9c125bd290/homeassistant/components/insteon . After restarting HA it will used the insteon custom component. I never had a problem since I made the changes.
Thanks so much Normand9999 !!
I have been running for 3 days by using the 0.96.5 files with Insteon devices responding!!
Is anyone working on fixing this?
Sorry Normand 9999, but how can I download the 9 files you mention? I don't see any buttons to download them ...
I have the same problem with Insteon, and surely those files are the solution. Thank you
use the url below to download the entire home assistant zip file which has the insteon component version 0.16.0. Then from the zip file go to homeassistant/components/insteon directory and extract all the files into your own custom_compnents/insteon dir.
https://github.com/home-assistant/home-assistant/tree/0595fc3097fd6a8efa65f51fcb90aa9c125bd290
Then from the zip file go to homeassistant/components/insteon directory and copy and paste all the files into your own custom_compnents/insteon dir.
Perfect, I downloaded the zip file, unzipped it, copied and pasted into the insteon folder, and everything works! Thank you very much Normand9999
This should be resolved in the next release. Sorry for the delay. I started a new job and it has been overwhelmingly busy.
This fix is in the current 0.105 beta releases if anyone wants to try it out.
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.
Can also confirm I'm seeing the same issues as @rschmitter on 106.1. Doesn't seem to be any particular factors causing the lost connection - can happen within hours or take several days. Restarting home-assistant always resolves the problem.
same as rschmitter. I get between 12 and 36 hours of stability before I have to reset or reboot for the connection to work again.
I am on version 0.106.5
works fine since december with a custom_component which use file __init__.py from insteonplm==0.16.0 version. Something in current file __init__.py is causing the hub to disconnect and not reconnecting unless restarting HA. I am on version 0.106.6. Attach is my custom_component insteon folder.
insteon.zip
I am testing an update to insteonplm that rolls back the __init__.py
file changes to the 0.16.0 changes. Running it in my home environment until Sunday to make sure it stays connected.
i do not see a insteon folder in my custom components folder at all do you just add it there as a fresh directory?
Insteon fails again. I am in version Home Assistant 0.111.4. Every 2-3 days, for no apparent reason, it fails, and Home Assistant does not recognize Insteon devices. The insteon App works well. When I restart HA, it doesn't detect them either. I must stop the raspberry completely, and restart again to make it work.
I finally solved my chronic issue with this. I was losing connection about every day or 2 days and would have to reboot haas. I removed my insteon integration from my amazon alexa app. I instantly started seeing stability and have run for weeks now with no failure in connection.
Most helpful comment
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