Open fab-70 opened 2 years ago
Also these logs should help to explain the problem:
Logger: custom_components.myhome Source: /usr/local/lib/python3.9/site-packages/OWNd/connection.py:584 Integration: MyHome (documentation, issues) First occurred: 9:06:27 AM (1 occurrences) Last logged: 9:06:27 AM Connection interrupted, reconnecting...
Logger: homeassistant.helpers.frame Source: helpers/frame.py:103 First occurred: 9:07:00 AM (1 occurrences) Last logged: 9:07:00 AM
Detected integration that accessed discovery_info.contains() instead of discovery_info.upnp.contains() or discovery_info.ssdp_headers.contains(); this will fail in version 2022.6. Please report issue to the custom component author for myhome using this method at custom_components/myhome/config_flow.py, line 401: if "port" not in discovery_info:
Same
I managed adding a sensor calculating the seconds since last update of the energy sensor... I then restart HA if 'last_update_age' >300 Hope this helps
Fabio
sensor:
Hi all periodically (few times a week) the integration stops to update data... below the log of the error. Then i need to restart HA and all works properly. I suppose this is a bug. If this is due to my system, Is there a way to capture this event and automatically restart HA / MYHOME integration? Many thanks for any feedback/suggestion.
Fabio
This error originated from a custom integration.
Logger: homeassistant Source: custom_components/myhome/config_flow.py:402 Integration: MyHome (documentation, issues) First occurred: 9:07:00 AM (2 occurrences) Last logged: 9:07:04 AM
Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 203, in async_init flow, result = await task File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 230, in _async_init result = await self._async_handle_step(flow, flow.init_step, data, init_done) File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 325, in _async_handle_step result: FlowResult = await getattr(flow, method)(user_input) File "/config/custom_components/myhome/config_flow.py", line 402, in async_step_ssdp discovery_info["port"] = None TypeError: 'SsdpServiceInfo' object does not support item assignment