Explorar o código

feat(create_fan_light_dimmable): add optional sound switch (beep)

Issue #1791
Jason Rumney hai 11 horas
pai
achega
e8b2530da5

+ 17 - 0
custom_components/tuya_local/devices/create_fan_lightdimmable.yaml

@@ -52,3 +52,20 @@ entities:
         range:
           min: 0
           max: 540
+  - entity: switch
+    translation_key: sound
+    category: config
+    hidden: unavailable
+    dps:
+      - id: 66
+        type: boolean
+        optional: true
+        name: switch
+      - id: 66
+        type: boolean
+        optional: true
+        name: available
+        mapping:
+          - dps_val: null
+            value: false
+          - value: true