mirror of
https://github.com/sususweet/midea-meiju-codec.git
synced 2025-11-12 07:51:54 +00:00
feat: fix support for T0xE2
This commit is contained in:
@@ -10,12 +10,23 @@ DEVICE_MAPPING = {
|
|||||||
"queries": [{}],
|
"queries": [{}],
|
||||||
"centralized": [],
|
"centralized": [],
|
||||||
"entities": {
|
"entities": {
|
||||||
|
Platform.NUMBER: {
|
||||||
|
"water_quality": {
|
||||||
|
"min": 0,
|
||||||
|
"max": 3,
|
||||||
|
"step": 1
|
||||||
|
},
|
||||||
|
"cur_temperature": {
|
||||||
|
"device_class": SensorDeviceClass.TEMPERATURE,
|
||||||
|
"state_class": SensorStateClass.MEASUREMENT,
|
||||||
|
}
|
||||||
|
},
|
||||||
Platform.CLIMATE: {
|
Platform.CLIMATE: {
|
||||||
"water_heater": {
|
"water_heater": {
|
||||||
"power": "power",
|
"power": "power",
|
||||||
"hvac_modes": {
|
"hvac_modes": {
|
||||||
"off": {"power": "off"},
|
"off": {"power": "off"},
|
||||||
"on": {"power": "on"},
|
"heat": {"power": "on"},
|
||||||
},
|
},
|
||||||
"target_temperature": "temperature",
|
"target_temperature": "temperature",
|
||||||
"current_temperature": "cur_temperature",
|
"current_temperature": "cur_temperature",
|
||||||
@@ -52,14 +63,6 @@ DEVICE_MAPPING = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Platform.SELECT: {
|
Platform.SELECT: {
|
||||||
"water_quality": {
|
|
||||||
"options": {
|
|
||||||
"0": {"water_quality": 0},
|
|
||||||
"1": {"water_quality": 1},
|
|
||||||
"2": {"water_quality": 2},
|
|
||||||
"3": {"water_quality": 3}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"func_select": {
|
"func_select": {
|
||||||
"options": {
|
"options": {
|
||||||
"low": {"func_select": "low"},
|
"low": {"func_select": "low"},
|
||||||
|
|||||||
@@ -553,9 +553,6 @@
|
|||||||
"type_select": {
|
"type_select": {
|
||||||
"name": "Type Select"
|
"name": "Type Select"
|
||||||
},
|
},
|
||||||
"water_quality": {
|
|
||||||
"name": "Water Quality"
|
|
||||||
},
|
|
||||||
"work_status": {
|
"work_status": {
|
||||||
"name": "Work Status"
|
"name": "Work Status"
|
||||||
},
|
},
|
||||||
@@ -1510,6 +1507,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"number": {
|
"number": {
|
||||||
|
"water_quality": {
|
||||||
|
"name": "Water Quality"
|
||||||
|
},
|
||||||
"b6_lightness": {
|
"b6_lightness": {
|
||||||
"name": "Smoke Machine Lightness"
|
"name": "Smoke Machine Lightness"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -560,9 +560,6 @@
|
|||||||
"type_select": {
|
"type_select": {
|
||||||
"name": "类型选择"
|
"name": "类型选择"
|
||||||
},
|
},
|
||||||
"water_quality": {
|
|
||||||
"name": "水质"
|
|
||||||
},
|
|
||||||
"work_status": {
|
"work_status": {
|
||||||
"name": "工作状态"
|
"name": "工作状态"
|
||||||
},
|
},
|
||||||
@@ -1514,6 +1511,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"number": {
|
"number": {
|
||||||
|
"water_quality": {
|
||||||
|
"name": "水质"
|
||||||
|
},
|
||||||
"b6_lightness": {
|
"b6_lightness": {
|
||||||
"name": "烟机照明"
|
"name": "烟机照明"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user