tolwi / hassio-ecoflow-cloud

EcoFlow Cloud Integration for Home Assistant
381 stars 64 forks source link

Delta Pro doesn't connect after Update #71

Closed tollecc closed 1 year ago

tollecc commented 1 year ago

After Update to v0.10. my DeltaPro doesn't connect anymore. But I downgrade to 0.9.1 iss all normaly.

tolwi commented 1 year ago

is there anything in logs?

thyr0ne commented 1 year ago

I've got the same issue.

The log looks like so for me:

Logger: root Source: custom_components/ecoflow_cloud/mqtt/ecoflow_mqtt.py:147 Integration: EcoFlow-Cloud (documentation, issues) First occurred: 4:02:30 AM (2 occurrences) Last logged: 12:22:06 PM

Uncaught thread exception Traceback (most recent call last): File "/usr/local/lib/python3.11/threading.py", line 1038, in _bootstrap_inner self.run() File "/usr/local/lib/python3.11/threading.py", line 975, in run self._target(*self._args, **self._kwargs) File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3591, in _thread_main self.loop_forever(retry_first_connection=True) File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1756, in loop_forever rc = self._loop(timeout) ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1164, in _loop rc = self.loop_read() ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1556, in loop_read rc = self._packet_read() ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 2439, in _packet_read rc = self._packet_handle() ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3033, in _packet_handle return self._handle_publish() ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3327, in _handle_publish self._handle_on_message(message) File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3570, in _handle_on_message on_message(self, self._userdata, message) File "/config/custom_components/ecoflow_cloud/mqtt/ecoflow_mqtt.py", line 244, in on_message self.data.update_data(raw) File "/config/custom_components/ecoflow_cloud/mqtt/ecoflow_mqtt.py", line 147, in update_data self.__params_time = datetime.fromtimestamp(raw['timestamp'], UTC) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: year 55479 is out of range

tollecc commented 1 year ago

Logger: root Source: custom_components/ecoflow_cloud/mqtt/ecoflow_mqtt.py:147 Integration: EcoFlow-Cloud (documentation, issues) First occurred: 12:25:19 (1 occurrences) Last logged: 12:25:19

Uncaught thread exception Traceback (most recent call last): File "/usr/local/lib/python3.11/threading.py", line 1038, in _bootstrap_inner self.run() File "/usr/local/lib/python3.11/threading.py", line 975, in run self._target(*self._args, **self._kwargs) File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3591, in _thread_main self.loop_forever(retry_first_connection=True) File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1756, in loop_forever rc = self._loop(timeout) ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1164, in _loop rc = self.loop_read() ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 1556, in loop_read rc = self._packet_read() ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 2439, in _packet_read rc = self._packet_handle() ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3033, in _packet_handle return self._handle_publish() ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3327, in _handle_publish self._handle_on_message(message) File "/usr/local/lib/python3.11/site-packages/paho/mqtt/client.py", line 3570, in _handle_on_message on_message(self, self._userdata, message) File "/config/custom_components/ecoflow_cloud/mqtt/ecoflow_mqtt.py", line 244, in on_message self.data.update_data(raw) File "/config/custom_components/ecoflow_cloud/mqtt/ecoflow_mqtt.py", line 147, in update_data self.__params_time = datetime.fromtimestamp(raw['timestamp'], UTC) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ValueError: year 55480 is out of range

tolwi commented 1 year ago

v0.10.1

tollecc commented 1 year ago

Now it's all good. Thanks a lot