Tasshack / dreame-vacuum

Home Assistant integration for Dreame robot vacuums with map support
https://community.home-assistant.io/t/custom-component-dreame-vacuum
MIT License
859 stars 106 forks source link

Integration: failed setup, will retry #411

Closed JohnnyVi closed 8 months ago

JohnnyVi commented 8 months ago

Describe the bug The integration won't start (but configuration worked fine, the Name of the vacuum was copied from xiaomi cloud. Under dreame integration the device says "failed setup, will retry", Log - Entry in System log is below. I tried to update to the newest beta, but the same problem persists.

Any ideas / help would be greatly appreciated

To Reproduce

Expected behavior The integration... works. Instead of saying "failed to setup, will retry"

Screenshots If applicable, add screenshots to help explain your problem.

Additional Information (please complete the following information)

Logger: custom_components.dreame_vacuum Source: custom_components/dreame_vacuum/coordinator.py:439 Integration: Dreame Vacuum (documentation, issues) First occurred: 19:38:01 (5 occurrences) Last logged: 19:40:52

Integration start failed: Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/miio/miioprotocol.py", line 193, in send data, addr = s.recvfrom(4096) ^^^^^^^^^^^^^^^^ TimeoutError: timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/miio/miioprotocol.py", line 193, in send data, addr = s.recvfrom(4096) ^^^^^^^^^^^^^^^^ TimeoutError: timed out The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/config/custom_components/dreame_vacuum/coordinator.py", line 434, in _async_update_data await self.hass.async_add_executor_job(self._device.update) File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/dreame_vacuum/dreame/device.py", line 2288, in update self.connect_device() File "/config/custom_components/dreame_vacuum/dreame/device.py", line 1768, in connect_device self._request_properties() File "/config/custom_components/dreame_vacuum/dreame/device.py", line 590, in _request_properties result = self._protocol.get_properties(props[:15]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/dreame_vacuum/dreame/protocol.py", line 1233, in get_properties return self.send("get_properties", parameters=parameters, retry_count=retry_count) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/dreame_vacuum/dreame/protocol.py", line 1230, in send return self.device.send(method, parameters=parameters, retry_count=retry_count) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/miio/miioprotocol.py", line 233, in send return self.send( ^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/miio/miioprotocol.py", line 241, in send raise DeviceException("No response from the device") from ex miio.exceptions.DeviceException: No response from the device

Tasshack commented 8 months ago

https://github.com/Tasshack/dreame-vacuum/issues/342 https://github.com/Tasshack/dreame-vacuum/issues/408