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

Moes dimmer: finish config

Last checkin was an incomplete config, with missing dp and not all entities.
Jason Rumney 3 лет назад
Родитель
Сommit
928b1c39fe
1 измененных файлов с 31 добавлено и 1 удалено
  1. 31 1
      custom_components/tuya_local/devices/moes_dimmer.yaml

+ 31 - 1
custom_components/tuya_local/devices/moes_dimmer.yaml

@@ -21,7 +21,7 @@ secondary_entities:
     category: config
     icon: "mdi:brightness-percent"
     dps:
-      - id: 
+      - id: 3
         type: integer
         name: value
         unit: percent
@@ -30,3 +30,33 @@ secondary_entities:
           max: 1000
         mapping:
           - scale: 10
+  - entity: select
+    name: Light type
+    icon: "mdi:lightbulb-question"
+    category: config
+    dps:
+      - id: 4
+        type: string
+        name: option
+        mapping:
+          - dps_val: led
+            value: LED
+          - dps_val: incandescent
+            value: Incandescent
+          - dps_val: halogen
+            value: Halogen
+  - entity: select
+    name: Backlight mode
+    icon: "mdi:circle-outline"
+    category: config
+    dps:
+      - id: 21
+        type: string
+        name: option
+        mapping:
+          - dps_val: none
+            value: "Off"
+          - dps_val: relay
+            value: Status
+          - dps_val: pos
+            value: Locator