Insteon breaks with core-2021.7.1

Thanks for chasing down the right github repo and opening the ticket @michaeldavie

Github user @bshep has submitted a PR that I’ve confirmed fixes the issue in 2021.7.1. The modified file is linked below.

if that an actual fix, can someone please leave some “idiot-proof” instruction for me to follow…?
:innocent:

What’s your setup? If you’re using Docker it’s pretty simple to pass in the modified file as I described at Insteon Integration breaks on core-2021.7.0 and above! · Issue #52877 · home-assistant/core · GitHub

Either way the fix has been merged and will be released with 2021.7.2.

The pyinsteon library was fixed in v1.0.12, but unfortunately the version bump didn’t make it into 2021.7.2.

1 Like

OK good nice to know it didn’t make it in, I updated to 7.2 and it still does not work for Hub 2. So perhaps, in 7.3 then? Restored version 6.6 and Insteon working.

i too was waiting for this update thinking it will bring an integrated solution and not a “work around”

FYI - disappointed that the fix wasn’t in the .2 release, I got off my lazy butt and implemented the fix manually using the procedure outline by ZeddicPrime. Worked like a champ.
However, I managed all this using the addon “SSH & Web Terminal”

All insteon devices are now present and accounted for!

the error is still present in 2021.7.2

System Health

version: core-2021.7.2
installation_type: Home Assistant Container
dev: false
hassio: false
docker: true
virtualenv: false
python_version: 3.9.5
os_name: Linux
os_version: 4.4.59+
arch: x86_64
timezone: America/Chicago


logged_in: false
can_reach_cert_server: ok
can_reach_cloud_auth: ok
can_reach_cloud: ok


dashboards: 2
resources: 0
views: 2
mode: storage

Thanks for saving me the pain of installing .2 and then reverting back!

I did not revert back, I implemented the manually applied fix and that worked as desired.

The fix has been merged into the dev branch and will hopefully be in 2021.7.3.

gr8 news, and nice response time! i love this community

Thanks @michaeldavie
That’s very encouraging

I just downloaded 2021.7.3 and confirm that the problem is fixed.

Same, we’re back in business! Thanks @teharris1!

All working as desired. Thanks for the effort, much appreciated!

Hello, I have updated to 7.4 however it doesn’t seem to be able to connect to Insteon modem anymore did it get broken again?

Hi,
Mine works great once again on 7.3 and 7.4.

Did you update and then restart Home Assistant?

Mine did not work right until restart…

You may also need to recheck the hub information. In my case just a matter of going to: Configuration/ Integration/Insteon/Configure/Change the hub configuration.

Check your Insteon account information and password, save and restart.

It should work after restart… At least it has been working fine for me.

I am still getting an integration error.
I am on core-2021.12.7 and Python 3.97.

Here is the error I am getting, does anyone have any suggestions?

Logger: homeassistant.config_entries
Source: components/insteon/__init__.py:104
First occurred: 6:45:11 PM (1 occurrences)
Last logged: 6:45:11 PM

Error setting up entry for insteon
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 313, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/insteon/__init__.py", line 104, in async_setup_entry
    await devices.async_load(
  File "/usr/local/lib/python3.9/site-packages/pyinsteon/managers/device_manager.py", line 169, in async_load
    devices = await saved_devices_manager.async_load()
  File "/usr/local/lib/python3.9/site-packages/pyinsteon/managers/saved_devices_manager.py", line 222, in async_load
    device = _dict_to_device(saved_device)
  File "/usr/local/lib/python3.9/site-packages/pyinsteon/managers/saved_devices_manager.py", line 48, in _dict_to_device
    device = create_device(device_id)
  File "/usr/local/lib/python3.9/site-packages/pyinsteon/managers/utils.py", line 13, in create_device
    return deviceclass(
  File "/usr/local/lib/python3.9/site-packages/pyinsteon/device_types/device_base.py", line 39, in __init__
    self._cat = DeviceCategory(0xFF) if cat is None else DeviceCategory(int(cat))
  File "/usr/local/lib/python3.9/enum.py", line 384, in __call__
    return cls.__new__(cls, value)
  File "/usr/local/lib/python3.9/enum.py", line 702, in __new__
    raise ve_exc
ValueError: 45 is not a valid DeviceCategory

Thanks for your Help…