diff --git a/homeassistant/components/tuya/light.py b/homeassistant/components/tuya/light.py index 75442159dea..581cd85647b 100644 --- a/homeassistant/components/tuya/light.py +++ b/homeassistant/components/tuya/light.py @@ -177,6 +177,13 @@ LIGHTS: dict[str, tuple[TuyaLightEntityDescription, ...]] = { # Dimmer # https://developer.tuya.com/en/docs/iot/tgq?id=Kaof8ke9il4k4 "tgq": ( + TuyaLightEntityDescription( + key=DPCode.SWITCH_LED, + name="Light", + brightness=(DPCode.BRIGHT_VALUE_V2, DPCode.BRIGHT_VALUE), + brightness_max=DPCode.BRIGHTNESS_MAX_1, + brightness_min=DPCode.BRIGHTNESS_MIN_1, + ), TuyaLightEntityDescription( key=DPCode.SWITCH_LED_1, name="Light", diff --git a/homeassistant/components/tuya/select.py b/homeassistant/components/tuya/select.py index 6df5b4e84dd..b4da7b8dfae 100644 --- a/homeassistant/components/tuya/select.py +++ b/homeassistant/components/tuya/select.py @@ -177,6 +177,22 @@ SELECTS: dict[str, tuple[SelectEntityDescription, ...]] = { entity_category=ENTITY_CATEGORY_CONFIG, ), ), + # Dimmer + # https://developer.tuya.com/en/docs/iot/tgq?id=Kaof8ke9il4k4 + "tgq": ( + SelectEntityDescription( + key=DPCode.LED_TYPE_1, + name="Light Source Type", + device_class=DEVICE_CLASS_TUYA_LED_TYPE, + entity_category=ENTITY_CATEGORY_CONFIG, + ), + SelectEntityDescription( + key=DPCode.LED_TYPE_2, + name="Light 2 Source Type", + device_class=DEVICE_CLASS_TUYA_LED_TYPE, + entity_category=ENTITY_CATEGORY_CONFIG, + ), + ), }