mirror of
https://github.com/sususweet/midea-meiju-codec.git
synced 2025-10-15 18:58: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"},
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user