mikey0000 / HA-Luba

Home Assistant integration for Luba lawn mower
59 stars 7 forks source link

Failed setup #9

Closed InToSSH closed 4 weeks ago

InToSSH commented 4 weeks ago

Hello, so after setting up ESP32 proxy, the integration found the Luba successfuly, however upon adding it to HA, it says "Failed setup, will retry", it retries, but never succeeds. I tried removing and readding the Luba, that did not help. This is what I found in the log

This error originated from a custom integration.

Logger: custom_components.mammotion
Source: helpers/update_coordinator.py:315
integration: Mammotion
First occurred: 2:27:53 AM (14 occurrences)
Last logged: 2:41:56 AM

Unexpected error fetching Mammotion Lawn Mower data data
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 315, in _async_refresh
    self.data = await self._async_update_data()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/mammotion/coordinator.py", line 57, in _async_update_data
    return await self.device.start_sync(0)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyluba/mammotion/devices/luba.py", line 189, in start_sync
    plan = await self._send_command_with_args("read_plan", **{'id': 2})
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pyluba/mammotion/devices/luba.py", line 254, in _send_command_with_args
    raise RuntimeError("Unreachable")
RuntimeError: Unreachable

The ESP32 is about 3m away with line of sight to Luba.

mikey0000 commented 4 weeks ago

Give it some time, the requests sometimes fail at random, working on this problem.

4/06/2024 12:45:46 pm Jarda T. @.***>:

Hello, so after setting up ESP32 proxy, the integration found the Luba successfuly, however upon adding it to HA, it says "Failed setup, will retry", it retries, but never succeeds. I tried removing and readding the Luba, that did not help. This is what I found in the log

*This error originated from a custom integration.

Logger: custom_components.mammotion Source: helpers/update_coordinator.py:315 integration: Mammotion First occurred: 2:27:53 AM (14 occurrences) Last logged: 2:41:56 AM

Unexpected error fetching Mammotion Lawn Mower data data Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 315, in _async_refresh self.data = await self._async_update_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/mammotion/coordinator.py", line 57, in _async_update_data return await self.device.start_sync(0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pyluba/mammotion/devices/luba.py", line 189, in start_sync plan = await self._send_command_with_args("read_plan", *{'id': 2}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pyluba/mammotion/devices/luba.py", line 254, in _send_command_with_args raise RuntimeError("Unreachable") RuntimeError: Unreachable The ESP32 is about 3m away with line of sight to Luba.

— Reply to this email directly, view it on GitHub[https://github.com/mikey0000/HA-Luba/issues/9], or unsubscribe[https://github.com/notifications/unsubscribe-auth/AALDOPMMKXVRZ3AOSLCA5NTZFUE2VAVCNFSM6AAAAABIXPQDTWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMZTEMZQGUZDONI]. You are receiving this because you are subscribed to this thread. [Tracking image][https://github.com/notifications/beacon/AALDOPPGOUZXE62GJV2TKB3ZFUE2VA5CNFSM6AAAAABIXPQDTWWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHIWBBHPM.gif]

InToSSH commented 4 weeks ago

Thanks, what actually helped was to start a task on the mower and it immediatelly synced.