diff --git a/homeassistant/components/tuya/const.py b/homeassistant/components/tuya/const.py index 99f1757c4af..364febe5703 100644 --- a/homeassistant/components/tuya/const.py +++ b/homeassistant/components/tuya/const.py @@ -271,6 +271,7 @@ class DPCode(str, Enum): WATERSENSOR_STATE = "watersensor_state" WET = "wet" # Humidification WORK_MODE = "work_mode" # Working mode + WORK_POWER = "work_power" @dataclass diff --git a/homeassistant/components/tuya/sensor.py b/homeassistant/components/tuya/sensor.py index 19bb2ff6a90..2e0b1562ff1 100644 --- a/homeassistant/components/tuya/sensor.py +++ b/homeassistant/components/tuya/sensor.py @@ -212,6 +212,16 @@ SENSORS: dict[str, tuple[SensorEntityDescription, ...]] = { # PIR Detector # https://developer.tuya.com/en/docs/iot/categorypir?id=Kaiuz3ss11b80 "pir": BATTERY_SENSORS, + # Heater + # https://developer.tuya.com/en/docs/iot/categoryqn?id=Kaiuz18kih0sm + "qn": ( + SensorEntityDescription( + key=DPCode.WORK_POWER, + name="Power", + device_class=DEVICE_CLASS_POWER, + state_class=STATE_CLASS_MEASUREMENT, + ), + ), # Gas Detector # https://developer.tuya.com/en/docs/iot/categoryrqbj?id=Kaiuz3d162ubw "rqbj": ( diff --git a/homeassistant/components/tuya/switch.py b/homeassistant/components/tuya/switch.py index 2201ce30539..8f5b2715731 100644 --- a/homeassistant/components/tuya/switch.py +++ b/homeassistant/components/tuya/switch.py @@ -247,6 +247,22 @@ SWITCHES: dict[str, tuple[SwitchEntityDescription, ...]] = { device_class=DEVICE_CLASS_OUTLET, ), ), + # Heater + # https://developer.tuya.com/en/docs/iot/categoryqn?id=Kaiuz18kih0sm + "qn": ( + SwitchEntityDescription( + key=DPCode.ANION, + name="Ionizer", + icon="mdi:minus-circle-outline", + entity_category=ENTITY_CATEGORY_CONFIG, + ), + SwitchEntityDescription( + key=DPCode.LOCK, + name="Child Lock", + icon="mdi:account-lock", + entity_category=ENTITY_CATEGORY_CONFIG, + ), + ), # Siren Alarm # https://developer.tuya.com/en/docs/iot/categorysgbj?id=Kaiuz37tlpbnu "sgbj": (