mirror of
https://github.com/sususweet/midea-meiju-codec.git
synced 2026-02-27 14:16:35 +00:00
feat: update device mapping for T0xE7. Fix #89
This commit is contained in:
@@ -52,6 +52,7 @@ Get devices from MSmartHome/Midea Meiju homes through the network and control th
|
|||||||
- T0xE2 Electric Water Heater
|
- T0xE2 Electric Water Heater
|
||||||
- T0xE3 Constant Temperature Gas Water Heater
|
- T0xE3 Constant Temperature Gas Water Heater
|
||||||
- T0xE6 Wall hanging furnace
|
- T0xE6 Wall hanging furnace
|
||||||
|
- T0xE7 Electric Oven
|
||||||
- T0xEA Rice Cooker
|
- T0xEA Rice Cooker
|
||||||
- T0xED Water Softener
|
- T0xED Water Softener
|
||||||
- T0xFA Electric Fan
|
- T0xFA Electric Fan
|
||||||
|
|||||||
@@ -52,6 +52,7 @@
|
|||||||
- T0xE2 电热水器
|
- T0xE2 电热水器
|
||||||
- T0xE3 恒温式燃气热水器
|
- T0xE3 恒温式燃气热水器
|
||||||
- T0xE6 壁挂炉
|
- T0xE6 壁挂炉
|
||||||
|
- T0xE7 电磁炉
|
||||||
- T0xEA 电饭锅
|
- T0xEA 电饭锅
|
||||||
- T0xED 软水机
|
- T0xED 软水机
|
||||||
- T0xFA 电风扇
|
- T0xFA 电风扇
|
||||||
|
|||||||
50
custom_components/midea_auto_cloud/device_mapping/T0xE7.py
Normal file
50
custom_components/midea_auto_cloud/device_mapping/T0xE7.py
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
from homeassistant.const import Platform, UnitOfTemperature, PRECISION_HALVES
|
||||||
|
from homeassistant.components.sensor import SensorStateClass, SensorDeviceClass
|
||||||
|
|
||||||
|
DEVICE_MAPPING = {
|
||||||
|
"default": {
|
||||||
|
"rationale": ["off", "on"],
|
||||||
|
"queries": [{}],
|
||||||
|
"centralized": [],
|
||||||
|
"entities": {
|
||||||
|
Platform.NUMBER: {
|
||||||
|
"temperature": {
|
||||||
|
"min": 25,
|
||||||
|
"max": 100,
|
||||||
|
"step": 1,
|
||||||
|
},
|
||||||
|
"fire_level": {
|
||||||
|
"min": 120,
|
||||||
|
"max": 2200,
|
||||||
|
"step": 1,
|
||||||
|
},
|
||||||
|
"set_work_time": {
|
||||||
|
"min": 1,
|
||||||
|
"max": 180,
|
||||||
|
"step": 1,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Platform.SELECT: {
|
||||||
|
"work_status": {
|
||||||
|
"options": {
|
||||||
|
"standby": {"work_status": "0"},
|
||||||
|
"work": {"work_status": "1"},
|
||||||
|
"order": {"work_status": "2"},
|
||||||
|
"keep_warm": {"work_status": "3"},
|
||||||
|
"pause": {"work_status": "4"},
|
||||||
|
"power_off": {"work_status": "5"},
|
||||||
|
"spare_time": {"work_status": "6"},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Platform.SENSOR: {
|
||||||
|
"work_mode": {
|
||||||
|
"device_class": SensorDeviceClass.ENUM,
|
||||||
|
},
|
||||||
|
"work_stage": {
|
||||||
|
"device_class": SensorDeviceClass.ENUM,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user