humbertogontijo / homeassistant-roborock

Roborock integration for Home Assistant. This integration uses your devices from the Roborock App
GNU General Public License v3.0
668 stars 69 forks source link

No binary sensors with S8 vacuum #352

Open poudenes opened 1 year ago

poudenes commented 1 year ago

Hi All,

I don't get the binary sensors with my Roborock S8:

Mop attached Water box attached Water shortage

When I remove the mop and water box, S8 tell me that they are removed and when I attach them again.

In HA in don't see those binary sensors.

Lash-L commented 1 year ago

Can you turn on debug logging and send me the result of get status in the logs?

chriswood1001 commented 1 year ago

From the integrations dashboard I selected the tripple dots and enabled debug logging for the Roborock integration. I've also triggered an integration reload but don't see additional status in the Home Assistant logs. How do I trigger a "get status"?

poudenes commented 1 year ago

Hi ALl,

This is what I get when debug is on and I do a reload of the integration:

2023-06-01 07:14:10.478 DEBUG (MainThread) [roborock.local_api] id=35179 Requesting method get_status with None
2023-06-01 07:14:10.484 DEBUG (MainThread) [roborock.local_api] id=12748 Requesting method get_dnd_timer with None
2023-06-01 07:14:10.488 DEBUG (MainThread) [roborock.local_api] id=35108 Requesting method get_clean_summary with None
2023-06-01 07:14:10.492 DEBUG (MainThread) [roborock.local_api] id=42172 Requesting method get_consumable with None
2023-06-01 07:14:10.506 DEBUG (MainThread) [roborock.local_api] id=35179 Response from method get_status: {'msg_ver': 2, 'msg_seq': 469, 'state': 8, 'battery': 100, 'clean_time': 3418, 'clean_area': 37330000, 'error_code': 0, 'map_present': 1, 'in_cleaning': 0, 'in_returning': 0, 'in_fresh_state': 1, 'lab_status': 1, 'water_box_status': 1, 'fan_power': 103, 'dnd_enabled': 1, 'map_status': 3, 'is_locating': 0, 'lock_status': 0, 'water_box_mode': 203, 'water_box_carriage_status': 1, 'mop_forbidden_enable': 1, 'camera_status': 385, 'is_exploring': 0, 'adbumper_status': [0, 0, 0], 'water_shortage_status': 0, 'dock_type': 0, 'dust_collection_status': 0, 'auto_dust_collection': 1, 'avoid_count': 121, 'mop_mode': 300, 'debug_mode': 0, 'collision_avoid_status': 1, 'switch_map_mode': 0, 'dock_error_status': 0, 'charge_status': 1, 'unsave_map_reason': 0, 'unsave_map_flag': 0, 'clean_percent': 0, 'rss': 2, 'dss': 0}
2023-06-01 07:14:10.506 DEBUG (MainThread) [roborock.local_api] id=12748 Response from method get_dnd_timer: {'start_hour': 22, 'start_minute': 0, 'end_hour': 8, 'end_minute': 0, 'enabled': 1, 'actions': {'resume': 1, 'vol': 1, 'led': 1, 'dust': 1, 'dry': 0}}
2023-06-01 07:14:10.506 DEBUG (MainThread) [roborock.local_api] id=35108 Response from method get_clean_summary: {'clean_time': 31306, 'clean_area': 408817500, 'clean_count': 49, 'dust_collection_count': 0, 'records': [1685533223, 1685517694, 1685517008, 1685516902, 1685461665, 1685442927, 1685441473, 1685441114, 1685441086, 1685440398, 1685437667, 1685434539, 1685431670, 1685430465, 1685430290, 1685430240, 1685430115, 1685430004, 1685429688, 1685429535]}
2023-06-01 07:14:10.546 DEBUG (MainThread) [roborock.local_api] id=42172 Response from method get_consumable: {'main_brush_work_time': 31315, 'side_brush_work_time': 31315, 'filter_work_time': 31315, 'filter_element_work_time': 0, 'sensor_dirty_time': 31306, 'dust_collection_work_times': 0}
2023-06-01 07:14:10.548 DEBUG (MainThread) [roborock.local_api] id=89280 Requesting method get_clean_record with [1685533223]
2023-06-01 07:14:10.605 DEBUG (MainThread) [roborock.local_api] id=89280 Response from method get_clean_record: {'begin': 1685533223, 'end': 1685536641, 'duration': 3418, 'area': 37330000, 'error': 0, 'complete': 1, 'start_type': 2, 'clean_type': 1, 'finish_reason': 52, 'dust_collection_status': 0, 'avoid_count': 121, 'map_flag': 0}
2023-06-01 07:14:10.608 DEBUG (MainThread) [custom_components.roborock.coordinator] Finished fetching roborock data in 0.131 seconds (success: True)
2023-06-01 07:14:40.484 DEBUG (MainThread) [roborock.local_api] id=61886 Requesting method get_status with None
2023-06-01 07:14:40.496 DEBUG (MainThread) [roborock.local_api] id=46617 Requesting method get_dnd_timer with None
2023-06-01 07:14:40.501 DEBUG (MainThread) [roborock.local_api] id=33652 Requesting method get_clean_summary with None
2023-06-01 07:14:40.505 DEBUG (MainThread) [roborock.local_api] id=36458 Requesting method get_consumable with None
2023-06-01 07:14:40.518 DEBUG (MainThread) [roborock.local_api] id=61886 Response from method get_status: {'msg_ver': 2, 'msg_seq': 470, 'state': 8, 'battery': 100, 'clean_time': 3418, 'clean_area': 37330000, 'error_code': 0, 'map_present': 1, 'in_cleaning': 0, 'in_returning': 0, 'in_fresh_state': 1, 'lab_status': 1, 'water_box_status': 1, 'fan_power': 103, 'dnd_enabled': 1, 'map_status': 3, 'is_locating': 0, 'lock_status': 0, 'water_box_mode': 203, 'water_box_carriage_status': 1, 'mop_forbidden_enable': 1, 'camera_status': 385, 'is_exploring': 0, 'adbumper_status': [0, 0, 0], 'water_shortage_status': 0, 'dock_type': 0, 'dust_collection_status': 0, 'auto_dust_collection': 1, 'avoid_count': 121, 'mop_mode': 300, 'debug_mode': 0, 'collision_avoid_status': 1, 'switch_map_mode': 0, 'dock_error_status': 0, 'charge_status': 1, 'unsave_map_reason': 0, 'unsave_map_flag': 0, 'clean_percent': 0, 'rss': 2, 'dss': 0}
2023-06-01 07:14:40.519 DEBUG (MainThread) [roborock.local_api] id=46617 Response from method get_dnd_timer: {'start_hour': 22, 'start_minute': 0, 'end_hour': 8, 'end_minute': 0, 'enabled': 1, 'actions': {'resume': 1, 'vol': 1, 'led': 1, 'dust': 1, 'dry': 0}}
2023-06-01 07:14:40.567 DEBUG (MainThread) [roborock.local_api] id=33652 Response from method get_clean_summary: {'clean_time': 31306, 'clean_area': 408817500, 'clean_count': 49, 'dust_collection_count': 0, 'records': [1685533223, 1685517694, 1685517008, 1685516902, 1685461665, 1685442927, 1685441473, 1685441114, 1685441086, 1685440398, 1685437667, 1685434539, 1685431670, 1685430465, 1685430290, 1685430240, 1685430115, 1685430004, 1685429688, 1685429535]}
2023-06-01 07:14:40.568 DEBUG (MainThread) [roborock.local_api] id=36458 Response from method get_consumable: {'main_brush_work_time': 31315, 'side_brush_work_time': 31315, 'filter_work_time': 31315, 'filter_element_work_time': 0, 'sensor_dirty_time': 31306, 'dust_collection_work_times': 0}
2023-06-01 07:14:40.571 DEBUG (MainThread) [roborock.local_api] id=11930 Requesting method get_clean_record with [1685533223]
2023-06-01 07:14:40.626 DEBUG (MainThread) [roborock.local_api] id=11930 Response from method get_clean_record: {'begin': 1685533223, 'end': 1685536641, 'duration': 3418, 'area': 37330000, 'error': 0, 'complete': 1, 'start_type': 2, 'clean_type': 1, 'finish_reason': 52, 'dust_collection_status': 0, 'avoid_count': 121, 'map_flag': 0}
2023-06-01 07:14:40.628 DEBUG (MainThread) [custom_components.roborock.coordinator] Finished fetching roborock data in 0.146 seconds (success: True)
2023-06-01 07:15:10.477 DEBUG (MainThread) [roborock.local_api] id=34601 Requesting method get_status with None
2023-06-01 07:15:10.483 DEBUG (MainThread) [roborock.local_api] id=17736 Requesting method get_dnd_timer with None
2023-06-01 07:15:10.488 DEBUG (MainThread) [roborock.local_api] id=84445 Requesting method get_clean_summary with None
2023-06-01 07:15:10.495 DEBUG (MainThread) [roborock.local_api] id=91745 Requesting method get_consumable with None
2023-06-01 07:15:10.506 DEBUG (MainThread) [roborock.local_api] id=34601 Response from method get_status: {'msg_ver': 2, 'msg_seq': 471, 'state': 8, 'battery': 100, 'clean_time': 3418, 'clean_area': 37330000, 'error_code': 0, 'map_present': 1, 'in_cleaning': 0, 'in_returning': 0, 'in_fresh_state': 1, 'lab_status': 1, 'water_box_status': 1, 'fan_power': 103, 'dnd_enabled': 1, 'map_status': 3, 'is_locating': 0, 'lock_status': 0, 'water_box_mode': 203, 'water_box_carriage_status': 1, 'mop_forbidden_enable': 1, 'camera_status': 385, 'is_exploring': 0, 'adbumper_status': [0, 0, 0], 'water_shortage_status': 0, 'dock_type': 0, 'dust_collection_status': 0, 'auto_dust_collection': 1, 'avoid_count': 121, 'mop_mode': 300, 'debug_mode': 0, 'collision_avoid_status': 1, 'switch_map_mode': 0, 'dock_error_status': 0, 'charge_status': 1, 'unsave_map_reason': 0, 'unsave_map_flag': 0, 'clean_percent': 0, 'rss': 2, 'dss': 0}
2023-06-01 07:15:10.506 DEBUG (MainThread) [roborock.local_api] id=17736 Response from method get_dnd_timer: {'start_hour': 22, 'start_minute': 0, 'end_hour': 8, 'end_minute': 0, 'enabled': 1, 'actions': {'resume': 1, 'vol': 1, 'led': 1, 'dust': 1, 'dry': 0}}
2023-06-01 07:15:10.522 DEBUG (MainThread) [roborock.local_api] id=84445 Response from method get_clean_summary: {'clean_time': 31306, 'clean_area': 408817500, 'clean_count': 49, 'dust_collection_count': 0, 'records': [1685533223, 1685517694, 1685517008, 1685516902, 1685461665, 1685442927, 1685441473, 1685441114, 1685441086, 1685440398, 1685437667, 1685434539, 1685431670, 1685430465, 1685430290, 1685430240, 1685430115, 1685430004, 1685429688, 1685429535]}
2023-06-01 07:15:10.584 DEBUG (MainThread) [roborock.local_api] id=91745 Response from method get_consumable: {'main_brush_work_time': 31315, 'side_brush_work_time': 31315, 'filter_work_time': 31315, 'filter_element_work_time': 0, 'sensor_dirty_time': 31306, 'dust_collection_work_times': 0}
2023-06-01 07:15:10.586 DEBUG (MainThread) [roborock.local_api] id=87286 Requesting method get_clean_record with [1685533223]
2023-06-01 07:15:10.659 DEBUG (MainThread) [roborock.local_api] id=87286 Response from method get_clean_record: {'begin': 1685533223, 'end': 1685536641, 'duration': 3418, 'area': 37330000, 'error': 0, 'complete': 1, 'start_type': 2, 'clean_type': 1, 'finish_reason': 52, 'dust_collection_status': 0, 'avoid_count': 121, 'map_flag': 0}
2023-06-01 07:15:10.661 DEBUG (MainThread) [custom_components.roborock.coordinator] Finished fetching roborock data in 0.185 seconds (success: True)
2023-06-01 07:15:16.460 DEBUG (MainThread) [roborock.local_api] Disconnecting from 192.168.100.248
2023-06-01 07:15:16.460 INFO (MainThread) [roborock.cloud_api] Disconnecting from mqtt
2023-06-01 07:15:16.465 INFO (Thread-10 (_thread_main)) [roborock.api] Roborock client disconnected
2023-06-01 07:15:16.467 DEBUG (MainThread) [roborock.local_api] Disconnecting from 192.168.100.248
2023-06-01 07:15:16.467 INFO (MainThread) [roborock.api] Roborock client disconnected
2023-06-01 07:15:16.470 DEBUG (MainThread) [custom_components.roborock] Integration async setup entry: {'entry_id': '2ac420e51518f3b128c2e3d1a068ef04', 'version': 1, 'domain': 'roborock', 'title': 'Roborock S8', 'data': {'home_data': {'id': 4352727, 'name': 'Asingaborg', 'products': [{'id': '1YHt9M9RESPHmiQFrrPw1S', 'name': 'Roborock S8', 'model': 'roborock.vacuum.a51', 'capability': 0, 'category': 'robot.vacuum.cleaner', 'schema': [{'id': '101', 'name': 'rpc_request', 'code': 'rpc_request', 'mode': 'rw', 'type': 'RAW'}, {'id': '102', 'name': 'rpc_response', 'code': 'rpc_response', 'mode': 'rw', 'type': 'RAW'}, {'id': '120', 'name': '错误代码', 'code': 'error_code', 'mode': 'ro', 'type': 'ENUM'}, {'id': '121', 'name': '设备状态', 'code': 'state', 'mode': 'ro', 'type': 'ENUM'}, {'id': '122', 'name': '设备电量', 'code': 'battery', 'mode': 'ro', 'type': 'ENUM'}, {'id': '123', 'name': '清扫模式', 'code': 'fan_power', 'mode': 'rw', 'type': 'ENUM'}, {'id': '124', 'name': '拖地模式', 'code': 'water_box_mode', 'mode': 'rw', 'type': 'ENUM'}, {'id': '125', 'name': '主刷寿命', 'code': 'main_brush_life', 'mode': 'rw', 'type': 'VALUE'}, {'id': '126', 'name': '边刷寿命', 'code': 'side_brush_life', 'mode': 'rw', 'type': 'VALUE'}, {'id': '127', 'name': '滤网寿命', 'code': 'filter_life', 'mode': 'rw', 'type': 'VALUE'}, {'id': '128', 'name': '额外状态', 'code': 'additional_props', 'mode': 'ro', 'type': 'RAW'}, {'id': '130', 'name': '完成事件', 'code': 'task_complete', 'mode': 'ro', 'type': 'RAW'}, {'id': '131', 'name': '电量不足任务取消', 'code': 'task_cancel_low_power', 'mode': 'ro', 'type': 'RAW'}, {'id': '132', 'name': '运动中任务取消', 'code': 'task_cancel_in_motion', 'mode': 'ro', 'type': 'RAW'}, {'id': '133', 'name': '充电状态', 'code': 'charge_status', 'mode': 'ro', 'type': 'RAW'}, {'id': '134', 'name': '烘干状态', 'code': 'drying_status', 'mode': 'ro', 'type': 'RAW'}]}], 'devices': [{'duid': '5CYMWCFb4GkqFLrac6nUhU', 'name': 'Roborock S8', 'localKey': 'ellIicHHT9XskCGz', 'fv': '02.13.66', 'activeTime': 1684958256, 'timeZoneId': 'Europe/Amsterdam', 'iconUrl': '', 'productId': '1YHt9M9RESPHmiQFrrPw1S', 'share': False, 'online': True, 'pv': '1.0', 'tuyaMigrated': False, 'sn': 'R35EED31501335', 'featureSet': '2106657818443775', 'newFeatureSet': '0000000000087FFE', 'deviceStatus': {'121': 8, '122': 100, '123': 106, '124': 204, '125': 100, '126': 100, '127': 100, '128': 0, '133': 1}, 'silentOtaSwitch': False}], 'receivedDevices': [], 'rooms': []}, 'username': 'Info@DOMAIN', 'user_data': {'uid': 4338963, 'tokentype': '', 'token': 'f62c51d54913475097991f062aac0ca5-UfxNB3LVE5CH3x1VPeZCNQ==', 'rruid': 'rr6213d550dad820', 'region': 'eu', 'countrycode': '31', 'country': 'NL', 'nickname': 'Poudenes', 'rriot': {'u': '6FxYml79XAX968bR4hoPLS', 's': 'YHeugM', 'h': 'BqrHLvfnyE', 'k': 'pt9nKSue', 'r': {'r': 'EU', 'a': 'https://api-eu.roborock.com', 'm': 'ssl://mqtt-eu-5.roborock.com:8883', 'l': 'https://wood-eu.roborock.com'}}, 'tuyaDeviceState': 0, 'avatarurl': 'https://files.roborock.com/iottest/default_avatar.png'}, 'base_url': 'https://euiot.roborock.com'}, 'options': {'camera': {'map_transformation': {'scale': 1.0, 'rotate': 90, 'trim': {'left': 5.0, 'right': 30.0, 'top': 15.0, 'bottom': 15.0}, 'include_nogo': True, 'include_ignored_obstacles': True}, 'include_ignored_obstacles': True, 'include_nogo': True}}, 'pref_disable_new_entities': False, 'pref_disable_polling': False, 'source': 'dhcp', 'unique_id': 'Info@DOMAIN', 'disabled_by': None}
2023-06-01 07:15:16.472 DEBUG (MainThread) [custom_components.roborock] Requesting home data
2023-06-01 07:15:16.712 DEBUG (MainThread) [custom_components.roborock] Got home data HomeData(id=4352727, name='Asingaborg', lon=None, lat=None, geo_name=None, products=[HomeDataProduct(id='1YHt9M9RESPHmiQFrrPw1S', name='Roborock S8', code=None, model='roborock.vacuum.a51', iconurl=None, attribute=None, capability=0, category='robot.vacuum.cleaner', schema=[HomeDataProductSchema(id='101', name='rpc_request', code='rpc_request', mode='rw', type='RAW', product_property=None, desc=None), HomeDataProductSchema(id='102', name='rpc_response', code='rpc_response', mode='rw', type='RAW', product_property=None, desc=None), HomeDataProductSchema(id='120', name='错误代码', code='error_code', mode='ro', type='ENUM', product_property=None, desc=None), HomeDataProductSchema(id='121', name='设备状态', code='state', mode='ro', type='ENUM', product_property=None, desc=None), HomeDataProductSchema(id='122', name='设备电量', code='battery', mode='ro', type='ENUM', product_property=None, desc=None), HomeDataProductSchema(id='123', name='清扫模式', code='fan_power', mode='rw', type='ENUM', product_property=None, desc=None), HomeDataProductSchema(id='124', name='拖地模式', code='water_box_mode', mode='rw', type='ENUM', product_property=None, desc=None), HomeDataProductSchema(id='125', name='主刷寿命', code='main_brush_life', mode='rw', type='VALUE', product_property=None, desc=None), HomeDataProductSchema(id='126', name='边刷寿命', code='side_brush_life', mode='rw', type='VALUE', product_property=None, desc=None), HomeDataProductSchema(id='127', name='滤网寿命', code='filter_life', mode='rw', type='VALUE', product_property=None, desc=None), HomeDataProductSchema(id='128', name='额外状态', code='additional_props', mode='ro', type='RAW', product_property=None, desc=None), HomeDataProductSchema(id='130', name='完成事件', code='task_complete', mode='ro', type='RAW', product_property=None, desc=None), HomeDataProductSchema(id='131', name='电量不足任务取消', code='task_cancel_low_power', mode='ro', type='RAW', product_property=None, desc=None), HomeDataProductSchema(id='132', name='运动中任务取消', code='task_cancel_in_motion', mode='ro', type='RAW', product_property=None, desc=None), HomeDataProductSchema(id='133', name='充电状态', code='charge_status', mode='ro', type='RAW', product_property=None, desc=None), HomeDataProductSchema(id='134', name='烘干状态', code='drying_status', mode='ro', type='RAW', product_property=None, desc=None)])], devices=[HomeDataDevice(duid='5CYMWCFb4GkqFLrac6nUhU', name='Roborock S8', local_key='ellIicHHT9XskCGz', fv='02.13.66', attribute=None, active_time=1684958256, runtime_env=None, time_zone_id='Europe/Amsterdam', icon_url='', product_id='1YHt9M9RESPHmiQFrrPw1S', lon=None, lat=None, share=False, share_time=None, online=True, pv='1.0', room_id=None, tuya_uuid=None, tuya_migrated=False, extra=None, sn='R35EED31501335', feature_set='2106657818443775', new_feature_set='0000000000087FFE', device_status={'121': 8, '122': 100, '123': 103, '124': 203, '125': 98, '126': 96, '127': 95, '128': 0, '133': 1, '120': 0}, silent_ota_switch=False)], received_devices=[], rooms=[])
2023-06-01 07:15:18.703 DEBUG (MainThread) [roborock.protocol] Received broadcast: BroadcastMessage(duid='5CYMWCFb4GkqFLrac6nUhU', ip='192.168.100.248')
2023-06-01 07:15:23.616 DEBUG (MainThread) [roborock.protocol] Received broadcast: BroadcastMessage(duid='5CYMWCFb4GkqFLrac6nUhU', ip='192.168.100.248')
2023-06-01 07:15:26.993 DEBUG (MainThread) [roborock.local_api] id=42295 Requesting method get_multi_maps_list with None
2023-06-01 07:15:26.993 INFO (MainThread) [roborock.local_api] Connecting to 192.168.100.248
2023-06-01 07:15:27.024 DEBUG (MainThread) [roborock.local_api] id=72174 Requesting method get_room_mapping with None
2023-06-01 07:15:27.028 DEBUG (MainThread) [roborock.local_api] id=12207 Requesting method get_status with None
2023-06-01 07:15:27.029 DEBUG (MainThread) [roborock.local_api] id=39531 Requesting method get_dnd_timer with None
2023-06-01 07:15:27.030 DEBUG (MainThread) [roborock.local_api] id=17839 Requesting method get_clean_summary with None
2023-06-01 07:15:27.031 DEBUG (MainThread) [roborock.local_api] id=30042 Requesting method get_consumable with None
2023-06-01 07:15:27.054 INFO (MainThread) [roborock.local_api] Connected to 192.168.100.248
2023-06-01 07:15:27.159 DEBUG (MainThread) [roborock.local_api] id=72174 Response from method get_room_mapping: [[16, '', 14], [17, '', 1], [18, '', 12], [19, '', 6], [20, '', 13], [21, '', 1]]
2023-06-01 07:15:27.160 DEBUG (MainThread) [roborock.local_api] id=12207 Response from method get_status: {'msg_ver': 2, 'msg_seq': 472, 'state': 8, 'battery': 100, 'clean_time': 3418, 'clean_area': 37330000, 'error_code': 0, 'map_present': 1, 'in_cleaning': 0, 'in_returning': 0, 'in_fresh_state': 1, 'lab_status': 1, 'water_box_status': 1, 'fan_power': 103, 'dnd_enabled': 1, 'map_status': 3, 'is_locating': 0, 'lock_status': 0, 'water_box_mode': 203, 'water_box_carriage_status': 1, 'mop_forbidden_enable': 1, 'camera_status': 385, 'is_exploring': 0, 'adbumper_status': [0, 0, 0], 'water_shortage_status': 0, 'dock_type': 0, 'dust_collection_status': 0, 'auto_dust_collection': 1, 'avoid_count': 121, 'mop_mode': 300, 'debug_mode': 0, 'collision_avoid_status': 1, 'switch_map_mode': 0, 'dock_error_status': 0, 'charge_status': 1, 'unsave_map_reason': 0, 'unsave_map_flag': 0, 'clean_percent': 0, 'rss': 2, 'dss': 0}
2023-06-01 07:15:27.161 DEBUG (MainThread) [roborock.local_api] id=39531 Response from method get_dnd_timer: {'start_hour': 22, 'start_minute': 0, 'end_hour': 8, 'end_minute': 0, 'enabled': 1, 'actions': {'resume': 1, 'vol': 1, 'led': 1, 'dust': 1, 'dry': 0}}
2023-06-01 07:15:27.174 DEBUG (MainThread) [roborock.local_api] id=17839 Response from method get_clean_summary: {'clean_time': 31306, 'clean_area': 408817500, 'clean_count': 49, 'dust_collection_count': 0, 'records': [1685533223, 1685517694, 1685517008, 1685516902, 1685461665, 1685442927, 1685441473, 1685441114, 1685441086, 1685440398, 1685437667, 1685434539, 1685431670, 1685430465, 1685430290, 1685430240, 1685430115, 1685430004, 1685429688, 1685429535]}
2023-06-01 07:15:27.194 DEBUG (MainThread) [roborock.local_api] id=30042 Response from method get_consumable: {'main_brush_work_time': 31315, 'side_brush_work_time': 31315, 'filter_work_time': 31315, 'filter_element_work_time': 0, 'sensor_dirty_time': 31306, 'dust_collection_work_times': 0}
2023-06-01 07:15:27.201 DEBUG (MainThread) [roborock.local_api] id=26012 Requesting method get_clean_record with [1685533223]
2023-06-01 07:15:27.218 DEBUG (MainThread) [roborock.local_api] id=26012 Response from method get_clean_record: {'begin': 1685533223, 'end': 1685536641, 'duration': 3418, 'area': 37330000, 'error': 0, 'complete': 1, 'start_type': 2, 'clean_type': 1, 'finish_reason': 52, 'dust_collection_status': 0, 'avoid_count': 121, 'map_flag': 0}
2023-06-01 07:15:27.263 DEBUG (MainThread) [roborock.local_api] id=42295 Response from method get_multi_maps_list: {'max_multi_map': 1, 'max_bak_map': 1, 'multi_map_count': 1, 'map_info': [{'mapFlag': 0, 'add_time': 1685536702, 'length': 0, 'name': '', 'bak_maps': [{'mapFlag': 4, 'add_time': 1685445361}]}]}
2023-06-01 07:15:27.265 DEBUG (MainThread) [custom_components.roborock.coordinator] Finished fetching roborock data in 0.317 seconds (success: True)
2023-06-01 07:15:27.310 DEBUG (MainThread) [custom_components.roborock.camera] Retrieving map from Roborock MQTT
2023-06-01 07:15:27.310 INFO (MainThread) [roborock.cloud_api] Starting mqtt loop
2023-06-01 07:15:27.315 INFO (MainThread) [roborock.cloud_api] Connecting to mqtt
2023-06-01 07:15:28.404 INFO (Thread-5018 (_thread_main)) [roborock.cloud_api] Connected to mqtt mqtt-eu-5.roborock.com:8883
2023-06-01 07:15:28.404 INFO (Thread-5018 (_thread_main)) [roborock.cloud_api] Subscribed to topic rr/m/o/6FxYml79XAX968bR4hoPLS/2117bfff/5CYMWCFb4GkqFLrac6nUhU
2023-06-01 07:15:28.409 DEBUG (MainThread) [roborock.cloud_api] id=31302 Requesting method get_map_v1 with None
2023-06-01 07:15:28.723 DEBUG (MainThread) [roborock.cloud_api] id=31302 Response from get_map_v1: 217297 bytes
2023-06-01 07:15:28.755 DEBUG (MainThread) [custom_components.roborock.common.map_data_parser] UNKNOWN BLOCK TYPE: 21, header length 12, data length 0
2023-06-01 07:15:28.756 DEBUG (MainThread) [custom_components.roborock.common.map_data_parser] UNKNOWN BLOCK TYPE: 31, header length 12, data length 0
2023-06-01 07:15:28.767 DEBUG (MainThread) [custom_components.roborock.common.map_data_parser] UNKNOWN BLOCK TYPE: 33, header length 8, data length 8
2023-06-01 07:15:28.768 DEBUG (MainThread) [custom_components.roborock.common.map_data_parser] UNKNOWN BLOCK TYPE: 32, header length 8, data length 15
2023-06-01 07:15:28.785 DEBUG (MainThread) [custom_components.roborock.common.map_data_parser] UNKNOWN BLOCK TYPE: 22, header length 12, data length 0
2023-06-01 07:15:28.786 DEBUG (MainThread) [custom_components.roborock.common.map_data_parser] UNKNOWN BLOCK TYPE: 28, header length 12, data length 0
2023-06-01 07:15:28.786 DEBUG (MainThread) [custom_components.roborock.common.map_data_parser] UNKNOWN BLOCK TYPE: 30, header length 12, data length 0
2023-06-01 07:15:28.786 DEBUG (MainThread) [custom_components.roborock.common.map_data_parser] UNKNOWN BLOCK TYPE: 24, header length 8, data length 32
2023-06-01 07:15:28.786 DEBUG (MainThread) [custom_components.roborock.common.map_data_parser] UNKNOWN BLOCK TYPE: 25, header length 12, data length 0
2023-06-01 07:15:28.787 DEBUG (MainThread) [custom_components.roborock.common.map_data_parser] UNKNOWN BLOCK TYPE: 29, header length 12, data length 0
2023-06-01 07:15:28.787 DEBUG (MainThread) [custom_components.roborock.common.map_data_parser] UNKNOWN BLOCK TYPE: 26, header length 8, data length 4
2023-06-01 07:15:29.211 DEBUG (MainThread) [custom_components.roborock.camera] Map data retrieved
2023-06-01 07:15:29.211 DEBUG (MainThread) [custom_components.roborock.camera] Map is ok
2023-06-01 07:15:30.225 DEBUG (MainThread) [roborock.local_api] id=15811 Requesting method get_room_mapping with None
2023-06-01 07:15:30.229 DEBUG (MainThread) [roborock.local_api] id=97586 Requesting method get_status with None
2023-06-01 07:15:30.233 DEBUG (MainThread) [roborock.local_api] id=58575 Requesting method get_dnd_timer with None
2023-06-01 07:15:30.236 DEBUG (MainThread) [roborock.local_api] id=39268 Requesting method get_clean_summary with None
2023-06-01 07:15:30.240 DEBUG (MainThread) [roborock.local_api] id=47011 Requesting method get_consumable with None
2023-06-01 07:15:30.263 DEBUG (MainThread) [roborock.local_api] id=15811 Response from method get_room_mapping: [[16, '', 14], [17, '', 1], [18, '', 12], [19, '', 6], [20, '', 13], [21, '', 1]]
2023-06-01 07:15:30.264 DEBUG (MainThread) [roborock.local_api] id=97586 Response from method get_status: {'msg_ver': 2, 'msg_seq': 473, 'state': 8, 'battery': 100, 'clean_time': 3418, 'clean_area': 37330000, 'error_code': 0, 'map_present': 1, 'in_cleaning': 0, 'in_returning': 0, 'in_fresh_state': 1, 'lab_status': 1, 'water_box_status': 1, 'fan_power': 103, 'dnd_enabled': 1, 'map_status': 3, 'is_locating': 0, 'lock_status': 0, 'water_box_mode': 203, 'water_box_carriage_status': 1, 'mop_forbidden_enable': 1, 'camera_status': 385, 'is_exploring': 0, 'adbumper_status': [0, 0, 0], 'water_shortage_status': 0, 'dock_type': 0, 'dust_collection_status': 0, 'auto_dust_collection': 1, 'avoid_count': 121, 'mop_mode': 300, 'debug_mode': 0, 'collision_avoid_status': 1, 'switch_map_mode': 0, 'dock_error_status': 0, 'charge_status': 1, 'unsave_map_reason': 0, 'unsave_map_flag': 0, 'clean_percent': 0, 'rss': 2, 'dss': 0}
2023-06-01 07:15:30.264 DEBUG (MainThread) [roborock.local_api] id=58575 Response from method get_dnd_timer: {'start_hour': 22, 'start_minute': 0, 'end_hour': 8, 'end_minute': 0, 'enabled': 1, 'actions': {'resume': 1, 'vol': 1, 'led': 1, 'dust': 1, 'dry': 0}}
2023-06-01 07:15:30.267 DEBUG (MainThread) [roborock.local_api] id=39268 Response from method get_clean_summary: {'clean_time': 31306, 'clean_area': 408817500, 'clean_count': 49, 'dust_collection_count': 0, 'records': [1685533223, 1685517694, 1685517008, 1685516902, 1685461665, 1685442927, 1685441473, 1685441114, 1685441086, 1685440398, 1685437667, 1685434539, 1685431670, 1685430465, 1685430290, 1685430240, 1685430115, 1685430004, 1685429688, 1685429535]}
2023-06-01 07:15:30.295 DEBUG (MainThread) [roborock.local_api] id=47011 Response from method get_consumable: {'main_brush_work_time': 31315, 'side_brush_work_time': 31315, 'filter_work_time': 31315, 'filter_element_work_time': 0, 'sensor_dirty_time': 31306, 'dust_collection_work_times': 0}
2023-06-01 07:15:30.297 DEBUG (MainThread) [roborock.local_api] id=86347 Requesting method get_clean_record with [1685533223]
2023-06-01 07:15:30.352 DEBUG (MainThread) [roborock.local_api] id=86347 Response from method get_clean_record: {'begin': 1685533223, 'end': 1685536641, 'duration': 3418, 'area': 37330000, 'error': 0, 'complete': 1, 'start_type': 2, 'clean_type': 1, 'finish_reason': 52, 'dust_collection_status': 0, 'avoid_count': 121, 'map_flag': 0}
2023-06-01 07:15:30.355 DEBUG (MainThread) [custom_components.roborock.coordinator] Finished fetching roborock data in 0.131 seconds (success: True)
2023-06-01 07:15:47.433 DEBUG (MainThread) [roborock.local_api] Disconnecting from 192.168.100.248
poudenes commented 1 year ago

