mirror of
https://github.com/sususweet/midea-meiju-codec.git
synced 2026-02-27 14:16:35 +00:00
fix: Add correct power switch and control status entities for T0xD9
* Note: `power` is the washing machine's power switch,
`db_running_status` only displays the running status of the current drum,
`db_control_status` is the switch to start or pause the current drum.
This commit is contained in:
@@ -24,6 +24,14 @@ DEVICE_MAPPING = {
|
||||
},
|
||||
},
|
||||
Platform.SWITCH: {
|
||||
"db_power": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"db_control_status": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"rationale": ["pause", "start"],
|
||||
"translation_key": "control_status",
|
||||
}
|
||||
},
|
||||
Platform.SELECT: {
|
||||
"db_location_selection": {
|
||||
@@ -32,17 +40,6 @@ DEVICE_MAPPING = {
|
||||
"right": {"db_location_selection": "right"}
|
||||
}
|
||||
},
|
||||
"db_running_status": {
|
||||
"options": {
|
||||
"off": {"db_power": "off", "db_running_status": "off"},
|
||||
"standby": {"db_power": "on", "db_running_status": "standby"},
|
||||
"start": {"db_power": "on", "db_running_status": "start"},
|
||||
"pause": {"db_power": "on", "db_running_status": "pause"},
|
||||
"end": {"db_power": "on", "db_running_status": "end"},
|
||||
"fault": {"db_power": "on", "db_running_status": "fault"},
|
||||
"delay": {"db_power": "on", "db_running_status": "delay"}
|
||||
}
|
||||
},
|
||||
"db_program": {
|
||||
"options": {
|
||||
"baby_clothes": {"db_program": "baby_clothes"},
|
||||
|
||||
Reference in New Issue
Block a user