Просмотр исходного кода

feat (loratap_zigbee_six_switch): generalise for multi buttons

There is an obvious pattern here, and we don't want a separate config
for every number of button variant.

The only issue is that buttons are only reported if they are pressed, so
we cannot automatically detect how many buttons are supported to hide the
rest. But it is easy enough for users to hide entities in the UI.

PR #4753
Jason Rumney 1 день назад
Родитель
Сommit
53be9a59d6

+ 5 - 1
custom_components/tuya_local/devices/loratap_zigbee_six_switch.yaml

@@ -1,8 +1,12 @@
-name: Six button remote
+name: Multi button remote
 products:
   - id: iszegwpd
     manufacturer: LoraTap
     name: Six gang Zigbee remote
+  - id: famkxci2
+    model: QCSS600ZB 3 gang Zigbee remote
+  - id: bi6lpsew
+    model: QCSS600ZB 3 gang Zigbee remote
 entities:
   - entity: event
     name: Button 1