Add configuration entities to Tuya Vacuum (sd) (#59936)

This commit is contained in:
cvroque 2021-11-23 22:15:49 -03:00 committed by GitHub
parent 4c3163196e
commit 4555f52e50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 0 deletions

View file

@ -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": (