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

feat(lerlink_highpower_switch): add optional backlight

Jason Rumney 2 месяцев назад
Родитель
Сommit
a07ca6f323
1 измененных файлов с 17 добавлено и 0 удалено
  1. 17 0
      custom_components/tuya_local/devices/lerlink_highpower_switch.yaml

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

@@ -76,3 +76,20 @@ entities:
         type: string
         optional: true
         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