Add switches to Tuya dehumidifier: anion, filter_reset, and child_lock (#105200)

Co-authored-by: Franck Nijhof <git@frenck.dev>
pull/120159/head
vmonkey 2024-06-22 13:41:45 +02:00 committed by GitHub
parent 5cdd650023
commit 56d5e41b28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 22 additions and 0 deletions

View File

@ -49,6 +49,28 @@ SWITCHES: dict[str, tuple[SwitchEntityDescription, ...]] = {
translation_key="water", translation_key="water",
), ),
), ),
# Dehumidifier
# https://developer.tuya.com/en/docs/iot/s?id=K9gf48r6jke8e
"cs": (
SwitchEntityDescription(
key=DPCode.ANION,
translation_key="ionizer",
icon="mdi:atom",
entity_category=EntityCategory.CONFIG,
),
SwitchEntityDescription(
key=DPCode.CHILD_LOCK,
translation_key="child_lock",
icon="mdi:account-lock",
entity_category=EntityCategory.CONFIG,
),
SwitchEntityDescription(
key=DPCode.FILTER_RESET,
translation_key="filter_reset",
icon="mdi:filter",
entity_category=EntityCategory.CONFIG,
),
),
# Smart Pet Feeder # Smart Pet Feeder
# https://developer.tuya.com/en/docs/iot/categorycwwsq?id=Kaiuz2b6vydld # https://developer.tuya.com/en/docs/iot/categorycwwsq?id=Kaiuz2b6vydld
"cwwsq": ( "cwwsq": (