Ver Fonte

feat(lerlink_highpower_switch): add optional backlight

Jason Rumney há 2 meses atrás
pai
commit
a07ca6f323

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

@@ -76,3 +76,20 @@ entities:
         type: string
         type: string
         optional: true
         optional: true
         name: value
         name: value
+  - entity: light
+    translation_key: backlight
+    category: config
+    hidden: unavailable
+    dps:
+      - id: 16
+        type: boolean
+        optional: true
+        name: switch
+      - id: 16
+        type: boolean
+        optional: true
+        name: available
+        mapping:
+          - dps_val: null
+            value: false
+          - value: true