瀏覽代碼

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 年之前
父節點
當前提交
09d7de3b8f
共有 1 個文件被更改,包括 25 次插入4 次删除
  1. 25 4
      custom_components/tuya_local/devices/touchstone_sideline_fireplace.yaml

+ 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"