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