Not sure if my problem is the same
@Jezza34000: when you fix the code, you might also take a look at this error log showing up every second:
2023-04-04 11:26:09.043 ERROR (Thread-2 (run_forever)) [custom_components.weback_vacuum.WebackApi] WebackApi (WSS) Error during on_message (map_data) (details='MapData')
2023-04-04 11:26:09.052 DEBUG (Thread-2 (run_forever)) [custom_components.weback_vacuum.WebackApi] WebackApi (WSS) adapt for : {'Voicebox_Source': 'null', 'battery_level': 100, 'chassis_hardware_version': '01', 'clean_time': None, 'cliff_detect': 'enable', 'config_app': 'WeBack', 'connected': 'true', 'device_2_app_proto_info': {'direction_ctl': 'user_topic', 'mapdata_info': 'es_yw_2.0', 'mapdata_src': 's3'}, 'device_2_app_proto_version': '1.1', 'error_info': 'NoError', 'fan_status': 'Normal', 'final_edge': 'on', 'firmware_version': '6.0.8.0422s', 'left_water': -1, 'offset_hours': -1, 'offset_minutes': -1, 'optical_flow': 'on', 'point_num': None, 'robot_x': None, 'robot_y': None, 'upgrade_logic': '1.0', 'uv_lamp': 'unsupport', 'vendor_firmware_version': '5122', 'voice_switch': 'on', 'water_level': 'None', 'working_status': 'Hibernating', 'yugong_software_version': '6.0.8', 'clean_area': 0.0}
2023-04-04 11:26:09.053 DEBUG (Thread-2 (run_forever)) [custom_components.weback_vacuum.WebackApi] WebackApi (WSS) > Set refreshing to 5s
2023-04-04 11:26:09.053 DEBUG (Thread-2 (run_forever)) [custom_components.weback_vacuum.WebackApi] WebackApi (WSS): Calling subscriber (schedule_update_ha_state)
2023-04-04 11:26:09.056 DEBUG (MainThread) [custom_components.weback_vacuum.vacuum] Vacuum: (vacuum mode) fan_speed_list=['Quiet', 'Normal', 'Strong']
2023-04-04 11:26:09.057 DEBUG (MainThread) [custom_components.weback_vacuum.vacuum] Vacuum: available=True
2023-04-04 11:26:09.057 DEBUG (MainThread) [custom_components.weback_vacuum.vacuum] Vacuum: state(from mapping)=idle
2023-04-04 11:26:09.057 DEBUG (MainThread) [custom_components.weback_vacuum.vacuum] Vacuum: battery_icon battery_level=100, charging=False
2023-04-04 11:26:09.057 DEBUG (MainThread) [custom_components.weback_vacuum.vacuum] Vacuum: (vacuum mode) fan_speed=Normal
2023-04-04 11:26:13.371 DEBUG (MainThread) [custom_components.weback_vacuum.WebackApi] WebackApi (WSS) Refreshing...
2023-04-04 11:26:13.372 DEBUG (MainThread) [custom_components.weback_vacuum.WebackApi] WebackApi (WSS) update_status ty-x500-ec-fa-bc-9c-c4-66
2023-04-04 11:26:13.372 DEBUG (MainThread) [custom_components.weback_vacuum.WebackApi] WebackApi (WSS) Publishing message : {"topic_name": "grit_tech/notify/server_2_device/ty-x500-ec-fa-bc-9c-c4-66", "opt": "sync_thing", "sub_type": "ty-x500", "topic_payload": {"notify_info": "sync_thing", "cmd_timestamp_s": 1680600373}, "thing_name": "ty-x500-ec-fa-bc-9c-c4-66"}
2023-04-04 11:26:13.375 DEBUG (MainThread) [custom_components.weback_vacuum.WebackApi] WebackApi (WSS) Msg published OK
2023-04-04 11:26:13.930 DEBUG (Thread-2 (run_forever)) [custom_components.weback_vacuum.WebackApi] WebackApi (WSS) Msg received {'notify_info': 'thing_status_update', 'thing_status': {'Voicebox_Source': 'null', 'battery_level': 100, 'chassis_hardware_version': '01', 'clean_time': None, 'cliff_detect': 'enable', 'config_app': 'WeBack', 'connected': 'true', 'device_2_app_proto_info': {'direction_ctl': 'user_topic', 'mapdata_info': 'es_yw_2.0', 'mapdata_src': 's3'}, 'device_2_app_proto_version': '1.1', 'error_info': 'NoError', 'fan_status': 'Normal', 'final_edge': 'on', 'firmware_version': '6.0.8.0422s', 'left_water': -1, 'offset_hours': -1, 'offset_minutes': -1, 'optical_flow': 'on', 'point_num': None, 'robot_x': None, 'robot_y': None, 'upgrade_logic': '1.0', 'uv_lamp': 'unsupport', 'vendor_firmware_version': '5122', 'voice_switch': 'on', 'water_level': 'None', 'working_status': 'Hibernating', 'yugong_software_version': '6.0.8', 'clean_area': 0.0}, 'thing_name': 'ty-x500-ec-fa-bc-9c-c4-66'}
2023-04-04 11:26:13.930 DEBUG (Thread-2 (run_forever)) [custom_components.weback_vacuum.WebackApi] WebackApi (WSS) adapt for : {'Voicebox_Source': 'null', 'battery_level': 100, 'chassis_hardware_version': '01', 'clean_time': None, 'cliff_detect': 'enable', 'config_app': 'WeBack', 'connected': 'true', 'device_2_app_proto_info': {'direction_ctl': 'user_topic', 'mapdata_info': 'es_yw_2.0', 'mapdata_src': 's3'}, 'device_2_app_proto_version': '1.1', 'error_info': 'NoError', 'fan_status': 'Normal', 'final_edge': 'on', 'firmware_version': '6.0.8.0422s', 'left_water': -1, 'offset_hours': -1, 'offset_minutes': -1, 'optical_flow': 'on', 'point_num': None, 'robot_x': None, 'robot_y': None, 'upgrade_logic': '1.0', 'uv_lamp': 'unsupport', 'vendor_firmware_version': '5122', 'voice_switch': 'on', 'water_level': 'None', 'working_status': 'Hibernating', 'yugong_software_version': '6.0.8', 'clean_area': 0.0}
2023-04-04 11:26:13.930 DEBUG (Thread-2 (run_forever)) [custom_components.weback_vacuum.WebackApi] WebackApi (WSS) > Set refreshing to 5s
2023-04-04 11:26:13.930 DEBUG (Thread-2 (run_forever)) [custom_components.weback_vacuum.WebackApi] No update from cloud
2023-04-04 11:26:13.947 DEBUG (Thread-2 (run_forever)) [custom_components.weback_vacuum.WebackApi] WebackApi (WSS) Msg received {'notify_info': 'map_data', 'map_data': 'eNrt2+1u2lYcwOF7OZ/Z5HdeLqA3EUXISjwNDRJE0Nooyr2PZNDAF3TmHdgSP3pUqbT/Hhts/wJx+hJW7Xp+327bMHsJd8uufZi3m2736OYmGwEDdTtSAFAAQAEABQAUAFAAQAEABQAUAFAAQAEABQAUAFAAQAEABQAUAFAAQAEABQAUAFAAQAEABQAUAFAAQAEABQAUAFAAQAEABQAUAFAAQAEABQAUAFAAQAEABQAUAFAAQAFAARQAFABQAEABAAUAFABQAEABAAUAFABQAEABAAUAFABQAEABAAUAFABQAEABAAUAFABQAEABAAUAFABQAEABAAUAFABQAEABAAUAFABQAEABAAUAFABQAEABAAUAFABQAFAABQAFABQAUABAAQAFABQAUABAAQAFABQAUABAAQAFABQAUABAAQAFABQAUABAAQAFABQAUABAAQAFABQAUABAAQAFABQAUABAAQAFABTgXyjeeR1QgKFe/7kCoACDvPrz918KgAIM68o/bsAb5wMK8PXlRw7v/zMFQAEGd/3nP9//ew+AAgzx+j/tgPMBBRhCAbL9VV8cffVXABRgCAU4bcHHTwEoAAowPB+f/z++L+isQAGG1YBsdPiZQAVAAYZ9b8BnARRg2PcGnBUogAKAAgytAb4LgAIACgAoAKAAgAIACgAoAKAAgAIACgAoAKAAgAIACgAoAKAAgAIACgAoAKAAgAIACgAoAKAAgAIACgAoAKAAgAIACgAoAKAAgAIACgAoAKAAgAIACgAoAKAAgAKAAgAKACgAoACAAgAKACgAoACAAgAKACgAoACAAgAKACgAoACAAgAKACgAoACAAgAKACgAoACAAgAKACgAoACAAgAKACgAoACAAgAKACgAoACAAgAKACgAoACAAgAKACgAKACgAIACAAoAKACgAIACAAoAKACgAIACAAoAKACgAIACAAoAKACgAIACAAoAKACgAIACAAoAKACgAIACAAoAKACgAIACAAoAKACgAIACAAoAKACgAIACAAoAKACgAIACgAIACgAoAKAAgAIACgAoAKAAgAIACgAoAKAAgAIACgAoAKAAgAIACgAoAKAAgAIACgAoAKAAgAIACgAoAKAAgAIACgAoAKAAgAIACgAoAKAAgAIACgAoAKAAgAIACgAoACgAoACAAgAKACgAoACAAgAKACgAoACAAgAKACgAoACAAgAKACgAoACAAgAKACgAoACAAgAKACgAoACAAgAKACgAoACAAgAKACgAoACAAgAKACgAoACAAgAKACgAoACAAoACAAoAKACgAIACAAoAKACgAIACAAoAKACgAIACAAoAKACgAIACAAoAKACgAIACAAoAKACgAIACAAoAKACgAIACAAoAKACgAIACAAoAKACgAIACAAoAKACgAIACAAoAKAAoAKAAgAIACgAoAKAAgAIACgAoAKAAgAIACgAoAKAAgAIACgAoAKAAgAIACgAoAKAAgAIACgAoAKAAgAIACgAoAKAAgAIACgAoAKAAgAIACgAoAKAAgAIACgAoAKAAgAKAAgAKACgAoACAAgAKACgAoACAAgAKACgAoACAAgAKACgAoACAAgAKACgAoACAAgAKACgAoACAAgAKACgAoACAAgAKACgAoACAAgAKACgAoACAAgAKACgAoACAAgAKACgAKACgAIACAAoAKACgAIACAAoAKACgAIACAAoAKACgAIACAAoAKACgAIACAAoAKACgAIACAAoAKACgAIACAAoAKACgAIACAAoAKACgAMA/L8DtKNwtu/Zhvm63v4fZzUv4MV88/PYYZnkxGYXn4werdj3fPq+7MCtfR8eD49jB5nhwGjt4bsUqdsWyz2BZpBisYgfr2MEmdnAcOziJHZxGDpZZ7GAeO1j0GizPDJaxgyeHsIodrGM3XaXYx/Kym65iX/D0K173yeTJN10kH8wvu+kyxVVY9hqMPsPz2MEs9nJNsmL0Pla9VowdPPcl7gJPpt8LniU/KdJH6tyJW/cazFOcj7HvKeJXrC97KSQ5cas+Z/jZwSLyjebppiexm56kuBSqPi/P2RXr/27TZa/XcZp8cBJ7UiQ5e+rkp1n0kal7DQ5mH6MP4fFbrrfPVVEffM4NnnyUih9sIj/FnR0c9xqsYwer5CvWsd8sqJNvurnqk7nwPjYpDmGTfPBk0+VVX54LXzPR1/Ukdh8nyVecWtGKVrSiFa2YdsXor4X9BpM8GSta8Wuv2CS/Cpteg+lfnulVVxz3yt70kz9rx3qgx9oh/NKHcOxYDybNDuGnv1yl+dMfa0fm04d03Ku44+Q3IKqr3jmbJL8N2MQ+6wvf3atin/V1By98OzX9aZbkEF74fKz/n3fEm9ibn3Xy+64XXjH6yRQpBpszg7d/P9x0D/fdZv+n4e3/PHxbLJfh9fC/INpN185XRZj9kh/+aLtYdfOnMKsn+68fi/vdP82bZpoVZZbVYRSetu1m+z64+91qvdv8z78d7TZy90e33e3XffcjzIq3nyP5s9s8LR4f9vsail+zsN+9x++7DeX7fb97XO4fPS3b1WGnu7cH4fjZhefv8+4pvP4FuRwRvA==', 'thing_name': 'ty-x500-ec-fa-bc-9c-c4-66'}
2023-04-04 11:26:13.947 DEBUG (Thread-2 (run_forever)) [custom_components.weback_vacuum.WebackApi] WebackApi (WSS) Map data received
This is the whole code for one error run. Then it starts all over again one second laterâŚ
Thanks!