Insteon Hub not loading since 2023.5 - config_flow issue

I am unable to see my Insteon devices.
On the front end the integration shows “not loaded”, and pressing ‘add entry’ gives me ‘Config flow could not be loaded: {“message”:“Invalid handler specified”}’

Log shows

I am running switches, lamp dimmers and the leak detection sensor

Any assistance/direction would be appreciated

Thanks

Mark

Just curious if this is just a delete and do it again. Where is the existing config stored??

You could try to remove and reinstall Insteon. Before you do that it may be helpful to put the integration into debug mode then restart the integration.

Now working!

In 2023.5.4 I had 3 device overrides. Each time I updated to 2023.7.x Insteon failed to load.
I restored back to 2023.5.4 multiple times.
I removed the overrides yesterday. Today I turned on the debug logging, restarted everything to check the log was working.

I then updated to 2023.7.2 and Insteon is working properly, I assume it was at least one of the over-rides below that caused my issue.

  device_override:
    - address: 35cf9e
      cat: 0x01
      subcat: 0x0e
    - address: 54c236
      cat: 0x10
      subcat: 0x08
    - address: 54a16f
      cat: 0x02
      subcat: 0x0a

Thank you for responding, I deeply appreciate the time and energy you and others are putting into this integration and the rest of HomeAssistant.

Mark

Ah, yes. Good to know. The HA team removed the manual config option a few releases ago, which is why this broke. Glad you figured it out.

Eventually the issue reoccurred and I went back to 5.4. Had it working today on 2023.8.2 until the first reboot.
The logs are pointing to something…

I hope this points to a solution. The component can’t be deleted either, so I am rather stuck.

The log messages for the error are below:


Logger: homeassistant.loader
Source: components/insteon/init.py:5
First occurred: 7:43:38 PM (1 occurrences)
Last logged: 7:43:38 PM

Unexpected exception importing component homeassistant.components.insteon
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/loader.py”, line 813, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “”, line 1204, in _gcd_import
File “”, line 1176, in _find_and_load
File “”, line 1147, in _find_and_load_unlocked
File “”, line 690, in _load_unlocked
File “”, line 940, in exec_module
File “”, line 241, in _call_with_frames_removed
File “/usr/src/homeassistant/homeassistant/components/insteon/init.py”, line 5, in
from pyinsteon import async_close, async_connect, devices
File “/usr/local/lib/python3.11/site-packages/pyinsteon/init.py”, line 18, in
from .protocol import async_modem_connect
File “/usr/local/lib/python3.11/site-packages/pyinsteon/protocol/init.py”, line 13, in
from .serial_transport import async_connect_serial, async_connect_socket
File “/usr/local/lib/python3.11/site-packages/pyinsteon/protocol/serial_transport.py”, line 6, in
from serial_asyncio import SerialTransport
File “/usr/local/lib/python3.11/site-packages/serial_asyncio/init.py”, line 408, in
@asyncio.coroutine
^^^^^^^^^^^^^^^^^
AttributeError: module ‘asyncio’ has no attribute ‘coroutine’


Logger: homeassistant.setup
Source: loader.py:821
First occurred: 7:43:38 PM (1 occurrences)
Last logged: 7:43:38 PM

Setup failed for insteon: Unable to import component: Exception importing homeassistant.components.insteon
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/loader.py”, line 813, in get_component
ComponentProtocol, importlib.import_module(self.pkg_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “”, line 1204, in _gcd_import
File “”, line 1176, in _find_and_load
File “”, line 1147, in _find_and_load_unlocked
File “”, line 690, in _load_unlocked
File “”, line 940, in exec_module
File “”, line 241, in _call_with_frames_removed
File “/usr/src/homeassistant/homeassistant/components/insteon/init.py”, line 5, in
from pyinsteon import async_close, async_connect, devices
File “/usr/local/lib/python3.11/site-packages/pyinsteon/init.py”, line 18, in
from .protocol import async_modem_connect
File “/usr/local/lib/python3.11/site-packages/pyinsteon/protocol/init.py”, line 13, in
from .serial_transport import async_connect_serial, async_connect_socket
File “/usr/local/lib/python3.11/site-packages/pyinsteon/protocol/serial_transport.py”, line 6, in
from serial_asyncio import SerialTransport
File “/usr/local/lib/python3.11/site-packages/serial_asyncio/init.py”, line 408, in
@asyncio.coroutine
^^^^^^^^^^^^^^^^^
AttributeError: module ‘asyncio’ has no attribute ‘coroutine’

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 215, in _async_setup_component
component = integration.get_component()
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/loader.py”, line 821, in get_component
raise ImportError(f"Exception importing {self.pkg_path}") from err
ImportError: Exception importing homeassistant.components.insteon

Thanks
Mark

Looking at the logs you, somehow, have a really old version of pyserial-asyncio. Not sure how that could happen since my code explicitly states that it requires version 0.5 or higher. But the error you are seeing is definitely from an older version. asyncio.coroutine was removed in python 3.8, we are now at python 3.11. Somethng went very wrong in your install process.

Any thoughts on how to delete it, since it will not delete the normal way. Running on RPi4. I have the SSH/Terminal installed but can’t find the location of the files.

Worst case is start again, which I am hoping to avoid.

Thanks

I installed 2023.8.3 and it’s back up and running. No idea why so I will simply accept that reality and hope it’s a sticky solution ( and I don’t see it again). The frustrating part was not being able to delete the component.

Thanks for all your efforts in general!

Solved, I had a custom component that was not up to date. I grabbed the latest and it seems functional now.
I assume it was using the old asyncio because it was there.

Found the solution here