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

Update feit_dimmer.yaml (#5009)

* Update feit_dimmer.yaml

Added additional dps entries for feit_dimmer

* Update feit_dimmer.yaml

Fix to remove trailing spaces and tab

* Update feit_dimmer.yaml

Removed tab characters

* feat(feit_dimmer): use light entity for indicator

- use a light entity per the standard pattern for switch indicators.
- make the new entity hidden if unavailable, as it does not seem to exist in previous requests #752, #4280, #4325

PR #5009

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
BostonPandaGit 1 неделя назад
Родитель
Сommit
2e34fc6ecf
1 измененных файлов с 24 добавлено и 0 удалено
  1. 24 0
      custom_components/tuya_local/devices/feit_dimmer.yaml

+ 24 - 0
custom_components/tuya_local/devices/feit_dimmer.yaml

@@ -45,3 +45,27 @@ entities:
             value: Incandescent
             value: Incandescent
           - dps_val: halogen
           - dps_val: halogen
             value: LED
             value: LED
+  - entity: light
+    translation_key: indicator
+    category: config
+    hidden: unavailable
+    dps:
+      - id: 101
+        type: string
+        name: brightness
+        optional: true
+        mapping:
+          - dps_val: "off"
+            value: 0
+          - dps_val: low
+            value: 128
+          - dps_val: high
+            value: 255
+      - id: 101
+        type: string
+        optional: true
+        name: available
+        mapping:
+          - dps_val: null
+            value: false
+          - value: true