mirror of
https://github.com/sususweet/midea-meiju-codec.git
synced 2025-12-17 09:55:51 +00:00
feat: add support for Integrated Oven. Fixed #55.
This commit is contained in:
@@ -8,7 +8,7 @@ DEVICE_MAPPING = {
|
|||||||
"default": {
|
"default": {
|
||||||
"rationale": ["off", "on"],
|
"rationale": ["off", "on"],
|
||||||
"queries": [{}],
|
"queries": [{}],
|
||||||
"centralized": ["b6_light"],
|
"centralized": [],
|
||||||
"entities": {
|
"entities": {
|
||||||
Platform.NUMBER: {
|
Platform.NUMBER: {
|
||||||
"b6_lightness": {
|
"b6_lightness": {
|
||||||
@@ -18,11 +18,26 @@ DEVICE_MAPPING = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
Platform.SWITCH: {
|
Platform.SWITCH: {
|
||||||
|
"total_power": {
|
||||||
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
|
"translation_key": "power"
|
||||||
|
},
|
||||||
|
"total_lock": {
|
||||||
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
|
"translation_key": "lock"
|
||||||
|
},
|
||||||
"b6_light": {
|
"b6_light": {
|
||||||
"device_class": SwitchDeviceClass.SWITCH,
|
"device_class": SwitchDeviceClass.SWITCH,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Platform.SELECT: {
|
Platform.SELECT: {
|
||||||
|
"b3_function_control":{
|
||||||
|
"options": {
|
||||||
|
"关闭": {"b3_work_cabinet_control": 1, "b3_function_control": 1},
|
||||||
|
"消毒": {"b3_work_cabinet_control": 1, "b3_function_control": 2, "b3_work_destination_time": 60},
|
||||||
|
"烘干": {"b3_work_cabinet_control": 1, "b3_function_control": 4, "b3_work_destination_time": 120},
|
||||||
|
}
|
||||||
|
},
|
||||||
"b6_gear": {
|
"b6_gear": {
|
||||||
"options": {
|
"options": {
|
||||||
"关": {"b6_gear": "0"},
|
"关": {"b6_gear": "0"},
|
||||||
@@ -75,10 +90,25 @@ DEVICE_MAPPING = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
Platform.SENSOR: {
|
Platform.SENSOR: {
|
||||||
|
"b3_upstair_status": {
|
||||||
|
"device_class": SensorDeviceClass.ENUM,
|
||||||
|
},
|
||||||
"b6_wind_pressure": {
|
"b6_wind_pressure": {
|
||||||
"device_class": SensorDeviceClass.PRESSURE,
|
"device_class": SensorDeviceClass.PRESSURE,
|
||||||
"unit_of_measurement": UnitOfPressure.PA,
|
"unit_of_measurement": UnitOfPressure.PA,
|
||||||
"state_class": SensorStateClass.MEASUREMENT
|
"state_class": SensorStateClass.MEASUREMENT
|
||||||
|
},
|
||||||
|
"b7_left_status": {
|
||||||
|
"device_class": SensorDeviceClass.ENUM,
|
||||||
|
},
|
||||||
|
"b7_left_gear": {
|
||||||
|
"device_class": SensorDeviceClass.ENUM,
|
||||||
|
},
|
||||||
|
"b7_right_status": {
|
||||||
|
"device_class": SensorDeviceClass.ENUM,
|
||||||
|
},
|
||||||
|
"b7_right_gear": {
|
||||||
|
"device_class": SensorDeviceClass.ENUM,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -371,6 +371,9 @@
|
|||||||
"humidity": {
|
"humidity": {
|
||||||
"name": "Humidity"
|
"name": "Humidity"
|
||||||
},
|
},
|
||||||
|
"b3_function_control": {
|
||||||
|
"name": "Disinfection Cabinet Control"
|
||||||
|
},
|
||||||
"b6_power": {
|
"b6_power": {
|
||||||
"name": "Smoke Machine Power"
|
"name": "Smoke Machine Power"
|
||||||
},
|
},
|
||||||
@@ -694,6 +697,21 @@
|
|||||||
"auto_min_set_temp": {
|
"auto_min_set_temp": {
|
||||||
"name": "Auto Min Set Temp"
|
"name": "Auto Min Set Temp"
|
||||||
},
|
},
|
||||||
|
"b3_upstair_status": {
|
||||||
|
"name": "Disinfection Cabinet Status"
|
||||||
|
},
|
||||||
|
"b7_left_status": {
|
||||||
|
"name": "Left Stove Status"
|
||||||
|
},
|
||||||
|
"b7_left_gear": {
|
||||||
|
"name": "Left Stove Gear"
|
||||||
|
},
|
||||||
|
"b7_right_status": {
|
||||||
|
"name": "Right Stove Status"
|
||||||
|
},
|
||||||
|
"b7_right_gear": {
|
||||||
|
"name": "Left Stove Gear"
|
||||||
|
},
|
||||||
"bath_out_volume": {
|
"bath_out_volume": {
|
||||||
"name": "Bath Out Volume"
|
"name": "Bath Out Volume"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -375,6 +375,9 @@
|
|||||||
"humidity": {
|
"humidity": {
|
||||||
"name": "设定湿度"
|
"name": "设定湿度"
|
||||||
},
|
},
|
||||||
|
"b3_function_control": {
|
||||||
|
"name": "消毒柜控制"
|
||||||
|
},
|
||||||
"b6_power": {
|
"b6_power": {
|
||||||
"name": "烟机开关"
|
"name": "烟机开关"
|
||||||
},
|
},
|
||||||
@@ -698,6 +701,21 @@
|
|||||||
"auto_min_set_temp": {
|
"auto_min_set_temp": {
|
||||||
"name": "自动最小设定温度"
|
"name": "自动最小设定温度"
|
||||||
},
|
},
|
||||||
|
"b3_upstair_status": {
|
||||||
|
"name": "消毒柜状态"
|
||||||
|
},
|
||||||
|
"b7_left_status": {
|
||||||
|
"name": "左灶状态"
|
||||||
|
},
|
||||||
|
"b7_left_gear": {
|
||||||
|
"name": "左灶档位"
|
||||||
|
},
|
||||||
|
"b7_right_status": {
|
||||||
|
"name": "右灶状态"
|
||||||
|
},
|
||||||
|
"b7_right_gear": {
|
||||||
|
"name": "右灶档位"
|
||||||
|
},
|
||||||
"bath_out_volume": {
|
"bath_out_volume": {
|
||||||
"name": "浴缸出水量"
|
"name": "浴缸出水量"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user