mirror of
https://github.com/sususweet/midea-meiju-codec.git
synced 2025-12-27 14:57:11 +00:00
feat: add device mapping for T0x17 and T0xBC.
This commit is contained in:
44
custom_components/midea_auto_cloud/device_mapping/T0x17.py
Normal file
44
custom_components/midea_auto_cloud/device_mapping/T0x17.py
Normal file
@@ -0,0 +1,44 @@
|
||||
from homeassistant.components.switch import SwitchDeviceClass
|
||||
from homeassistant.const import Platform, UnitOfTime, UnitOfArea, UnitOfTemperature
|
||||
from homeassistant.components.sensor import SensorStateClass, SensorDeviceClass
|
||||
from homeassistant.components.binary_sensor import BinarySensorDeviceClass
|
||||
|
||||
DEVICE_MAPPING = {
|
||||
"default": {
|
||||
"rationale": ["off", "on"],
|
||||
"queries": [{}],
|
||||
"centralized": [],
|
||||
"entities": {
|
||||
Platform.SELECT:{
|
||||
"updown": {
|
||||
"options": {
|
||||
"up": {"updown": "up"},
|
||||
"down": {"updown": "down"},
|
||||
"pause": {"updown": "pause"}
|
||||
},
|
||||
}
|
||||
},
|
||||
Platform.NUMBER: {
|
||||
"light_brightness": {
|
||||
"min": 20,
|
||||
"max": 100,
|
||||
"step": 1
|
||||
},
|
||||
"custom_height": {
|
||||
"min": 0,
|
||||
"max": 100,
|
||||
"step": 10,
|
||||
"translation_key": "laundry_height",
|
||||
}
|
||||
},
|
||||
Platform.SWITCH: {
|
||||
"light": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
},
|
||||
"laundry": {
|
||||
"device_class": SwitchDeviceClass.SWITCH,
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user