feat: add support for new T0xDB device(38124914)

This commit is contained in:
Cyborg2017
2026-02-02 23:41:24 +08:00
parent 20d34729f1
commit 5082c3c202
2 changed files with 111 additions and 1 deletions

View File

@@ -468,5 +468,115 @@ DEVICE_MAPPING = {
}
}
}
},
"38124914": {
"rationale": ["off", "on"],
"queries": [{}],
"calculate": {
"get": [
{
"lvalue": "[remaining_time]",
"rvalue": "[remain_time]"
}
],
"set": {}
},
"entities": {
Platform.BINARY_SENSOR: {
"door_opened": {
"device_class": BinarySensorDeviceClass.OPENING,
},
"detergent_lack": {
"device_class": BinarySensorDeviceClass.PROBLEM,
}
},
Platform.SWITCH: {
"power": {
"device_class": SwitchDeviceClass.SWITCH,
},
"control_status": {
"device_class": SwitchDeviceClass.SWITCH,
"rationale": ["pause", "start"],
},
"lock": {
"device_class": SwitchDeviceClass.SWITCH,
"translation_key": "child_lock",
}
},
Platform.SELECT: {
"mode": {
"options": {
"normal": {"mode": "normal"},
"factory_test": {"mode": "factory_test"},
"service": {"mode": "service"},
"normal_continus": {"mode": "normal_continus"}
}
},
"soak_count": {
"options": {
"1次": {"soak_count": 1},
"2次": {"soak_count": 2},
"3次": {"soak_count": 3},
"4次": {"soak_count": 4}
}
},
"temperature": {
"options": {
"冷水": {"temperature": 0},
"20℃": {"temperature": 20},
"30℃": {"temperature": 30},
"40℃": {"temperature": 40},
"60℃": {"temperature": 60}
}
},
"program": {
"options": {
"baby_clothes": {"program": "baby_clothes"},
"cotton": {"program": "cotton"},
"enzyme": {"program": "enzyme"},
"fast_wash": {"program": "fast_wash"},
"fast_wash_30": {"program": "fast_wash_30"},
"mixed_wash": {"program": "mixed_wash"},
"remove_mite_wash": {"program": "remove_mite_wash"},
"shirt": {"program": "shirt"},
"single_dehytration": {"program": "single_dehytration"},
"sport_clothes": {"program": "sport_clothes"},
"ssp": {"program": "ssp"},
"steep": {"program": "steep"},
"underwear": {"program": "water_underwear"},
"kids": {"program": "kids"},
"cook_wash": {"program": "cook_wash"}
}
}
},
Platform.SENSOR: {
"running_status": {
"device_class": SensorDeviceClass.ENUM
},
"remain_time": {
"device_class": SensorDeviceClass.DURATION,
"unit_of_measurement": UnitOfTime.MINUTES,
"state_class": SensorStateClass.MEASUREMENT
},
"progress": {
"device_class": SensorDeviceClass.BATTERY,
"unit_of_measurement": "%",
"state_class": SensorStateClass.MEASUREMENT
},
"error_code": {
"device_class": SensorDeviceClass.ENUM
},
"wash_time_value": {
"device_class": SensorDeviceClass.DURATION,
"unit_of_measurement": UnitOfTime.MINUTES,
"state_class": SensorStateClass.MEASUREMENT
},
"dehydration_time_value": {
"device_class": SensorDeviceClass.DURATION,
"unit_of_measurement": UnitOfTime.MINUTES,
"state_class": SensorStateClass.MEASUREMENT
}
}
}
}
}

View File

@@ -949,7 +949,7 @@
"water_ssp": "水韵超净洗",
"standard": "标准洗",
"green_wool": "绿色羊毛",
"cook_wash": "厨师服洗",
"cook_wash": "高温洗",
"fresh_remove_wrinkle": "清新除皱",
"steam_sterilize_wash": "蒸汽消毒洗",
"aromatherapy": "香薰洗",