Преглед изворни кода

Update eurom_sani_bathroom_towel_radiator.yaml

Changed presets to 'none' and 'anti-frost'. Eco mode is a separate switch (but not visible in HA climate element).
Jan-Gerard van der Toorn пре 1 година
родитељ
комит
b8ef95d26b
1 измењених фајлова са 30 додато и 37 уклоњено
  1. 30 37
      custom_components/tuya_local/devices/eurom_sani_bathroom_towel_radiator.yaml

+ 30 - 37
custom_components/tuya_local/devices/eurom_sani_bathroom_towel_radiator.yaml

@@ -12,10 +12,10 @@ primary_entity:
         - dps_val: true
         - dps_val: true
           constraint: mode
           constraint: mode
           conditions:
           conditions:
-            - dps_val: r
-              value: heat
-            - dps_val: t
-              value: dry
+            - dps_val: "r"
+              value: "heat"
+            - dps_val: "t"
+              value: "dry"
               icon: "mdi:hanger"
               icon: "mdi:hanger"
     - id: 2
     - id: 2
       type: integer
       type: integer
@@ -26,7 +26,7 @@ primary_entity:
       mapping:
       mapping:
         - constraint: mode
         - constraint: mode
           conditions:
           conditions:
-            - dps_val: t
+            - dps_val: "t"
               value_redirect: towel_dry_temperature
               value_redirect: towel_dry_temperature
               range:
               range:
                 min: 40
                 min: 40
@@ -42,9 +42,9 @@ primary_entity:
       mapping:
       mapping:
         - constraint: mode
         - constraint: mode
           conditions:
           conditions:
-            - dps_val: t
+            - dps_val: "t"
               value_mirror: heater_temperature
               value_mirror: heater_temperature
-            - dps_val: r
+            - dps_val: "r"
               value_mirror: room_temperature
               value_mirror: room_temperature
     - id: 3
     - id: 3
       type: integer
       type: integer
@@ -54,7 +54,7 @@ primary_entity:
       type: bitfield
       type: bitfield
       mapping:
       mapping:
         - dps_val: 0
         - dps_val: 0
-          value: OK
+          value: "OK"
     - id: 101
     - id: 101
       type: string
       type: string
       name: hvac_action
       name: hvac_action
@@ -62,11 +62,11 @@ primary_entity:
         - dps_val: true
         - dps_val: true
           constraint: mode
           constraint: mode
           conditions:
           conditions:
-            - dps_val: r
-              value: heating
-            - dps_val: t
-              #value: heating
-              value: drying
+            - dps_val: "r"
+              value: "heating"
+            - dps_val: "t"
+              #value: "heating"
+              value: "drying"
         - dps_val: false
         - dps_val: false
           value: idle
           value: idle
           constraint: hvac_mode
           constraint: hvac_mode
@@ -77,10 +77,10 @@ primary_entity:
       name: mode
       name: mode
       type: string
       type: string
       mapping:
       mapping:
-        - dps_val: r
-          value: room
-        - dps_val: t
-          value: towel
+        - dps_val: "r"
+          value: "room"
+        - dps_val: "t"
+          value: "towel"
     - id: 105
     - id: 105
       name: heater_temperature
       name: heater_temperature
       type: integer
       type: integer
@@ -93,27 +93,20 @@ primary_entity:
       range:
       range:
         min: 40
         min: 40
         max: 70
         max: 70
-    - id: 102
+    - id: 103
       name: preset_mode
       name: preset_mode
       type: boolean
       type: boolean
       mapping:
       mapping:
-        - dps_val: true
-          constraint: anti_frost_mode
-          conditions:
-            - dps_val: false
-              value: eco
-            - dps_val: true
-              hidden: true
-              value: invalid
         - dps_val: false
         - dps_val: false
-          constraint: anti_frost_mode
-          conditions:
-            - dps_val: false
-              value: none
-            - dps_val: true
-              # todo: icon for preset
-              value: Anti-frost
-    - id: 103
-      name: anti_frost_mode
-      type: boolean
-      hidden: true
+          value: "none"
+        - dps_val: true
+          value: "Anti-frost"
+secondary_entities:
+  - entity: switch
+    name: "Eco-mode"
+    icon: "mdi:leaf"
+    category: config
+    dps:
+      - id: 102
+        name: value
+        type: boolean