MTrab / landroid_cloud

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

Robot showing error while switching between searching for home and mowing #617

Open oveand opened 2 months ago

oveand commented 2 months ago

Describe the issue

While the robot is searching for home it sometimes switches between seaching for home and mowing, most likely to try identifying a new border to follow home (Vision mower). In the app this is shown as alternating between searching for home and mowing while in HA this intermediate mowing sessions are shown as errors. Is this intentional? Worx App: worx_app

HA device status: billede

Log messages from HA indicates that this is caused by this intermediate mowing state is identified as Status:{'id': 9, 'description': 'trapped'}

Is this intentional or a faulty mapping of status id 9?

What version of Home Assistant Core has the issue?

core-2024.4.4

What was the last working version of Home Assistant Core?

No response

What version of the Landroid Cloud integration do you have installed

5.0.4

What type of installation are you running?

Home Assistant Container

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

Landroid Vision M600 (WR206E) by Worx

Diagnostics information (NOT log entries!)

config_entry-landroid_cloud-c332be1657874b99171c724705528da7.json

Relevant log entries

2024-05-13 11:45:23.622 DEBUG (Thread-2 (_thread_main)) [pyworxcloud.decode_data] Data for Hapser was decoded
2024-05-13 11:45:23.622 DEBUG (Thread-2 (_thread_main)) [pyworxcloud.events] Checking ['name'] against {'name': 'Hapser', 'device': {}}
2024-05-13 11:45:23.622 DEBUG (Thread-2 (_thread_main)) [pyworxcloud.events] Checking ['device'] against {'name': 'Hapser', 'device': {}}
2024-05-13 11:45:23.623 DEBUG (Thread-2 (_thread_main)) [custom_components.landroid_cloud.api] (Hapser, Update signal) Received new data from MQTT to Hapser, dispatching landroid_cloud_update_hapser
2024-05-13 11:45:23.625 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating
2024-05-13 11:45:23.625 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Device data:
2024-05-13 11:45:23.628 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Mapping 'accessories': {'digital_fence': True}
2024-05-13 11:45:23.628 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Mapping did not find 'lawn'
2024-05-13 11:45:23.629 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, DEVELOPER INFO) Status: {'id': 5, 'description': 'searching home'}
2024-05-13 11:45:23.629 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Online: True
2024-05-13 11:45:23.629 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) State 'returning'
2024-05-13 11:45:23.630 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Last update: 2024-05-13 09:45:21.960000+00:00
2024-05-13 11:45:23.631 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Attributes:
2024-05-13 11:45:23.631 DEBUG (MainThread) [custom_components.landroid_cloud.api] (Hapser, Feature Assessment) Assessing available features
2024-05-13 11:45:23.632 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating sensor 'Battery' to new value '10' with attributes '{'charging': False}'
2024-05-13 11:45:23.633 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating sensor 'Battery Temperature' to new value '19.8' with attributes '{}'
2024-05-13 11:45:23.634 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating sensor 'Battery Voltage' to new value '17.3' with attributes '{}'
2024-05-13 11:45:23.635 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating sensor 'Error' to new value 'no_error' with attributes '{'id': 0}'
2024-05-13 11:45:23.635 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating sensor 'Pitch' to new value '4.6' with attributes '{}'
2024-05-13 11:45:23.636 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating sensor 'Roll' to new value '-3.8' with attributes '{}'
2024-05-13 11:45:23.637 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating sensor 'Yaw' to new value '326.7' with attributes '{}'
2024-05-13 11:45:23.638 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating sensor 'Distance Driven' to new value '123.599' with attributes '{'meters': 123599}'
2024-05-13 11:45:23.638 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating sensor 'Total Worktime' to new value '126.18' with attributes '{'minutes': 7571}'
2024-05-13 11:45:23.639 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating sensor 'Rssi' to new value '-70' with attributes '{}'
2024-05-13 11:45:23.640 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating sensor 'Last Update' to new value '2024-05-13 09:45:21.960000+00:00' with attributes '{}'
2024-05-13 11:45:23.641 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating sensor 'Next Scheduled Start' to new value '2024-05-13 17:00:00+02:00' with attributes '{}'
2024-05-13 11:45:23.641 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating switch 'Party Mode'
2024-05-13 11:45:23.642 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating switch 'Locked'
2024-05-13 11:45:23.642 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating binary_sensor 'Battery Charging'
2024-05-13 11:45:23.648 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating binary_sensor 'Online'
2024-05-13 11:45:23.649 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating binary_sensor 'Rainsensor Triggered'
2024-05-13 11:45:23.649 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating number 'Raindelay'
2024-05-13 11:45:23.650 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating select 'Current zone'

