feat: add support for T0x9B. Fixed #35.

This commit is contained in:
sususweet
2025-11-02 16:13:33 +08:00
parent f9a1f57d31
commit 329fbce3dd
3 changed files with 22 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ Get devices from MSmartHome/Midea Meiju homes through the network and control th
- T0x21 Central Air Conditioning Gateway
- T0x26 Bath Heater
- T0x3D Water Heater
- T0x9B Steam oven
- T0x9C Integrated Gas Stove
- T0xA1 Dehumidifier
- T0xAC Air Conditioner

View File

@@ -23,6 +23,7 @@
- T0x21 中央空调网关
- T0x26 浴霸
- T0x3D 电热水瓶
- T0x9B 蒸烤箱
- T0x9C 集成灶
- T0xA1 除湿机
- T0xAC 空调

View File

@@ -0,0 +1,20 @@
from homeassistant.const import Platform, UnitOfTemperature, UnitOfVolume, UnitOfTime, PERCENTAGE, PRECISION_HALVES, \
UnitOfEnergy, UnitOfPower, PRECISION_WHOLE, UnitOfPressure
from homeassistant.components.sensor import SensorStateClass, SensorDeviceClass
from homeassistant.components.binary_sensor import BinarySensorDeviceClass
from homeassistant.components.switch import SwitchDeviceClass
DEVICE_MAPPING = {
"default": {
"rationale": ["off", "on"],
"queries": [{}],
"centralized": [],
"entities": {
Platform.SENSOR: {
"work_status": {
"device_class": SensorDeviceClass.ENUM,
}
}
}
}
}