feat: update device mapping for T0xE7. Fix #89

This commit is contained in:
sususweet
2026-01-07 21:04:24 +08:00
parent 77b3af3168
commit 39932a2d2d
3 changed files with 52 additions and 0 deletions

View File

@@ -52,6 +52,7 @@ Get devices from MSmartHome/Midea Meiju homes through the network and control th
- T0xE2 Electric Water Heater
- T0xE3 Constant Temperature Gas Water Heater
- T0xE6 Wall hanging furnace
- T0xE7 Electric Oven
- T0xEA Rice Cooker
- T0xED Water Softener
- T0xFA Electric Fan

View File

@@ -52,6 +52,7 @@
- T0xE2 电热水器
- T0xE3 恒温式燃气热水器
- T0xE6 壁挂炉
- T0xE7 电磁炉
- T0xEA 电饭锅
- T0xED 软水机
- T0xFA 电风扇

View 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,
},
}
}
}
}