core: Insteon Integration breaks on core-2021.7.0 and above!
The problem
The built in integration for Insteon breaks with core-2021.7.0 and above
It no longer connects to the Hub 2 / Modem. Worked fine in older versions now no matter what I do… It will not connect to the Hub 2 making all my Insteon devices no longer useable.
HA Forum: https://community.home-assistant.io/t/insteon-breaks-with-core-2021-7-1/320934
This seems to effect all Insteon hubs / Modems to include Hub 1, Hub 2 and PLM.
What is version of Home Assistant Core has the issue?
core-2021.7.0
What was the last working version of Home Assistant Core?
core-2021.6.6
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Insteon
Link to integration documentation on our website
https://community.home-assistant.io/t/insteon-breaks-with-core-2021-7-1/320934
Example YAML snippet
No response
Anything in the logs that might be useful for us?
An client error occurred: Cannot connect to host 192.168.1.249:25105 ssl:default [Connect call failed ('192.168.1.249', 25105)]
8:24:15 AM – (ERROR) /usr/local/lib/python3.8/site-packages/pyinsteon/protocol/http_reader_writer.py - message first occurred at 8:07:12 AM and shows up 22 times
Uncaught thread exception
8:08:54 AM – (ERROR) /usr/src/homeassistant/homeassistant/bootstrap.py - message first occurred at 8:08:54 AM and shows up 2 times
Closing connection Hub after 30 retries
8:07:09 AM – (ERROR) /usr/local/lib/python3.8/site-packages/pyinsteon/protocol/http_transport.py
Client error: (<class 'aiohttp.client_exceptions.ClientConnectorError'>) Cannot connect to host 192.168.1.249:25105 ssl:default [Connect call failed ('192.168.1.249', 25105)]
Additional information
This issue renders the Insteon Integration unusable and continues to get worse daily!
It was working fine on core 6.6 but the errors listed here are from 6.6.
Please fix this issue as currently my Insteon devices are usable.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (7 by maintainers)
Looks like the fix worked for me. I am running this in Docker. Thanks bshep! To apply this here’s what I did:
docker ps
Find the Container ID for home assistant. It should have your version number like 2021.7.1 in the name. You only need the first 4 characters of the container ID. Use this ID in the next stepdocker exec -it <containerID> /bin/bash
cd /usr/local/lib/python3.9/site-packages/pyinsteon/protocol/
mv http_transport.py http_transport.py.backup
curl -o http_transport.py https://raw.githubusercontent.com/bshep/pyinsteon/python3.9-await-fix/pyinsteon/protocol/http_transport.py
try:
find / -name http_transport.py
see if it finds the directory pyinsteon is installed at.
I’ve fixed the error and created a PR for pyinsteon, if anyone wants to test you can replace the
http_transport.py
file with the one from my PR and restart HAThe fix was not in 7.2, perhaps in 7.3?