mirror of
https://github.com/sususweet/midea-meiju-codec.git
synced 2025-10-17 03:37:44 +00:00
feat: add device support for T0x13.
This commit is contained in:
68
custom_components/midea_auto_cloud/device_mapping/T0x13.py
Normal file
68
custom_components/midea_auto_cloud/device_mapping/T0x13.py
Normal file
@@ -0,0 +1,68 @@
|
||||
from homeassistant.const import Platform
|
||||
|
||||
DEVICE_MAPPING = {
|
||||
"default": {
|
||||
"rationale": ["off", "on"],
|
||||
"queries": [{}],
|
||||
"centralized": [],
|
||||
"entities": {
|
||||
Platform.LIGHT: {
|
||||
"light": {
|
||||
"power": "power",
|
||||
"brightness": {"brightness": [1, 100]},
|
||||
"color_temp": {"color_temperature": [3000, 5700]}, # 添加色温配置
|
||||
"preset_modes": {
|
||||
"night": {"scene_light": "night"},
|
||||
"read": {"scene_light": "read"},
|
||||
"mild": {"scene_light": "mild"},
|
||||
"life": {"scene_light": "life"},
|
||||
"film": {"scene_light": "film"},
|
||||
"manual": {"scene_light": "manual"},
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"M0200015": {
|
||||
"rationale": ["off", "on"],
|
||||
"queries": [{}],
|
||||
"centralized": [],
|
||||
"entities": {
|
||||
Platform.LIGHT: {
|
||||
"light": {
|
||||
"power": "led_power",
|
||||
"brightness": {"brightness": [1, 100]},
|
||||
"color_temp": {"color_temperature": [2700, 6500]},
|
||||
"preset_modes": {
|
||||
"work": {"led_scene_light": "work"},
|
||||
"eating": {"led_scene_light": "eating"},
|
||||
"film": {"led_scene_light": "film"},
|
||||
"night": {"led_scene_light": "night"},
|
||||
"ledmanual": {"led_scene_light": "ledmanual"},
|
||||
}
|
||||
}
|
||||
},
|
||||
Platform.FAN: {
|
||||
"fan": {
|
||||
"power": "fan_power",
|
||||
"fan_speed": [
|
||||
{"fan_speed": "1"},
|
||||
{"fan_speed": "2"},
|
||||
{"fan_speed": "3"},
|
||||
{"fan_speed": "4"},
|
||||
{"fan_speed": "5"},
|
||||
{"fan_speed": "6"},
|
||||
],
|
||||
"preset_modes": {
|
||||
"breathing_wind": {"fan_scene": "breathing_wind"},
|
||||
"const_temperature": {"fan_scene": "const_temperature"},
|
||||
"fanmanual": {"fan_scene": "fanmanual"},
|
||||
"baby_wind": {"fan_scene": "baby_wind"},
|
||||
"sleep_wind": {"fan_scene": "sleep_wind"},
|
||||
"forest_wind": {"fan_scene": "forest_wind"}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user