diff --git a/homeassistant/components/tuya/const.py b/homeassistant/components/tuya/const.py index 75ccffce685..5033e5b2ab1 100644 --- a/homeassistant/components/tuya/const.py +++ b/homeassistant/components/tuya/const.py @@ -174,6 +174,7 @@ class DPCode(StrEnum): DECIBEL_SENSITIVITY = "decibel_sensitivity" DECIBEL_SWITCH = "decibel_switch" DEHUMIDITY_SET_VALUE = "dehumidify_set_value" + DISINFECTION = "disinfection" DO_NOT_DISTURB = "do_not_disturb" DOORCONTACT_STATE = "doorcontact_state" # Status of door window sensor DOORCONTACT_STATE_2 = "doorcontact_state_2" @@ -354,6 +355,7 @@ class DPCode(StrEnum): VOLUME_SET = "volume_set" WARM = "warm" # Heat preservation WARM_TIME = "warm_time" # Heat preservation time + WATER = "water" WATER_RESET = "water_reset" # Resetting of water usage days WATER_SET = "water_set" # Water level WATERSENSOR_STATE = "watersensor_state" diff --git a/homeassistant/components/tuya/switch.py b/homeassistant/components/tuya/switch.py index 329b170c53f..3cdd4283f05 100644 --- a/homeassistant/components/tuya/switch.py +++ b/homeassistant/components/tuya/switch.py @@ -38,6 +38,20 @@ SWITCHES: dict[str, tuple[SwitchEntityDescription, ...]] = { entity_category=EntityCategory.CONFIG, ), ), + # EasyBaby + # Undocumented, might have a wider use + "cn": ( + SwitchEntityDescription( + key=DPCode.DISINFECTION, + name="Disinfection", + icon="mdi:bacteria", + ), + SwitchEntityDescription( + key=DPCode.WATER, + name="Water", + icon="mdi:water", + ), + ), # Smart Pet Feeder # https://developer.tuya.com/en/docs/iot/categorycwwsq?id=Kaiuz2b6vydld "cwwsq": (