mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Complete Ceiling Light (xdd) device support for Tuya (#58095)
This commit is contained in:
parent
ea7252e377
commit
5fc2897c08
@ -150,6 +150,7 @@ class DPCode(str, Enum):
|
|||||||
CUR_POWER = "cur_power" # Actual power
|
CUR_POWER = "cur_power" # Actual power
|
||||||
CUR_VOLTAGE = "cur_voltage" # Actual voltage
|
CUR_VOLTAGE = "cur_voltage" # Actual voltage
|
||||||
DEHUMIDITY_SET_VALUE = "dehumidify_set_value"
|
DEHUMIDITY_SET_VALUE = "dehumidify_set_value"
|
||||||
|
DO_NOT_DISTURB = "do_not_disturb"
|
||||||
DOORCONTACT_STATE = "doorcontact_state" # Status of door window sensor
|
DOORCONTACT_STATE = "doorcontact_state" # Status of door window sensor
|
||||||
DOORCONTACT_STATE_2 = "doorcontact_state_3"
|
DOORCONTACT_STATE_2 = "doorcontact_state_3"
|
||||||
DOORCONTACT_STATE_3 = "doorcontact_state_3"
|
DOORCONTACT_STATE_3 = "doorcontact_state_3"
|
||||||
@ -208,6 +209,7 @@ class DPCode(str, Enum):
|
|||||||
SWITCH_LED = "switch_led" # Switch
|
SWITCH_LED = "switch_led" # Switch
|
||||||
SWITCH_LED_1 = "switch_led_1"
|
SWITCH_LED_1 = "switch_led_1"
|
||||||
SWITCH_LED_2 = "switch_led_2"
|
SWITCH_LED_2 = "switch_led_2"
|
||||||
|
SWITCH_NIGHT_LIGHT = "switch_night_light"
|
||||||
SWITCH_SPRAY = "switch_spray" # Spraying switch
|
SWITCH_SPRAY = "switch_spray" # Spraying switch
|
||||||
SWITCH_USB1 = "switch_usb1" # USB 1
|
SWITCH_USB1 = "switch_usb1" # USB 1
|
||||||
SWITCH_USB2 = "switch_usb2" # USB 2
|
SWITCH_USB2 = "switch_usb2" # USB 2
|
||||||
|
@ -130,7 +130,7 @@ LIGHTS: dict[str, tuple[TuyaLightEntityDescription, ...]] = {
|
|||||||
color_data=DPCode.COLOUR_DATA,
|
color_data=DPCode.COLOUR_DATA,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
# Ceiling Light
|
# Ceiling Light
|
||||||
# https://developer.tuya.com/en/docs/iot/ceiling-light?id=Kaiuz03xxfc4r
|
# https://developer.tuya.com/en/docs/iot/ceiling-light?id=Kaiuz03xxfc4r
|
||||||
"xdd": (
|
"xdd": (
|
||||||
TuyaLightEntityDescription(
|
TuyaLightEntityDescription(
|
||||||
@ -140,6 +140,10 @@ LIGHTS: dict[str, tuple[TuyaLightEntityDescription, ...]] = {
|
|||||||
color_temp=DPCode.TEMP_VALUE,
|
color_temp=DPCode.TEMP_VALUE,
|
||||||
color_data=DPCode.COLOUR_DATA,
|
color_data=DPCode.COLOUR_DATA,
|
||||||
),
|
),
|
||||||
|
TuyaLightEntityDescription(
|
||||||
|
key=DPCode.SWITCH_NIGHT_LIGHT,
|
||||||
|
name="Night Light",
|
||||||
|
),
|
||||||
),
|
),
|
||||||
# Remote Control
|
# Remote Control
|
||||||
# https://developer.tuya.com/en/docs/iot/ykq?id=Kaof8ljn81aov
|
# https://developer.tuya.com/en/docs/iot/ykq?id=Kaof8ljn81aov
|
||||||
|
@ -256,6 +256,16 @@ SWITCHES: dict[str, tuple[SwitchEntityDescription, ...]] = {
|
|||||||
entity_category=ENTITY_CATEGORY_CONFIG,
|
entity_category=ENTITY_CATEGORY_CONFIG,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
# Ceiling Light
|
||||||
|
# https://developer.tuya.com/en/docs/iot/ceiling-light?id=Kaiuz03xxfc4r
|
||||||
|
"xdd": (
|
||||||
|
SwitchEntityDescription(
|
||||||
|
key=DPCode.DO_NOT_DISTURB,
|
||||||
|
name="Do not disturb",
|
||||||
|
icon="mdi:minus-circle-outline",
|
||||||
|
entity_category=ENTITY_CATEGORY_CONFIG,
|
||||||
|
),
|
||||||
|
),
|
||||||
# Diffuser
|
# Diffuser
|
||||||
# https://developer.tuya.com/en/docs/iot/categoryxxj?id=Kaiuz1f9mo6bl
|
# https://developer.tuya.com/en/docs/iot/categoryxxj?id=Kaiuz1f9mo6bl
|
||||||
"xxj": (
|
"xxj": (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user