diff --git a/homeassistant/components/tuya/const.py b/homeassistant/components/tuya/const.py index 3b0d22e8cf7..55af95f0d34 100644 --- a/homeassistant/components/tuya/const.py +++ b/homeassistant/components/tuya/const.py @@ -258,6 +258,7 @@ class DPCode(StrEnum): PRESENCE_STATE = "presence_state" PRESSURE_STATE = "pressure_state" PRESSURE_VALUE = "pressure_value" + PUMP = "pump" PUMP_RESET = "pump_reset" # Water pump reset OXYGEN = "oxygen" # Oxygen bar RECORD_MODE = "record_mode" diff --git a/homeassistant/components/tuya/light.py b/homeassistant/components/tuya/light.py index 3533dabf92a..0c07eb05aac 100644 --- a/homeassistant/components/tuya/light.py +++ b/homeassistant/components/tuya/light.py @@ -257,6 +257,15 @@ LIGHTS: dict[str, tuple[TuyaLightEntityDescription, ...]] = { entity_category=EntityCategory.CONFIG, ), ), + # Smart Gardening system + # https://developer.tuya.com/en/docs/iot/categorysz?id=Kaiuz4e6h7up0 + "sz": ( + TuyaLightEntityDescription( + key=DPCode.LIGHT, + brightness=DPCode.BRIGHT_VALUE, + translation_key="light", + ), + ), # Dimmer Switch # https://developer.tuya.com/en/docs/iot/categorytgkg?id=Kaiuz0ktx7m0o "tgkg": ( diff --git a/homeassistant/components/tuya/sensor.py b/homeassistant/components/tuya/sensor.py index 5b6a4ed053e..1ab3ea700d7 100644 --- a/homeassistant/components/tuya/sensor.py +++ b/homeassistant/components/tuya/sensor.py @@ -941,6 +941,22 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = { state_class=SensorStateClass.MEASUREMENT, ), ), + # Smart Gardening system + # https://developer.tuya.com/en/docs/iot/categorysz?id=Kaiuz4e6h7up0 + "sz": ( + TuyaSensorEntityDescription( + key=DPCode.TEMP_CURRENT, + translation_key="temperature", + device_class=SensorDeviceClass.TEMPERATURE, + state_class=SensorStateClass.MEASUREMENT, + ), + TuyaSensorEntityDescription( + key=DPCode.HUMIDITY_CURRENT, + translation_key="humidity", + device_class=SensorDeviceClass.HUMIDITY, + state_class=SensorStateClass.MEASUREMENT, + ), + ), # Curtain # https://developer.tuya.com/en/docs/iot/s?id=K9gf48qy7wkre "cl": ( diff --git a/homeassistant/components/tuya/strings.json b/homeassistant/components/tuya/strings.json index 46530a1d938..6b699c0ffc0 100644 --- a/homeassistant/components/tuya/strings.json +++ b/homeassistant/components/tuya/strings.json @@ -641,6 +641,9 @@ "filter_reset": { "name": "Filter reset" }, + "pump": { + "name": "Pump" + }, "water_pump_reset": { "name": "Water pump reset" }, diff --git a/homeassistant/components/tuya/switch.py b/homeassistant/components/tuya/switch.py index f84e63aba37..8af9a00ab45 100644 --- a/homeassistant/components/tuya/switch.py +++ b/homeassistant/components/tuya/switch.py @@ -509,6 +509,18 @@ SWITCHES: dict[str, tuple[SwitchEntityDescription, ...]] = { entity_category=EntityCategory.CONFIG, ), ), + # Smart Gardening system + # https://developer.tuya.com/en/docs/iot/categorysz?id=Kaiuz4e6h7up0 + "sz": ( + SwitchEntityDescription( + key=DPCode.SWITCH, + translation_key="power", + ), + SwitchEntityDescription( + key=DPCode.PUMP, + translation_key="pump", + ), + ), # Fingerbot "szjqr": ( SwitchEntityDescription(