After my new WeatherStations runs perfectly for about a week, ecowitt integration suddenly stopped working. In ecowitt everything is fine, all data from my weather station I can see online on ecowitt. But the HA integration stopped working. Suddenly all ecowitt entities are shown as restored:
In my logfiles I found two entries for ecowitt:
Logger: homeassistant.config_entries
Source: custom_components/ecowitt/__init__.py:290
First occurred: 7:48:24 PM (1 occurrences)
Last logged: 7:48:24 PM
Error unloading entry Ecowitt on port 4199 for ecowitt
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 353, in async_unload
result = await component.async_unload_entry(hass, self) # type: ignore
File "/config/custom_components/ecowitt/__init__.py", line 290, in async_unload_entry
await ws.stop()
File "/usr/local/lib/python3.8/site-packages/pyecowitt/ecowitt.py", line 304, in stop
await self.site.stop()
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_runner.py", line 68, in stop
self._runner._check_site(self)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_runner.py", line 319, in _check_site
raise RuntimeError(f"Site {site} is not registered in runner {self}")
RuntimeError: Site <aiohttp.web_runner.TCPSite object at 0x7f988687b0> is not registered in runner <aiohttp.web_runner.ServerRunner object at 0x7f98cd76d0>
and
Logger: homeassistant.config_entries
Source: helpers/entity_component.py:174
First occurred: 7:48:18 PM (2 occurrences)
Last logged: 7:48:18 PM
Error unloading entry Ecowitt on port 4199 for sensor
Error unloading entry Ecowitt on port 4199 for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 353, in async_unload
result = await component.async_unload_entry(hass, self) # type: ignore
File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 77, in async_unload_entry
return await hass.data[DOMAIN].async_unload_entry(entry)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 174, in async_unload_entry
raise ValueError("Config entry was never loaded!")
ValueError: Config entry was never loaded!
I’ve already tried a few things. Restored Snapshot form Release 2021.4.5 back to Release 2021.4.4 and than to Release 2021.4.1. But unfortunately none of that was of any use.
Does anyone have any idea what I can do to fix the problem?