2024-05-13 11:46:19.782 DEBUG (Thread-2 (_thread_main)) [pyworxcloud.decode_data] Data for Hapser was decoded
2024-05-13 11:46:19.782 DEBUG (Thread-2 (_thread_main)) [pyworxcloud.events] Checking ['name'] against {'name': 'Hapser', 'device': {}}
2024-05-13 11:46:19.782 DEBUG (Thread-2 (_thread_main)) [pyworxcloud.events] Checking ['device'] against {'name': 'Hapser', 'device': {}}
2024-05-13 11:46:19.782 DEBUG (Thread-2 (_thread_main)) [custom_components.landroid_cloud.api] (Hapser, Update signal) Received new data from MQTT to Hapser, dispatching landroid_cloud_update_hapser
2024-05-13 11:46:19.782 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating
2024-05-13 11:46:19.783 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Device data:
2024-05-13 11:46:19.784 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Mapping 'accessories': {'digital_fence': True}
2024-05-13 11:46:19.784 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Mapping did not find 'lawn'
2024-05-13 11:46:19.784 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, DEVELOPER INFO) Status: {'id': 9, 'description': 'trapped'}
2024-05-13 11:46:19.784 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Online: True
2024-05-13 11:46:19.784 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) State 'error'
2024-05-13 11:46:19.784 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Last update: 2024-05-13 09:46:17.156000+00:00
2024-05-13 11:46:19.784 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Attributes:
2024-05-13 11:46:19.785 DEBUG (MainThread) [custom_components.landroid_cloud.api] (Hapser, Feature Assessment) Assessing available features
2024-05-13 11:46:19.785 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating sensor 'Battery Voltage' to new value '17.4' with attributes '{}'
2024-05-13 11:46:19.785 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating sensor 'Blades Total On Time' to new value '121.45' with attributes '{'minutes': 7287}'
2024-05-13 11:46:19.786 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating sensor 'Blades Current On Time' to new value '121.45' with attributes '{'minutes': 7287}'
2024-05-13 11:46:19.786 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating sensor 'Pitch' to new value '-2.2' with attributes '{}'
2024-05-13 11:46:19.786 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating sensor 'Roll' to new value '-0.6' with attributes '{}'
2024-05-13 11:46:19.786 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating sensor 'Yaw' to new value '166.2' with attributes '{}'
2024-05-13 11:46:19.787 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating sensor 'Distance Driven' to new value '123.608' with attributes '{'meters': 123608}'
2024-05-13 11:46:19.787 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating sensor 'Rssi' to new value '-75' with attributes '{}'
2024-05-13 11:46:19.787 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating sensor 'Last Update' to new value '2024-05-13 09:46:17.156000+00:00' with attributes '{}'
2024-05-13 11:46:19.787 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating sensor 'Next Scheduled Start' to new value '2024-05-13 17:00:00+02:00' with attributes '{}'
2024-05-13 11:46:19.789 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating switch 'Party Mode'
2024-05-13 11:46:19.789 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating switch 'Locked'
2024-05-13 11:46:19.789 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating binary_sensor 'Battery Charging'
2024-05-13 11:46:19.790 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating binary_sensor 'Online'
2024-05-13 11:46:19.790 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating binary_sensor 'Rainsensor Triggered'
2024-05-13 11:46:19.790 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating number 'Raindelay'
2024-05-13 11:46:19.790 DEBUG (MainThread) [custom_components.landroid_cloud.device_base] (Hapser, Update signal) Updating select 'Current zone'

Additional information

No response

MTrab commented 2 months ago

Status code 9, trapped, is mapped to the error sensor which is why the mower show an error

oveand commented 2 months ago

Yes, you are very right. My questions is probably more, is this a correct mapping? I haven't succeeded in finding the official documentation on what status code 9 actually says for a Landroid Vision? All I can see is that it is not determined to be an error in the Worx app, neither is the sensor.[]_error triggered.

MTrab commented 2 months ago

Might rather be a bug if the error sensor isn't triggered.

oveand commented 2 months ago

IMG_0997