mirror of
https://github.com/sususweet/midea-meiju-codec.git
synced 2025-10-15 10:48:26 +00:00
feat: update device rational
This commit is contained in:
@@ -108,7 +108,7 @@ DEVICE_MAPPING = {
|
|||||||
},
|
},
|
||||||
"prevent_straight_wind": {
|
"prevent_straight_wind": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
"rationale": [1, 2]
|
"rationale": [0, 1]
|
||||||
},
|
},
|
||||||
"aux_heat": {
|
"aux_heat": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
|
@@ -17,39 +17,51 @@ DEVICE_MAPPING = {
|
|||||||
Platform.SWITCH: {
|
Platform.SWITCH: {
|
||||||
"ai_switch": {
|
"ai_switch": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
|
"rationale": [0, 1]
|
||||||
},
|
},
|
||||||
"light": {
|
"light": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
|
"rationale": [0, 1]
|
||||||
},
|
},
|
||||||
"appointment": {
|
"appointment": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
|
"rationale": [0, 1]
|
||||||
},
|
},
|
||||||
"prevent_wrinkle_switch": {
|
"prevent_wrinkle_switch": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
|
"rationale": [0, 1]
|
||||||
},
|
},
|
||||||
"steam_switch": {
|
"steam_switch": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
|
"rationale": [0, 1]
|
||||||
},
|
},
|
||||||
"damp_dry_signal": {
|
"damp_dry_signal": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
|
"rationale": [0, 1]
|
||||||
},
|
},
|
||||||
"eco_dry_switch": {
|
"eco_dry_switch": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
|
"rationale": [0, 1]
|
||||||
},
|
},
|
||||||
"bucket_clean_switch": {
|
"bucket_clean_switch": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
|
"rationale": [0, 1]
|
||||||
},
|
},
|
||||||
"water_box": {
|
"water_box": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
|
"rationale": [0, 1]
|
||||||
},
|
},
|
||||||
"baby_lock": {
|
"baby_lock": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
|
"rationale": [0, 1]
|
||||||
},
|
},
|
||||||
"remind_sound": {
|
"remind_sound": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
|
"rationale": [0, 1]
|
||||||
},
|
},
|
||||||
"steam": {
|
"steam": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
|
"rationale": [0, 1]
|
||||||
},
|
},
|
||||||
"power": {
|
"power": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
|
@@ -12,21 +12,27 @@ DEVICE_MAPPING = {
|
|||||||
Platform.SWITCH: {
|
Platform.SWITCH: {
|
||||||
"airswitch": {
|
"airswitch": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
|
"rationale": [0, 1]
|
||||||
},
|
},
|
||||||
"waterswitch": {
|
"waterswitch": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
|
"rationale": [0, 1]
|
||||||
},
|
},
|
||||||
"uvswitch": {
|
"uvswitch": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
|
"rationale": [0, 1]
|
||||||
},
|
},
|
||||||
"doorswitch": {
|
"doorswitch": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
|
"rationale": [0, 1]
|
||||||
},
|
},
|
||||||
"dryswitch": {
|
"dryswitch": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
|
"rationale": [0, 1]
|
||||||
},
|
},
|
||||||
"dry_step_switch": {
|
"dry_step_switch": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
|
"rationale": [0, 1]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Platform.BINARY_SENSOR: {
|
Platform.BINARY_SENSOR: {
|
||||||
|
Reference in New Issue
Block a user