Here all attributes belong to vacuum.roborock:

fan_speed_list:
  - 'off'
  - quiet
  - balanced
  - turbo
  - max
  - custom
  - max_plus
mop_mode_list:
  - standard
  - deep
  - custom
  - deep_plus
mop_intensity_list:
  - 'off'
  - mild
  - moderate
  - intense
  - custom
battery_level: 100
battery_icon: mdi:battery-charging-100
fan_speed: turbo
msgVer: 2
msgSeq: 2060
state: docked
battery: 100
cleanTime: 3733
cleanArea: 38070000
squareMeterCleanArea: 38.1
errorCode: 0
mapPresent: 1
inCleaning: 0
inReturning: 0
inFreshState: 1
labStatus: 1
waterBoxStatus: 1
fanPower: 103
dndEnabled: 0
mapStatus: 3
isLocating: 0
lockStatus: 0
waterBoxMode: 203
waterBoxCarriageStatus: 1
mopForbiddenEnable: 1
cameraStatus: 385
isExploring: 0
adbumperStatus:
  - 0
  - 0
  - 0
waterShortageStatus: 0
dockType: 0
dustCollectionStatus: 0
autoDustCollection: 1
avoidCount: 171
mopMode: 300
debugMode: 0
collisionAvoidStatus: 1
switchMapMode: 0
dockErrorStatus: 0
chargeStatus: 1
unsaveMapReason: 0
unsaveMapFlag: 0
status: charging
mop_mode: standard
mop_intensity: intense
error: null
icon: mdi:robot-vacuum
friendly_name: Roborock S8
supported_features: 16383
poudenes commented 1 year ago

waterBoxStatus attributes goes from 1 to 0 when water tank is removed

waterBoxCarriageStatus attributes goes from 1 to 0 when mop mount is removed mopForbiddenEnable attributes goes from 1 to 0 when mop mount is removed

When removing dusk bin out of the Roborock there is no attribute change from 1 to 0

vivdesign commented 1 year ago

waterBoxCarriageStatus doesn't change at all it is 1 all the time S6 MaxV

matata86 commented 1 year ago

Hello. Any solution for binary sensor with roborock s8?

poudenes commented 1 year ago

Today I saw a message the the watertank was low for my S8 (on iOS app) I copied all attributes from HA and after I refilled the watertank I copied it again and compare them this is what I found:

Before I filled the watertank: waterBoxStatus: 0 After I filled the watertank: waterBoxStatus: 1

This attributes was new after I filled the tank: waterShortageStatus: 0 This attribute was not there before I filled it.