Ecowitt stops working with "The client is not currently connected"
VictorvandenHoven opened this issue · 0 comments
Hi,
After last update to version 2022.06.4-2, Ecowitt stops/hangs after a couple of hours with the following ERROR in the log:
2022-06-23 23:17:11,230 | ecowitt2mqtt | INFO | Published to Home Assistant MQTT Discovery 2022-06-23 23:17:14,149 | ecowitt2mqtt | INFO | Published to Home Assistant MQTT Discovery 2022-06-23 23:18:15,154 | asyncio | ERROR | Task exception was never retrieved future: <Task finished name='Task-24699' coro=<HomeAssistantDiscoveryPublisher.async_publish() done, defined at /usr/lib/python3.10/site-packages/ecowitt2mqtt/helpers/publisher/hass.py:350> exception=PublishError('Error while publishing to Home Assisstant MQTT Discovery: [code:4] The client is not currently connected.')> Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/ecowitt2mqtt/helpers/publisher/hass.py", line 375, in async_publish await asyncio.gather(*futures) File "/usr/lib/python3.10/site-packages/asyncio_mqtt/client.py", line 99, in decorated return await method(self, *args, **kwargs) File "/usr/lib/python3.10/site-packages/asyncio_mqtt/client.py", line 277, in publish raise MqttCodeError(info.rc, "Could not publish message") asyncio_mqtt.error.MqttCodeError: [code:4] The client is not currently connected. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/ecowitt2mqtt/helpers/publisher/hass.py", line 379, in async_publish raise PublishError( ecowitt2mqtt.helpers.publisher.PublishError: Error while publishing to Home Assisstant MQTT Discovery: [code:4] The client is not currently connected.
After a restart it continues without problems until the next ERROR.
Does this sound familiar to anyone?
As you can see in the HomeAssistant graph it stopped working two times and I had to restart the addon to continue reading the values.
Regards, Victor