From e25b86f148d6a9c2b4c9e5faec248edb029eb0ea Mon Sep 17 00:00:00 2001 From: Naoki Sawada Date: Fri, 4 Oct 2024 21:22:16 +0900 Subject: [PATCH] Add Bathroom dryer (#198) --- custom_components/echonetlite/const.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/custom_components/echonetlite/const.py b/custom_components/echonetlite/const.py index 6ed92c0..bf7d82f 100644 --- a/custom_components/echonetlite/const.py +++ b/custom_components/echonetlite/const.py @@ -15,7 +15,7 @@ UnitOfVolume, UnitOfVolumeFlowRate, ) -from homeassistant.components.sensor import ( +from homeassistant.components.sensor.const import ( ATTR_STATE_CLASS, SensorStateClass, SensorDeviceClass, @@ -555,6 +555,19 @@ CONF_UNIT_OF_MEASUREMENT: UnitOfVolume.LITERS, }, }, + 0x73: { # Bathroom dryer + 0xBA: { + CONF_TYPE: SensorDeviceClass.HUMIDITY, + CONF_STATE_CLASS: SensorStateClass.MEASUREMENT, + }, + 0xBB: { + CONF_TYPE: SensorDeviceClass.TEMPERATURE, + CONF_STATE_CLASS: SensorStateClass.MEASUREMENT, + }, + 0xE0: { + CONF_ICON: "mdi:motion-sensor", + }, + }, 0x79: { # Home solar power generation 0xA0: { CONF_STATE_CLASS: SensorStateClass.MEASUREMENT,