4
0
Эх сурвалжийг харах

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 жил өмнө
parent
commit
09d7de3b8f

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

@@ -130,6 +130,31 @@ secondary_entities:
     name: Embers
     name: Embers
     category: config
     category: config
     icon: "mdi:campfire"
     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:
     dps:
       - id: 105
       - id: 105
         name: brightness
         name: brightness
@@ -187,10 +212,6 @@ secondary_entities:
             value: "Cycle"
             value: "Cycle"
           - dps_val: "12"
           - dps_val: "12"
             value: "Mystery"
             value: "Mystery"
-      - id: 109
-        type: string
-        optional: true
-        name: ember_bed_brightness
   - entity: select
   - entity: select
     name: Flame speed
     name: Flame speed
     icon: "mdi:fire"
     icon: "mdi:fire"