mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Complete Solar Light (tyndj) device support to Tuya (#58302)
This commit is contained in:
parent
438ca73aba
commit
6f0c1d2345
@ -269,6 +269,7 @@ class DPCode(str, Enum):
|
||||
SWITCH_LED_2 = "switch_led_2"
|
||||
SWITCH_LED_3 = "switch_led_3"
|
||||
SWITCH_NIGHT_LIGHT = "switch_night_light"
|
||||
SWITCH_SAVE_ENERGY = "switch_save_energy"
|
||||
SWITCH_SPRAY = "switch_spray" # Spraying switch
|
||||
SWITCH_USB1 = "switch_usb1" # USB 1
|
||||
SWITCH_USB2 = "switch_usb2" # USB 2
|
||||
|
@ -261,6 +261,9 @@ SENSORS: dict[str, tuple[SensorEntityDescription, ...]] = {
|
||||
state_class=STATE_CLASS_MEASUREMENT,
|
||||
),
|
||||
),
|
||||
# Solar Light
|
||||
# https://developer.tuya.com/en/docs/iot/tynd?id=Kaof8j02e1t98
|
||||
"tyndj": BATTERY_SENSORS,
|
||||
# Pressure Sensor
|
||||
# https://developer.tuya.com/en/docs/iot/categoryylcg?id=Kaiuz3kc2e4gm
|
||||
"ylcg": (
|
||||
|
@ -353,6 +353,16 @@ SWITCHES: dict[str, tuple[SwitchEntityDescription, ...]] = {
|
||||
entity_category=ENTITY_CATEGORY_CONFIG,
|
||||
),
|
||||
),
|
||||
# Solar Light
|
||||
# https://developer.tuya.com/en/docs/iot/tynd?id=Kaof8j02e1t98
|
||||
"tyndj": (
|
||||
SwitchEntityDescription(
|
||||
key=DPCode.SWITCH_SAVE_ENERGY,
|
||||
name="Energy Saving",
|
||||
icon="mdi:leaf",
|
||||
entity_category=ENTITY_CATEGORY_CONFIG,
|
||||
),
|
||||
),
|
||||
# Ceiling Light
|
||||
# https://developer.tuya.com/en/docs/iot/ceiling-light?id=Kaiuz03xxfc4r
|
||||
"xdd": (
|
||||
|
Loading…
x
Reference in New Issue
Block a user