Kaynağa Gözat

Touchstone fireplace: use dp 109 for embers.

Although "coal bed" light is not fitted to reporter's unit, and it may in
fact be an uplight above the unit, leave it in with Tuya's original name
(confusingly similar to Embers though it is) in case other users can use it.

Issue #1372 (comments on commit 263093bce)
Jason Rumney 2 yıl önce
ebeveyn
işleme
09d7de3b8f

+ 25 - 4
custom_components/tuya_local/devices/touchstone_sideline_fireplace.yaml

@@ -130,6 +130,31 @@ secondary_entities:
     name: Embers
     category: config
     icon: "mdi:campfire"
+    dps:
+      - id: 109
+        name: brightness
+        type: string
+        optional: true
+        mapping:
+          - dps_val: L0
+            value: 0
+          - dps_val: L1
+            value: 51
+          - dps_val: L2
+            value: 102
+          - dps_val: L3
+            value: 153
+          - dps_val: L4
+            value: 204
+          - dps_val: L5
+            value: 255
+          - dps_val: null
+            value: 0
+            hidden: true
+  - entity: light
+    name: Coal bed
+    category: config
+    icon: "mdi:dots-triangle"
     dps:
       - id: 105
         name: brightness
@@ -187,10 +212,6 @@ secondary_entities:
             value: "Cycle"
           - dps_val: "12"
             value: "Mystery"
-      - id: 109
-        type: string
-        optional: true
-        name: ember_bed_brightness
   - entity: select
     name: Flame speed
     icon: "mdi:fire"