Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offline devices not handled #181

Open
CTRDevelopments opened this issue Oct 17, 2024 · 6 comments
Open

Offline devices not handled #181

CTRDevelopments opened this issue Oct 17, 2024 · 6 comments

Comments

@CTRDevelopments
Copy link

The problem

Since the last update I am getting a login error

Logger: homeassistant.config_entries
Source: config_entries.py:594
First occurred: 11:18:29 (1 occurrences)
Last logged: 11:18:29

Error setting up entry R2 for mammotion
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/mammotion/init.py", line 61, in async_setup_entry
await mammotion_coordinator.async_setup()
File "/config/custom_components/mammotion/coordinator.py", line 296, in async_setup
await device.cloud().start_sync(0)
File "/usr/local/lib/python3.12/site-packages/pymammotion/mammotion/devices/base.py", line 204, in start_sync
await self.queue_command("get_device_base_info")
File "/usr/local/lib/python3.12/site-packages/pymammotion/mammotion/devices/mammotion_cloud.py", line 235, in queue_command
return await future
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pymammotion/mammotion/devices/mammotion_cloud.py", line 80, in process_queue
result = await self._execute_command_locked(iot_id, key, command)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pymammotion/mammotion/devices/mammotion_cloud.py", line 96, in _execute_command_locked
await self.loop.run_in_executor(None, self._mqtt_client.get_cloud_client().send_cloud_command, iot_id, command)
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pymammotion/aliyun/cloud_gateway.py", line 694, in send_cloud_command
raise DeviceOfflineException(response_body_dict.get("code"))
pymammotion.aliyun.cloud_gateway.DeviceOfflineException: 6205

What Mammotion mower are you using?

Luba 2

What version of the Mammotion intergration are you using?

0.1.69

What version of Home Assistant Core are you running?

2024.10.2

@tathamoddie
Copy link

This looks like your mower is currently offline.

pymammotion.aliyun.cloud_gateway.DeviceOfflineException: 6205

The integration can currently only start if the mower is online.

Turn the mower on, ensure that app connectivity works, then restart Home Assistant.

@mikey0000
Copy link
Owner

Yeah sorry! I will change this in the hopefully near future!

@CTRDevelopments
Copy link
Author

ahh, ok, I will give that a go. Cheers

@CTRDevelopments
Copy link
Author

sorted, many thanks

@mikey0000 mikey0000 changed the title Login Error since last update Offline devices not handled Oct 21, 2024
@rasssta
Copy link
Contributor

rasssta commented Oct 23, 2024

Related to #171. Might even wanna close this and keep all info in #171?

@mikey0000
Copy link
Owner

Yes will get there 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants