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

Update touchstone_sidelineredblue_fireplace.yaml (#5150)

* Update touchstone_sidelineredblue_fireplace.yaml

* Update touchstone_sidelineredblue_fireplace.yaml

Addressed comments.

After investigating the ember colors further, they do mostly line up with the names given in the other fire place for 1-10, but 11 and 12 appear to be the same as 10, so marking them hidden, we can keep the naming convention of cycle and mystery if you want but the colors didn't cycle on this fireplace

* Update touchstone_sidelineredblue_fireplace.yaml

Reverting most of my changes, simpler set of changes made -- addressed comments, lock is now hidden, switch still controls fire place (lights can be on without touching hvac)

* Update touchstone_sidelineredblue_fireplace.yaml

HVAC hidden fixes for your comment

* Update touchstone_sidelineredblue_fireplace.yaml

Fixed child lock entity now everything works perfectly
Sean McGuire 4 дней назад
Родитель
Сommit
153a4fe41a
1 измененных файлов с 29 добавлено и 31 удалено
  1. 29 31
      custom_components/tuya_local/devices/touchstone_sidelineredblue_fireplace.yaml

+ 29 - 31
custom_components/tuya_local/devices/touchstone_sidelineredblue_fireplace.yaml

@@ -1,21 +1,19 @@
 name: Electric fireplace
 name: Electric fireplace
+products:
+  - id: pkgk72uonlqlzcil
+    manufacturer: Touchstone
+    model: Sideline (red/blue flame variant)
 entities:
 entities:
-  - entity: climate
-    translation_key: heater
+  - entity: switch
+    icon: "mdi:fireplace"
     dps:
     dps:
       - id: 1
       - id: 1
         type: boolean
         type: boolean
-        name: hvac_mode
-        mapping:
-          - dps_val: false
-            value: "off"
-          - dps_val: true
-            constraint: heat_disable
-            conditions:
-              - dps_val: false
-                value: heat
-              - dps_val: true
-                value: fan_only
+        name: switch
+
+  - entity: climate
+    translation_key: heater
+    dps:
       - id: 2
       - id: 2
         name: temperature
         name: temperature
         optional: true
         optional: true
@@ -39,6 +37,20 @@ entities:
             conditions:
             conditions:
               - dps_val: f
               - dps_val: f
                 value_redirect: temp_current_f
                 value_redirect: temp_current_f
+      - id: 5
+        type: string
+        name: hvac_mode
+        mapping:
+          - dps_val: "0"
+            value: "off"
+          - dps_val: "1"
+            value: heat
+            hidden: true
+          - dps_val: "2"
+            value: heat
+            hidden: true
+          - dps_val: "3"
+            value: heat
       - id: 5
       - id: 5
         name: preset_mode
         name: preset_mode
         type: string
         type: string
@@ -72,10 +84,6 @@ entities:
         type: integer
         type: integer
         optional: true
         optional: true
         hidden: true
         hidden: true
-      - id: 107
-        type: boolean
-        name: heat_disable
-        hidden: true
   - entity: select
   - entity: select
     translation_key: temperature_unit
     translation_key: temperature_unit
     category: config
     category: config
@@ -186,20 +194,10 @@ entities:
           - dps_val: "10"
           - dps_val: "10"
             value: peachpuff
             value: peachpuff
           - dps_val: "11"
           - dps_val: "11"
-            value: black
-          - dps_val: "12"
-            value: grey
-      - id: 104
-        name: effect
-        type: string
-        mapping:
+            value: peachpuff
+            hidden: true
           - dps_val: "12"
           - dps_val: "12"
-            value: Mystery
-          - dps_val: "11"
-            value: Cycle
-          - dps_val: "1"
-            value: "off"
-          - value: "off"
+            value: peachpuff
             hidden: true
             hidden: true
   - entity: select
   - entity: select
     translation_key: timer
     translation_key: timer
@@ -236,6 +234,6 @@ entities:
     translation_key: child_lock
     translation_key: child_lock
     category: config
     category: config
     dps:
     dps:
-      - id: 108
+      - id: 107
         type: boolean
         type: boolean
         name: lock
         name: lock