Add configuration entities to Tuya Vacuum (sd) (#59936)
This commit is contained in:
parent
4c3163196e
commit
4555f52e50
3 changed files with 29 additions and 0 deletions
|
@ -271,6 +271,7 @@ class DPCode(str, Enum):
|
|||
SWITCH_BACKLIGHT = "switch_backlight" # Backlight switch
|
||||
SWITCH_CHARGE = "switch_charge"
|
||||
SWITCH_CONTROLLER = "switch_controller"
|
||||
SWITCH_DISTURB = "switch_disturb"
|
||||
SWITCH_HORIZONTAL = "switch_horizontal" # Horizontal swing flap switch
|
||||
SWITCH_LED = "switch_led" # Switch
|
||||
SWITCH_LED_1 = "switch_led_1"
|
||||
|
@ -304,6 +305,8 @@ class DPCode(str, Enum):
|
|||
VA_TEMPERATURE = "va_temperature"
|
||||
VOC_STATE = "voc_state"
|
||||
VOC_VALUE = "voc_value"
|
||||
VOICE_SWITCH = "voice_switch"
|
||||
VOLUME_SET = "volume_set"
|
||||
WARM = "warm" # Heat preservation
|
||||
WARM_TIME = "warm_time" # Heat preservation time
|
||||
WATER_RESET = "water_reset" # Resetting of water usage days
|
||||
|
|
|
@ -103,6 +103,16 @@ NUMBERS: dict[str, tuple[NumberEntityDescription, ...]] = {
|
|||
entity_category=ENTITY_CATEGORY_CONFIG,
|
||||
),
|
||||
),
|
||||
# Robot Vacuum
|
||||
# https://developer.tuya.com/en/docs/iot/fsd?id=K9gf487ck1tlo
|
||||
"sd": (
|
||||
NumberEntityDescription(
|
||||
key=DPCode.VOLUME_SET,
|
||||
name="Volume",
|
||||
icon="mdi:volume-high",
|
||||
entity_category=ENTITY_CATEGORY_CONFIG,
|
||||
),
|
||||
),
|
||||
# Siren Alarm
|
||||
# https://developer.tuya.com/en/docs/iot/categorysgbj?id=Kaiuz37tlpbnu
|
||||
"sgbj": (
|
||||
|
|
|
@ -290,6 +290,22 @@ SWITCHES: dict[str, tuple[SwitchEntityDescription, ...]] = {
|
|||
entity_category=ENTITY_CATEGORY_CONFIG,
|
||||
),
|
||||
),
|
||||
# Robot Vacuum
|
||||
# https://developer.tuya.com/en/docs/iot/fsd?id=K9gf487ck1tlo
|
||||
"sd": (
|
||||
SwitchEntityDescription(
|
||||
key=DPCode.SWITCH_DISTURB,
|
||||
name="Do Not Disturb",
|
||||
icon="mdi:minus-circle",
|
||||
entity_category=ENTITY_CATEGORY_CONFIG,
|
||||
),
|
||||
SwitchEntityDescription(
|
||||
key=DPCode.VOICE_SWITCH,
|
||||
name="Voice",
|
||||
icon="mdi:account-voice",
|
||||
entity_category=ENTITY_CATEGORY_CONFIG,
|
||||
),
|
||||
),
|
||||
# Siren Alarm
|
||||
# https://developer.tuya.com/en/docs/iot/categorysgbj?id=Kaiuz37tlpbnu
|
||||
"sgbj": (
|
||||
|
|
Loading…
Add table
Reference in a new issue