Hi, I have a problem after updating Myhome to the latest version. I managed to configure everything by adding myhome.yaml file and it works fine.
I only have shutters configured using an MH201 gateway
After a few minutes, however, it stops working, if I press any command I don’t get any results.
If I try to reload the integration it doesn’t work and I get the attached error. Even if I restart HA it doesn’t work, I have to restart the entire VM hosting everything to get everything to start again, for after a few minutes it freezes again.
Can anyone help me ?
Questo errore ha avuto origine da un'integrazione personalizzata.
Logger: homeassistant.config_entries
Source: custom_components/myhome/__init__.py:71
Integration: MyHome (documentation, issues)
First occurred: 18:55:40 (1 occurrences)
Last logged: 18:55:40
Error setting up entry MH201 Gateway for myhome
Traceback (most recent call last):
File "/config/custom_components/myhome/__init__.py", line 69, in async_setup_entry
tests_results = await hass.data[DOMAIN][entry.data[CONF_MAC]][CONF_ENTITY].test()
File "/config/custom_components/myhome/gateway.py", line 130, in test
return await OWNSession(gateway=self.gateway, logger=LOGGER).test_connection()
File "/usr/local/lib/python3.10/site-packages/OWNd/connection.py", line 240, in test_connection
) = await asyncio.open_connection(
File "/usr/local/lib/python3.10/asyncio/streams.py", line 48, in open_connection
transport, _ = await loop.create_connection(
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1076, in create_connection
raise exceptions[0]
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 1060, in create_connection
sock = await self._connect_sock(
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 969, in _connect_sock
await self.sock_connect(sock, address)
File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 501, in sock_connect
return await fut
File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 541, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
TimeoutError: [Errno 110] Connect call failed ('192.168.0.253', 20000)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/myhome/__init__.py", line 71, in async_setup_entry
_gateway_handler = hass.data[DOMAIN].pop(CONF_GATEWAY)
KeyError: 'gateway'