MTrab / landroid_cloud

Landroid Cloud component for Home Assistant
GNU General Public License v3.0
272 stars 33 forks source link

Landroid vacuum entity not updating after couple hours #385

Closed davetres closed 1 year ago

davetres commented 1 year ago

Describe the issue

It looks like after some inactivity (couple hours), the landroid vacuum entity does not refresh it's data from the cloud. I try with the service landroid_cloud.restart but it does not work. I have to manually reload the integration for the data to be available again.

What version of Home Assistant Core has the issue?

core-2023.5.4

What was the last working version of Home Assistant Core?

No response

What version of the Landroid Cloud integration do you have installed

v3.0.2

What type of installation are you running?

Home Assistant OS

Which make and model is the mower used for this integration?

WR165

Diagnostics information (NOT log entries!)

{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2023.5.4", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.10.11", "docker": true, "arch": "x86_64", "timezone": "America/Toronto", "os_name": "Linux", "os_version": "6.1.25", "supervisor": "2023.04.1", "host_os": "Home Assistant OS 10.1", "docker_version": "23.0.3", "chassis": "vm", "run_as_root": true }, "custom_components": { "spotcast": { "version": "v3.6.30", "requirements": [] }, "var": { "version": "0.15.0", "requirements": [] }, "alexa_media": { "version": "4.6.4", "requirements": [ "alexapy==1.26.8", "packaging>=20.3", "wrapt>=1.12.1" ] }, "average": { "version": "2.3.0", "requirements": [] }, "hacs": { "version": "1.32.1", "requirements": [ "aiogithubapi>=22.10.1" ] }, "landroid_cloud": { "version": "3.0.1", "requirements": [ "pyworxcloud==3.1.8" ] }, "localtuya": { "version": "5.0.0", "requirements": [] }, "bhyve": { "version": "3.1.2", "requirements": [] } }, "integration_manifest": { "domain": "landroid_cloud", "name": "Landroid Cloud", "after_dependencies": [ "http" ], "codeowners": [ "@MTrab" ], "config_flow": true, "documentation": "https://github.com/MTrab/landroid_cloud/blob/master/README.md", "iot_class": "cloud_push", "issue_tracker": "https://github.com/MTrab/landroid_cloud/issues", "loggers": [ "pyworxcloud" ], "requirements": [ "pyworxcloud==3.1.8" ], "version": "3.0.1", "is_built_in": false }, "data": { "entry": { "entry_id": "b1bf728fe0cf327b51794959e51cde72", "version": 1, "domain": "landroid_cloud", "title": "REDACTED", "data": { "email": "REDACTED", "password": "REDACTED", "type": "Worx" }, "options": {}, "pref_disable_new_entities": false, "pref_disable_polling": false, "source": "user", "unique_id": "REDACTED", "disabled_by": null }, "cloud": {}, "device_ids": { "Landroid": "87d84cea11bc8ebf5c866caa0e5be8f4" }, "feature_bits": {}, "type": "Worx", "devices": { "Landroid": { "_api": { "type": "<class 'pyworxcloud.api.LandroidCloudAPI'>", "repr": "<pyworxcloud.api.LandroidCloudAPI object at 0x7fcf30272b60>" }, "_mower": { "id": 696973, "uuid": "96c531f3-0379-4002-a96a-dcf953f31d37", "product_id": 71, "user_id": 635175, "serial_number": "20223091480100030534", "mac_address": "4C75254435FC", "name": "Landroid", "locked": false, "firmware_version": "3.28", "firmware_auto_upgrade": true, "push_notifications": true, "sim": null, "push_notifications_level": "warning", "test": false, "iot_registered": true, "mqtt_registered": true, "pin_code": null, "registered_at": "2022-08-03 00:00:00", "online": true, "app_settings": null, "protocol": 0, "pending_radio_link_validation": null, "capabilities": [ "auto_lock", "bluetooth_control", "bluetooth_pairing", "digital_fence_settings", "lock", "mqtt", "multi_zone", "multi_zone_percentage", "one_time_scheduler", "pairing_smartconfig", "pause_over_wire", "rain_delay", "rain_delay_start", "safe_go_home", "scheduler_two_slots", "unrestricted_mowing_time" ], "capabilities_available": [ "zone_keeper" ], "features": { "auto_lock": 3.25, "bluetooth_control": 3.2, "bluetooth_pairing": true, "chassis": "m_2021", "digital_fence_settings": 3.25, "display_type": "lcd", "input_type": "keyboard_push_knob", "lock": true, "mqtt": true, "multi_zone": true, "multi_zone_percentage": true, "multi_zone_zones": 4, "one_time_scheduler": 3.15, "pause_over_wire": 3.26, "rain_delay": true, "rain_delay_start": 3.08, "safe_go_home": 3.25, "scheduler_two_slots": 3.15, "unrestricted_mowing_time": true, "wifi_pairing": "smartconfig" }, "accessories": { "digital_fence": true }, "mqtt_endpoint": "iot.eu-west-1.worxlandroid.com", "mqtt_topics": { "command_in": "PRM100/4C75254435FC/commandIn", "command_out": "PRM100/4C75254435FC/commandOut" }, "warranty_registered": false, "purchased_at": null, "warranty_expires_at": null, "setup_location": { "latitude": "REDACTED", "longitude": "REDACTED" }, "city": { "id": 6137540, "country_id": 124, "name": "Saint-Bruno-de-Montarville", "latitude": "REDACTED", "longitude": "REDACTED", "created_at": "2018-02-15T22:20:30-05:00", "updated_at": "2018-02-15T22:20:30-05:00" }, "time_zone": "America/Toronto", "lawn_size": null, "lawn_perimeter": 204, "auto_schedule_settings": null, "auto_schedule": false, "improvement": true, "diagnostic": true, "distance_covered": 219725, "mower_work_time": 15592, "blade_work_time": 13657, "blade_work_time_reset": 5464, "blade_work_time_reset_at": "2022-08-26 19:30:59", "battery_charge_cycles": 153, "battery_charge_cycles_reset": 0, "battery_charge_cycles_reset_at": null, "created_at": "2022-03-14 02:10:51", "updated_at": "2023-05-24 01:36:11", "last_status": { "timestamp": "2023-05-26T15:03:27-04:00", "payload": { "cfg": { "id": 0, "sn": "20223091480100030534", "dt": "26/05/2023", "tm": "11:03:25", "lg": "en", "cmd": 0, "sc": { "m": 1, "d": [ [ "11:00", 450, 0 ], [ "11:00", 450, 0 ], [ "11:00", 450, 1 ], [ "11:00", 450, 0 ], [ "11:00", 450, 0 ], [ "11:00", 450, 0 ], [ "11:00", 450, 1 ] ], "dd": [ [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ] ], "distm": 0, "p": 0, "ots": { "wtm": 0, "bc": 0 } }, "mz": [ 5, 30, 48, 164 ], "mzv": [ 0, 1, 2, 3, 0, 1, 2, 3, 1, 1 ], "rd": 180, "al": { "lvl": 0, "t": 60 }, "tq": 0, "modules": { "DF": { "fh": 1, "cut": 1 } } }, "dat": { "mac": "4C75254435FC", "fw": 3.28, "fwb": 1, "ls": 7, "le": 0, "conn": "wifi", "bt": { "t": 14.1, "v": 19.73, "p": 100, "nr": 153, "c": 0, "m": 1 }, "dmp": [ 1.7, 0.2, 295.9 ], "st": { "b": 13657, "d": 219756, "wt": 15595, "bl": 204 }, "act": 1, "rsi": -67, "lk": 0, "tr": 0, "lz": 5, "rain": { "s": 0, "cnt": 0 }, "modules": { "DF": { "stat": "ok" } } } } }, "model": { "code": "WR165", "friendly_name": "Landroid M500", "model_year": 2021, "cutting_width": 180 } }, "_tz": null, "id": 696973, "uuid": "96c531f3-0379-4002-a96a-dcf953f31d37", "product_id": 71, "serial_number": "20223091480100030534", "mac_address": "4C75254435FC", "name": "Landroid", "locked": false, "sim": null, "mqtt_registered": true, "pin_code": null, "registered_at": "2022-08-03T00:00:00-04:00", "online": true, "protocol": 0, "capabilities": { "__type": "<class 'pyworxcloud.utils.capability.Capability'>", "repr": "<pyworxcloud.utils.capability.Capability object at 0x7fcf306e1a50>" }, "capabilities_available": [ "zone_keeper" ], "accessories": { "digital_fence": true }, "setup_location": { "latitude": "REDACTED", "longitude": "REDACTED" }, "city": { "id": 6137540, "country_id": 124, "name": "Saint-Bruno-de-Montarville", "latitude": "REDACTED", "longitude": "REDACTED", "created_at": "2018-02-15T22:20:30-05:00", "updated_at": "2018-02-15T22:20:30-05:00" }, "time_zone": "America/Toronto", "improvement": true, "diagnostic": true, "mower_work_time": 15592, "last_status": { "timestamp": "2023-05-26T15:03:27-04:00", "payload": { "cfg": { "id": 0, "sn": "20223091480100030534", "dt": "26/05/2023", "tm": "11:03:25", "lg": "en", "cmd": 0, "sc": { "m": 1, "d": [ [ "11:00", 450, 0 ], [ "11:00", 450, 0 ], [ "11:00", 450, 1 ], [ "11:00", 450, 0 ], [ "11:00", 450, 0 ], [ "11:00", 450, 0 ], [ "11:00", 450, 1 ] ], "dd": [ [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ] ], "distm": 0, "p": 0, "ots": { "wtm": 0, "bc": 0 } }, "mz": [ 5, 30, 48, 164 ], "mzv": [ 0, 1, 2, 3, 0, 1, 2, 3, 1, 1 ], "rd": 180, "al": { "lvl": 0, "t": 60 }, "tq": 0, "modules": { "DF": { "fh": 1, "cut": 1 } } }, "dat": { "mac": "4C75254435FC", "fw": 3.28, "fwb": 1, "ls": 7, "le": 0, "conn": "wifi", "bt": { "t": 14.1, "v": 19.73, "p": 100, "nr": 153, "c": 0, "m": 1 }, "dmp": [ 1.7, 0.2, 295.9 ], "st": { "b": 13657, "d": 219756, "wt": 15595, "bl": 204 }, "act": 1, "rsi": -67, "lk": 0, "tr": 0, "lz": 5, "rain": { "s": 0, "cnt": 0 }, "modules": { "DF": { "stat": "ok" } } } } }, "model": "Landroid M500 (WR165)", "battery": { "cycles": { "total": 154, "current": 0, "reset_at": null, "reset_time": null }, "temperature": 30.1, "voltage": 17.14, "percent": 9, "charging": true }, "blades": { "total_on": 13835, "reset_at": 5464, "reset_time": "2022-08-26T19:30:59-04:00", "current_on": 8371 }, "chassis": {}, "error": { "id": 0, "description": "no error" }, "orientation": { "pitch": 0.5, "roll": 1.6, "yaw": 181.7 }, "rainsensor": { "delay": 180, "triggered": false, "remaining": 0 }, "status": { "id": 1, "description": "home" }, "zone": { "current": 3, "index": 7, "indicies": [ 0, 1, 2, 3, 0, 1, 2, 3, 1, 1 ], "starting_point": [ 5, 30, 48, 164 ] }, "warranty": { "expires_at": null, "registered": false, "expired": null }, "firmware": { "auto_upgrade": true, "version": "3.28" }, "schedules": { "next_schedule_start": "2023-05-27T11:00:00-04:00", "time_extension": 0, "active": true, "auto_schedule": { "settings": null, "enabled": false }, "primary": { "monday": { "start": "11:00", "end": "18:30", "duration": 450, "boundary": false }, "tuesday": { "start": "11:00", "end": "18:30", "duration": 450, "boundary": true }, "wednesday": { "start": "11:00", "end": "18:30", "duration": 450, "boundary": false }, "thursday": { "start": "11:00", "end": "18:30", "duration": 450, "boundary": false }, "friday": { "start": "11:00", "end": "18:30", "duration": 450, "boundary": false }, "saturday": { "start": "11:00", "end": "18:30", "duration": 450, "boundary": true }, "sunday": { "start": "11:00", "end": "18:30", "duration": 450, "boundary": false } }, "secondary": { "monday": { "start": "00:00", "end": "00:00", "duration": 0, "boundary": false }, "tuesday": { "start": "00:00", "end": "00:00", "duration": 0, "boundary": false }, "wednesday": { "start": "00:00", "end": "00:00", "duration": 0, "boundary": false }, "thursday": { "start": "00:00", "end": "00:00", "duration": 0, "boundary": false }, "friday": { "start": "00:00", "end": "00:00", "duration": 0, "boundary": false }, "saturday": { "start": "00:00", "end": "00:00", "duration": 0, "boundary": false }, "sunday": { "start": "00:00", "end": "00:00", "duration": 0, "boundary": false } } }, "in_topic": "PRM100/4C75254435FC/commandIn", "out_topic": "PRM100/4C75254435FC/commandOut", "_DeviceHandleris_decoded": true, "_DeviceHandlerraw_data": "{\"cfg\":{\"id\":0,\"lg\":\"en\",\"tm\":\"15:30:59\",\"dt\":\"26/05/2023\",\"sc\":{\"m\":1,\"distm\":0,\"ots\":{\"bc\":0,\"wtm\":0},\"p\":0,\"d\":[[\"11:00\",450,0],[\"11:00\",450,0],[\"11:00\",450,1],[\"11:00\",450,0],[\"11:00\",450,0],[\"11:00\",450,0],[\"11:00\",450,1]],\"dd\":[[\"00:00\",0,0],[\"00:00\",0,0],[\"00:00\",0,0],[\"00:00\",0,0],[\"00:00\",0,0],[\"00:00\",0,0],[\"00:00\",0,0]]},\"cmd\":0,\"mz\":[5,30,48,164],\"mzv\":[0,1,2,3,0,1,2,3,1,1],\"rd\":180,\"sn\":\"20223091480100030534\",\"al\":{\"lvl\":0,\"t\":60},\"tq\":0,\"modules\":{\"DF\":{\"cut\":1,\"fh\":1}}},\"dat\":{\"mac\":\"4C75254435FC\",\"fw\":3.28,\"fwb\":1,\"bt\":{\"t\":30.1,\"v\":17.14,\"p\":9,\"nr\":154,\"c\":1,\"m\":0},\"dmp\":[0.5,1.6,181.7],\"st\":{\"b\":13835,\"d\":222849,\"wt\":15791,\"bl\":204},\"ls\":1,\"le\":0,\"lz\":7,\"rsi\":-61,\"lk\":0,\"act\":1,\"tr\":0,\"conn\":\"wifi\",\"rain\":{\"s\":0,\"cnt\":0},\"time\":{\"r\":131,\"l\":131},\"modules\":{\"DF\":{\"stat\":\"ok\"}}}}", "rssi": -61, "statistics": { "worktime_blades_on": 13835, "distance": 222849, "worktime_total": 15791 }, "updated": "2023-05-26T15:30:59-04:00", "torque": 0, "partymode_enabled": false, "_DeviceHandlerjson_data": { "cfg": { "id": 0, "lg": "en", "tm": "15:30:59", "dt": "26/05/2023", "sc": { "m": 1, "distm": 0, "ots": { "bc": 0, "wtm": 0 }, "p": 0, "d": [ [ "11:00", 450, 0 ], [ "11:00", 450, 0 ], [ "11:00", 450, 1 ], [ "11:00", 450, 0 ], [ "11:00", 450, 0 ], [ "11:00", 450, 0 ], [ "11:00", 450, 1 ] ], "dd": [ [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ] ] }, "cmd": 0, "mz": [ 5, 30, 48, 164 ], "mzv": [ 0, 1, 2, 3, 0, 1, 2, 3, 1, 1 ], "rd": 180, "sn": "20223091480100030534", "al": { "lvl": 0, "t": 60 }, "tq": 0, "modules": { "DF": { "cut": 1, "fh": 1 } } }, "dat": { "mac": "4C75254435FC", "fw": 3.28, "fwb": 1, "bt": { "t": 30.1, "v": 17.14, "p": 9, "nr": 154, "c": 1, "m": 0 }, "dmp": [ 0.5, 1.6, 181.7 ], "st": { "b": 13835, "d": 222849, "wt": 15791, "bl": 204 }, "ls": 1, "le": 0, "lz": 7, "rsi": -61, "lk": 0, "act": 1, "tr": 0, "conn": "wifi", "rain": { "s": 0, "cnt": 0 }, "time": { "r": 131, "l": 131 }, "modules": { "DF": { "stat": "ok" } } } } } } } }

