mirror of
https://github.com/sususweet/midea-meiju-codec.git
synced 2025-11-12 16:01:54 +00:00
feat: add device support for T0x21 switch.
This commit is contained in:
@@ -3,7 +3,24 @@ from homeassistant.components.sensor import SensorStateClass, SensorDeviceClass
|
||||
from homeassistant.components.switch import SwitchDeviceClass
|
||||
|
||||
DEVICE_MAPPING = {
|
||||
"default": {
|
||||
"00000000": {
|
||||
"rationale": ["0", "1"],
|
||||
"queries": [{}],
|
||||
"centralized": [],
|
||||
"entities": {
|
||||
Platform.SWITCH: {
|
||||
"endpoint_1_OnOff": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"rationale": ['0', '1']
|
||||
},
|
||||
"endpoint_2_OnOff": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
"rationale": ['0', '1']
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
"b17-0000": {
|
||||
"rationale": ["off", "on"],
|
||||
"queries": [{}],
|
||||
"centralized": ["run_mode", "fan_speed", "cooling_temp", "heating_temp", "extflag"],
|
||||
|
||||
Reference in New Issue
Block a user