diff --git a/README.md b/README.md index 1b191b3..a51f4c3 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/README_hans.md b/README_hans.md index 81969ec..41482af 100644 --- a/README_hans.md +++ b/README_hans.md @@ -23,6 +23,7 @@ - T0x21 中央空调网关 - T0x26 浴霸 - T0x3D 电热水瓶 +- T0x9B 蒸烤箱 - T0x9C 集成灶 - T0xA1 除湿机 - T0xAC 空调 diff --git a/custom_components/midea_auto_cloud/device_mapping/T0x9B.py b/custom_components/midea_auto_cloud/device_mapping/T0x9B.py new file mode 100644 index 0000000..a95cd2d --- /dev/null +++ b/custom_components/midea_auto_cloud/device_mapping/T0x9B.py @@ -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, + } + } + } + } +}