Relevant log entries

Non

Additional information

No response

MTrab commented 1 year ago

Are you sure you are on version 3.0.2? This exact issue should be handled in 3.0.2

davetres commented 1 year ago

Ho! I was on version 3.0.1. I did not see the update. I will try 3.0.2 and reply with results. Thank you!

MTrab commented 1 year ago

Any news or can this be closed?

davetres commented 1 year ago

Works perfectly! Thank you very much!

davetres commented 1 year ago

Closed

davetres commented 1 year ago

The problem as came back. Lanroid entity stop updating sometimes. I need to reload the integration for it to update again.

MTrab commented 1 year ago

And nothing in the logs? Tried enabling debug logging to see if that reveals more information?

davetres commented 1 year ago

I have found this in the log:

Logger: root Source: /usr/src/homeassistant/homeassistant/bootstrap.py:399 First occurred: 12:13:08 PM (1 occurrences) Last logged: 12:13:08 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 3330, 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 "/usr/local/lib/python3.11/site-packages/pyworxcloud/utils/mqtt.py", line 149, in _forward_on_message self._on_update(msg) File "/usr/local/lib/python3.11/site-packages/pyworxcloud/init.py", line 374, in _on_update self._decode_data(device) File "/usr/local/lib/python3.11/site-packages/pyworxcloud/init.py", line 411, in _decode_data device.status.update(data["dat"]["ls"]) File "/usr/local/lib/python3.11/site-packages/pyworxcloud/utils/state.py", line 71, in update self["description"] = self.__descriptor[self["id"]]


