feat: add mop dry feature for T0xB8.

This commit is contained in:
sususweet
2025-10-09 20:39:22 +08:00
parent 51133b94bd
commit 0072503a00
4 changed files with 30 additions and 19 deletions

View File

@@ -38,7 +38,9 @@ DEVICE_MAPPING = {
"work": {"work_status": "work"},
"video_cruise_start": {"work_status": "video_cruise_start"},
"video_cruise_pause": {"work_status": "video_cruise_pause"},
"quickly_build_map": {"work_status": "quickly_build_map"},
"mop_clean": {"mop_clean_setting": {"mode_type": "common", "clean_level": "normal"}},
"dry_mop_on": {"work_status": "dry_mop", "switch": "on"},
"dry_mop_off": {"work_status": "dry_mop", "switch": "off"},
}
},
"water_tank_setting": {
@@ -58,18 +60,15 @@ DEVICE_MAPPING = {
}
},
Platform.SENSOR: {
"control_type": {
"fan_level": {
"device_class": SensorDeviceClass.ENUM
},
"mop_status": {
"mop": {
"device_class": SensorDeviceClass.ENUM
},
"sub_work_status": {
"device_class": SensorDeviceClass.ENUM
},
"query_type": {
"device_class": SensorDeviceClass.ENUM
},
"move_direction": {
"device_class": SensorDeviceClass.ENUM
},