Support tuya diivoo dual zone irrigationkit (ggq) (#115090)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
neturmel 2024-06-21 13:28:20 +02:00 committed by GitHub
parent b186b3536f
commit c9ddabaead
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 0 deletions

View File

@ -547,6 +547,9 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
),
*BATTERY_SENSORS,
),
# Irrigator
# https://developer.tuya.com/en/docs/iot/categoryggq?id=Kaiuz1qib7z0k
"ggq": BATTERY_SENSORS,
# Water Detector
# https://developer.tuya.com/en/docs/iot/categorysj?id=Kaiuz3iub2sli
"sj": BATTERY_SENSORS,

View File

@ -407,6 +407,18 @@ SWITCHES: dict[str, tuple[SwitchEntityDescription, ...]] = {
translation_key="switch",
),
),
# Irrigator
# https://developer.tuya.com/en/docs/iot/categoryggq?id=Kaiuz1qib7z0k
"ggq": (
SwitchEntityDescription(
key=DPCode.SWITCH_1,
translation_key="switch_1",
),
SwitchEntityDescription(
key=DPCode.SWITCH_2,
translation_key="switch_2",
),
),
# Siren Alarm
# https://developer.tuya.com/en/docs/iot/categorysgbj?id=Kaiuz37tlpbnu
"sgbj": (