KeyError: 13
MTrab commented 1 year ago

Doesn't look like you are on the latest version

davetres commented 1 year ago

Im running v3.0.5. It only happens once in the last 4-5 days

davetres commented 1 year ago

Here is the new diagnostic downloaded:

{ "home_assistant": { "installation_type": "Home Assistant OS", "version": "2023.6.3", "dev": false, "hassio": true, "virtualenv": false, "python_version": "3.11.4", "docker": true, "arch": "x86_64", "timezone": "America/Toronto", "os_name": "Linux", "os_version": "6.1.34", "supervisor": "2023.06.4", "host_os": "Home Assistant OS 10.3", "docker_version": "23.0.6", "chassis": "vm", "run_as_root": true }, "custom_components": { "spotcast": { "version": "v3.6.30", "requirements": [] }, "var": { "version": "0.15.0", "requirements": [] }, "alexa_media": { "version": "4.6.5", "requirements": [ "alexapy==1.26.8", "packaging>=20.3", "wrapt>=1.12.1" ] }, "average": { "version": "2.3.0", "requirements": [] }, "hacs": { "version": "1.32.1", "requirements": [ "aiogithubapi>=22.10.1" ] }, "landroid_cloud": { "version": "3.0.5", "requirements": [ "pyworxcloud==3.1.14" ] }, "localtuya": { "version": "5.2.1", "requirements": [] }, "bhyve": { "version": "3.2.0", "requirements": [] } }, "integration_manifest": { "domain": "landroid_cloud", "name": "Landroid Cloud", "after_dependencies": [ "http" ], "codeowners": [ "@MTrab" ], "config_flow": true, "documentation": "https://github.com/MTrab/landroid_cloud/blob/master/README.md", "iot_class": "cloud_push", "issue_tracker": "https://github.com/MTrab/landroid_cloud/issues", "loggers": [ "pyworxcloud" ], "requirements": [ "pyworxcloud==3.1.14" ], "version": "3.0.5", "is_built_in": false }, "data": { "entry": { "entry_id": "b1bf728fe0cf327b51794959e51cde72", "version": 1, "domain": "landroid_cloud", "title": "REDACTED", "data": { "email": "REDACTED", "password": "REDACTED", "type": "Worx" }, "options": {}, "pref_disable_new_entities": false, "pref_disable_polling": false, "source": "user", "unique_id": "REDACTED", "disabled_by": null }, "cloud": {}, "device_ids": { "Landroid": "87d84cea11bc8ebf5c866caa0e5be8f4" }, "feature_bits": {}, "type": "Worx", "devices": { "Landroid": { "_api": { "type": "<class 'pyworxcloud.api.LandroidCloudAPI'>", "repr": "<pyworxcloud.api.LandroidCloudAPI object at 0x7fa353233ed0>" }, "_mower": { "id": 696973, "uuid": "96c531f3-0379-4002-a96a-dcf953f31d37", "product_id": 71, "user_id": 635175, "serial_number": "20223091480100030534", "mac_address": "4C75254435FC", "name": "Landroid", "locked": true, "firmware_version": "3.30", "firmware_auto_upgrade": true, "push_notifications": true, "sim": null, "push_notifications_level": "warning", "test": false, "iot_registered": true, "mqtt_registered": true, "pin_code": null, "registered_at": "2022-08-03 00:00:00", "online": true, "app_settings": null, "protocol": 0, "pending_radio_link_validation": null, "capabilities": [ "auto_lock", "bluetooth_control", "bluetooth_pairing", "digital_fence_settings", "follow_border", "lock", "mqtt", "multi_zone", "multi_zone_percentage", "one_time_scheduler", "pairing_smartconfig", "pause_over_wire", "rain_delay", "rain_delay_start", "safe_go_home", "scheduler_two_slots", "unrestricted_mowing_time", "zone_keeper" ], "capabilities_available": [], "features": { "auto_lock": 3.25, "bluetooth_control": 3.2, "bluetooth_pairing": true, "chassis": "m_2021", "digital_fence_settings": 3.25, "display_type": "lcd", "input_type": "keyboard_push_knob", "lock": true, "mqtt": true, "multi_zone": true, "multi_zone_percentage": true, "multi_zone_zones": 4, "one_time_scheduler": 3.15, "pause_over_wire": 3.26, "rain_delay": true, "rain_delay_start": 3.08, "safe_go_home": 3.25, "scheduler_two_slots": 3.15, "unrestricted_mowing_time": true, "wifi_pairing": "smartconfig" }, "accessories": { "digital_fence": true }, "mqtt_endpoint": "iot.eu-west-1.worxlandroid.com", "mqtt_topics": { "command_in": "PRM100/4C75254435FC/commandIn", "command_out": "PRM100/4C75254435FC/commandOut" }, "warranty_registered": false, "purchased_at": null, "warranty_expires_at": null, "setup_location": { "latitude": "REDACTED", "longitude": "REDACTED" }, "city": { "id": 6137540, "country_id": 124, "name": "Saint-Bruno-de-Montarville", "latitude": "REDACTED", "longitude": "REDACTED", "created_at": "2018-02-15T22:20:30-05:00", "updated_at": "2018-02-15T22:20:30-05:00" }, "time_zone": "America/Toronto", "lawn_size": null, "lawn_perimeter": 204, "auto_schedule_settings": { "boost": 0, "exclusion_scheduler": { "days": [ { "slots": [], "exclude_day": false }, { "slots": [], "exclude_day": false }, { "slots": [], "exclude_day": false }, { "slots": [], "exclude_day": false }, { "slots": [], "exclude_day": false }, { "slots": [], "exclude_day": false }, { "slots": [], "exclude_day": false } ], "exclude_nights": true }, "grass_type": null, "irrigation": null, "nutrition": null, "soil_type": null }, "auto_schedule": false, "improvement": true, "diagnostic": true, "distance_covered": 325366, "mower_work_time": 22568, "blade_work_time": 20146, "blade_work_time_reset": 16630, "blade_work_time_reset_at": "2023-06-10 11:12:18", "battery_charge_cycles": 221, "battery_charge_cycles_reset": 0, "battery_charge_cycles_reset_at": null, "created_at": "2022-03-14 02:10:51", "updated_at": "2023-06-28 02:01:03", "last_status": { "timestamp": "2023-07-01T16:48:14-04:00", "payload": { "cfg": { "id": 0, "sn": "20223091480100030534", "dt": "01/07/2023", "tm": "12:48:14", "lg": "en", "cmd": 0, "sc": { "m": 1, "d": [ [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ] ], "dd": [ [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ] ], "distm": 0, "p": 0, "ots": { "wtm": 0, "bc": 0 } }, "mz": [ 5, 10, 28, 48 ], "mzv": [ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "mzk": 0, "rd": 180, "al": { "lvl": 0, "t": 60 }, "tq": 0, "modules": { "DF": { "fh": 1, "cut": 1 } } }, "dat": { "mac": "4C75254435FC", "fw": 3.3, "fwb": 1, "ls": 7, "le": 0, "conn": "wifi", "bt": { "t": 25.4, "v": 17.95, "p": 45, "nr": 222, "c": 0, "m": 0 }, "dmp": [ -6, -0.5, 69 ], "st": { "b": 20210, "d": 326332, "wt": 22637, "bl": 205 }, "act": 1, "rsi": -61, "lk": 1, "tr": 0, "lz": 1, "rain": { "s": 0, "cnt": 0 }, "modules": { "DF": { "stat": "ok" } } } } }, "model": { "code": "WR165", "friendly_name": "Landroid M500", "model_year": 2021, "cutting_width": 180 } }, "_tz": null, "id": 696973, "uuid": "96c531f3-0379-4002-a96a-dcf953f31d37", "product_id": 71, "serial_number": "20223091480100030534", "mac_address": "4C75254435FC", "name": "Landroid", "locked": true, "sim": null, "mqtt_registered": true, "pin_code": null, "registered_at": "2022-08-03T00:00:00-04:00", "online": true, "protocol": 0, "capabilities": { "__type": "<class 'pyworxcloud.utils.capability.Capability'>", "repr": "<pyworxcloud.utils.capability.Capability object at 0x7fa34f6d7610>" }, "capabilities_available": [], "accessories": { "digital_fence": true }, "setup_location": { "latitude": "REDACTED", "longitude": "REDACTED" }, "city": { "id": 6137540, "country_id": 124, "name": "Saint-Bruno-de-Montarville", "latitude": "REDACTED", "longitude": "REDACTED", "created_at": "2018-02-15T22:20:30-05:00", "updated_at": "2018-02-15T22:20:30-05:00" }, "time_zone": "America/Toronto", "improvement": true, "diagnostic": true, "mower_work_time": 22568, "last_status": { "timestamp": "2023-07-01T16:48:14-04:00", "payload": { "cfg": { "id": 0, "sn": "20223091480100030534", "dt": "01/07/2023", "tm": "12:48:14", "lg": "en", "cmd": 0, "sc": { "m": 1, "d": [ [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ] ], "dd": [ [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ] ], "distm": 0, "p": 0, "ots": { "wtm": 0, "bc": 0 } }, "mz": [ 5, 10, 28, 48 ], "mzv": [ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "mzk": 0, "rd": 180, "al": { "lvl": 0, "t": 60 }, "tq": 0, "modules": { "DF": { "fh": 1, "cut": 1 } } }, "dat": { "mac": "4C75254435FC", "fw": 3.3, "fwb": 1, "ls": 7, "le": 0, "conn": "wifi", "bt": { "t": 25.4, "v": 17.95, "p": 45, "nr": 222, "c": 0, "m": 0 }, "dmp": [ -6, -0.5, 69 ], "st": { "b": 20210, "d": 326332, "wt": 22637, "bl": 205 }, "act": 1, "rsi": -61, "lk": 1, "tr": 0, "lz": 1, "rain": { "s": 0, "cnt": 0 }, "modules": { "DF": { "stat": "ok" } } } } }, "model": "Landroid M500 (WR165)", "battery": { "cycles": { "total": 224, "current": 0, "reset_at": null, "reset_time": null }, "temperature": 21.1, "voltage": 19.43, "percent": 100, "charging": false }, "blades": { "total_on": 20328, "reset_at": 16630, "reset_time": "2023-06-10T11:12:18-04:00", "current_on": 3698 }, "chassis": {}, "error": { "id": 5, "description": "rain delay" }, "orientation": { "pitch": -0.3, "roll": 3.2, "yaw": 8.7 }, "rainsensor": { "delay": 180, "triggered": true, "remaining": 180 }, "status": { "id": 1, "description": "home" }, "zone": { "current": 2, "index": 3, "indicies": [ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "starting_point": [ 5, 10, 28, 48 ] }, "warranty": { "expires_at": null, "registered": false, "expired": null }, "firmware": { "auto_upgrade": true, "version": "3.30" }, "schedules": { "next_schedule_start": null, "time_extension": 0, "active": true, "auto_schedule": { "settings": { "boost": 0, "exclusion_scheduler": { "days": [ { "slots": [], "exclude_day": false }, { "slots": [], "exclude_day": false }, { "slots": [], "exclude_day": false }, { "slots": [], "exclude_day": false }, { "slots": [], "exclude_day": false }, { "slots": [], "exclude_day": false }, { "slots": [], "exclude_day": false } ], "exclude_nights": true }, "grass_type": null, "irrigation": null, "nutrition": null, "soil_type": null }, "enabled": false }, "primary": { "monday": { "start": "00:00", "end": "00:00", "duration": 0, "boundary": false }, "tuesday": { "start": "00:00", "end": "00:00", "duration": 0, "boundary": false }, "wednesday": { "start": "00:00", "end": "00:00", "duration": 0, "boundary": false }, "thursday": { "start": "00:00", "end": "00:00", "duration": 0, "boundary": false }, "friday": { "start": "00:00", "end": "00:00", "duration": 0, "boundary": false }, "saturday": { "start": "00:00", "end": "00:00", "duration": 0, "boundary": false }, "sunday": { "start": "00:00", "end": "00:00", "duration": 0, "boundary": false } }, "secondary": { "monday": { "start": "00:00", "end": "00:00", "duration": 0, "boundary": false }, "tuesday": { "start": "00:00", "end": "00:00", "duration": 0, "boundary": false }, "wednesday": { "start": "00:00", "end": "00:00", "duration": 0, "boundary": false }, "thursday": { "start": "00:00", "end": "00:00", "duration": 0, "boundary": false }, "friday": { "start": "00:00", "end": "00:00", "duration": 0, "boundary": false }, "saturday": { "start": "00:00", "end": "00:00", "duration": 0, "boundary": false }, "sunday": { "start": "00:00", "end": "00:00", "duration": 0, "boundary": false } } }, "in_topic": "PRM100/4C75254435FC/commandIn", "out_topic": "PRM100/4C75254435FC/commandOut", "_DeviceHandleris_decoded": true, "_DeviceHandlerraw_data": "{\"cfg\":{\"id\":0,\"lg\":\"en\",\"tm\":\"08:16:24\",\"dt\":\"02/07/2023\",\"sc\":{\"m\":1,\"distm\":0,\"ots\":{\"bc\":0,\"wtm\":0},\"p\":0,\"d\":[[\"00:00\",0,0],[\"00:00\",0,0],[\"00:00\",0,0],[\"00:00\",0,0],[\"00:00\",0,0],[\"00:00\",0,0],[\"00:00\",0,0]],\"dd\":[[\"00:00\",0,0],[\"00:00\",0,0],[\"00:00\",0,0],[\"00:00\",0,0],[\"00:00\",0,0],[\"00:00\",0,0],[\"00:00\",0,0]]},\"cmd\":0,\"mz\":[5,10,28,48],\"mzv\":[2,2,2,2,2,2,2,2,2,2],\"mzk\":0,\"rd\":180,\"sn\":\"20223091480100030534\",\"al\":{\"lvl\":0,\"t\":60},\"tq\":0,\"modules\":{\"DF\":{\"cut\":1,\"fh\":1}}},\"dat\":{\"mac\":\"4C75254435FC\",\"fw\":3.30,\"fwb\":1,\"bt\":{\"t\":21.1,\"v\":19.43,\"p\":100,\"nr\":224,\"c\":0,\"m\":1},\"dmp\":[-0.3,3.2,8.7],\"st\":{\"b\":20328,\"d\":328109,\"wt\":22765,\"bl\":205},\"ls\":1,\"le\":5,\"lz\":3,\"rsi\":-73,\"lk\":1,\"act\":1,\"tr\":0,\"conn\":\"wifi\",\"rain\":{\"s\":1,\"cnt\":180},\"time\":{\"r\":0,\"l\":0},\"modules\":{\"DF\":{\"stat\":\"ok\"}}}}", "rssi": -73, "statistics": { "worktime_blades_on": 20328, "distance": 328109, "worktime_total": 22765 }, "updated": "2023-07-02T08:16:24-04:00", "torque": 0, "partymode_enabled": false, "_DeviceHandlerjson_data": { "cfg": { "id": 0, "lg": "en", "tm": "08:16:24", "dt": "02/07/2023", "sc": { "m": 1, "distm": 0, "ots": { "bc": 0, "wtm": 0 }, "p": 0, "d": [ [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ] ], "dd": [ [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ], [ "00:00", 0, 0 ] ] }, "cmd": 0, "mz": [ 5, 10, 28, 48 ], "mzv": [ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ], "mzk": 0, "rd": 180, "sn": "20223091480100030534", "al": { "lvl": 0, "t": 60 }, "tq": 0, "modules": { "DF": { "cut": 1, "fh": 1 } } }, "dat": { "mac": "4C75254435FC", "fw": 3.3, "fwb": 1, "bt": { "t": 21.1, "v": 19.43, "p": 100, "nr": 224, "c": 0, "m": 1 }, "dmp": [ -0.3, 3.2, 8.7 ], "st": { "b": 20328, "d": 328109, "wt": 22765, "bl": 205 }, "ls": 1, "le": 5, "lz": 3, "rsi": -73, "lk": 1, "act": 1, "tr": 0, "conn": "wifi", "rain": { "s": 1, "cnt": 180 }, "time": { "r": 0, "l": 0 }, "modules": { "DF": { "stat": "ok" } } } } } } } }

frank-dusign commented 1 year ago

Hi Marlene, I am facing the same issue. 2023.6.3 on Debian 11 in VM environment, 3.0.5. In my test system, same version, but only hacs with landroid cloud integration same issue. Lucky to see that I am not the only one. Activated debug now and as soon as the issue occurs I will post the log. So keep the issue open, please.

frank-dusign commented 1 year ago

home-assistant_landroid_cloud_2023-07-09T18-27-04.307Z.zip Hi, as promised the log. I see the disconnect every day, reload fixes the issue, luckily with out restart. I will go back to 3.0.2 and see what happens.

Calli1 commented 1 year ago

Hi, Same Problem here with version 3.0.5 and HA 2023.7.1 on Synology NAS.

sebster6 commented 1 year ago

Same issue here with 3.0.5 and HA 2023.7.3. For a couple of days now, I have to reload the integration for the status to update after a day or so.

MTrab commented 1 year ago

Just trying to get the big picture of the issues.

Is this still an issue?

sebster6 commented 1 year ago

Not for me, working fine for weeks now.

davetres commented 1 year ago

Working great for me too for the last 2 months. Can it be related to our local network ? Like if Landroid loose connection to the wifi router and reconnect. When it happens, the Landroid App was updating but not the integration.

MTrab commented 1 year ago

That scenario should already be handled by the integration

MTrab commented 1 year ago

Will close the issue then

RickieCZ commented 1 year ago

Hi Malene, I still have this problem. I upgraded Home Assistant (2023.9.2) and Landroid Cloud (3.0.6), but the update of the entity always ends after about 1-2 days (after reload of integration, it works again, for next few days). In the log I see calls to pyworxcloud every 15 minutes, but without response and processing by Landroid Cloud. Can I send you logs and credentials ? Rickie

MTrab commented 1 year ago

Yes please

RickieCZ commented 1 year ago

Yes please

Can you share your email or how to i can share it with you ?

MTrab commented 1 year ago

landroid_cloud (at) trab.dk

RickieCZ commented 1 year ago

landroid_cloud (at) trab.dk

Sent.

Calli1 commented 1 year ago

Hi Malene, I still have this problem. I upgraded Home Assistant (2023.9.2) and Landroid Cloud (3.0.6), but the update of the entity always ends after about 1-2 days (after reload of integration, it works again, for next few days). In the log I see calls to pyworxcloud every 15 minutes, but without response and processing by Landroid Cloud. Can I send you logs and credentials ? Rickie

Same here 😕

MTrab commented 1 year ago

Please try latest beta - if still not working send some logs (preferrably debug logs) and/or credentials to landroid_cloud (at) trab.dk

RickieCZ commented 1 year ago

I suspected that my mower was constatly trying to escape from the lawn. Malene confirmed this and added a new status for the mower "Escaped digital fence". I should add another electric fence around garden :-) Malene be ready :-)