mirror of
https://github.com/sususweet/midea-meiju-codec.git
synced 2025-10-15 02:38:29 +00:00
feat: update device mapping for T0xB6. Fix #26.
This commit is contained in:
34
custom_components/midea_auto_cloud/device_mapping/T0xB6.py
Normal file
34
custom_components/midea_auto_cloud/device_mapping/T0xB6.py
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
from homeassistant.const import Platform
|
||||||
|
from homeassistant.components.switch import SwitchDeviceClass
|
||||||
|
|
||||||
|
DEVICE_MAPPING = {
|
||||||
|
"default": {
|
||||||
|
"rationale": ["off", "on"],
|
||||||
|
"queries": [{}],
|
||||||
|
"centralized": [],
|
||||||
|
"entities": {
|
||||||
|
Platform.SWITCH: {
|
||||||
|
"power": {
|
||||||
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
|
},
|
||||||
|
"light": {
|
||||||
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
|
},
|
||||||
|
"wisdom_wind": {
|
||||||
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
Platform.SELECT: {
|
||||||
|
"wind_pressure": {
|
||||||
|
"options": {
|
||||||
|
"off": {"wind_pressure": "0"},
|
||||||
|
"low": {"wind_pressure": "1"},
|
||||||
|
"medium": {"wind_pressure": "2"},
|
||||||
|
"high": {"wind_pressure": "3"},
|
||||||
|
"extreme": {"wind_pressure": "4"},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -620,6 +620,9 @@
|
|||||||
},
|
},
|
||||||
"power_off_time": {
|
"power_off_time": {
|
||||||
"name": "Power Off Time"
|
"name": "Power Off Time"
|
||||||
|
},
|
||||||
|
"wind_pressure": {
|
||||||
|
"name": "Wind Pressure"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sensor": {
|
"sensor": {
|
||||||
|
@@ -620,6 +620,9 @@
|
|||||||
},
|
},
|
||||||
"power_off_time": {
|
"power_off_time": {
|
||||||
"name": "关机时间"
|
"name": "关机时间"
|
||||||
|
},
|
||||||
|
"wind_pressure": {
|
||||||
|
"name": "风压"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"sensor": {
|
"sensor": {
|
||||||
|
Reference in New Issue
Block a user