Quellcode durchsuchen

Add files via upload

kekkutya vor 3 Jahren
Ursprung
Commit
7e23e45f9f
1 geänderte Dateien mit 21 neuen und 15 gelöschten Zeilen
  1. 21 15
      custom_components/tuya_local/devices/beok_tol47_thermostat.yaml

+ 21 - 15
custom_components/tuya_local/devices/beok_tol47_thermostat.yaml

@@ -9,7 +9,14 @@ primary_entity:
         - dps_val: false
         - dps_val: false
           value: "off"
           value: "off"
         - dps_val: true
         - dps_val: true
-          value: heat
+          constraint: preset_mode
+          conditions:
+            - dps_val: cold
+              value: heat
+            - dps_val: hot
+              value: auto
+            - dps_val: wind
+              value: auto
     - id: 2
     - id: 2
       type: integer
       type: integer
       name: temperature
       name: temperature
@@ -28,30 +35,28 @@ primary_entity:
       type: string
       type: string
       name: preset_mode
       name: preset_mode
       mapping:
       mapping:
-        - dps_val: "cold"
+        - dps_val: cold
           value: Manual
           value: Manual
-        - dps_val: "hot"
+        - dps_val: hot
           value: Program
           value: Program
-        - dps_val: "wind"
+        - dps_val: wind
           value: Temporary
           value: Temporary
     - id: 5
     - id: 5
       type: string
       type: string
       name: hvac_action
       name: hvac_action
       mapping:
       mapping:
-        - dps_val: "0"
-          icon: "mdi:radiator-disabled"
-          constraint: power
+        - dps_val: 0
+          constraint: hvac_mode
           conditions:
           conditions:
             - dps_val: true
             - dps_val: true
               value: idle
               value: idle
+              icon: "mdi:radiator-disabled"
             - dps_val: false
             - dps_val: false
               value: "off"
               value: "off"
-        - dps_val: "1"
+              icon: "mdi:radiator-off"
+        - dps_val: 1
           value: heating
           value: heating
           icon: "mdi:radiator"
           icon: "mdi:radiator"
-    - id: 21
-      type: integer
-      name: max_temperature
 secondary_entities:
 secondary_entities:
   - entity: lock
   - entity: lock
     name: Child lock
     name: Child lock
@@ -67,8 +72,8 @@ secondary_entities:
             icon: "mdi:hand-back-right"
             icon: "mdi:hand-back-right"
   - entity: switch 
   - entity: switch 
     name: Sound
     name: Sound
-    icon: "mdi:music-note"
     category: config
     category: config
+    icon: "mdi:music-note"
     dps:
     dps:
       - id: 13
       - id: 13
         type: boolean
         type: boolean
@@ -76,6 +81,7 @@ secondary_entities:
   - entity: binary_sensor
   - entity: binary_sensor
     name: Fault alarm
     name: Fault alarm
     category: diagnostic
     category: diagnostic
+    icon: "mdi:alert"
     class: problem
     class: problem
     dps:
     dps:
       - id: 16
       - id: 16
@@ -130,8 +136,8 @@ secondary_entities:
             value: Both
             value: Both
   - entity: switch
   - entity: switch
     name: Anti-frost
     name: Anti-frost
-    icon: "mdi:snowflake-melt"
     category: config
     category: config
+    icon: "mdi:snowflake-melt"
     dps:
     dps:
       - id: 26
       - id: 26
         type: boolean
         type: boolean
@@ -173,8 +179,8 @@ secondary_entities:
             value: "Daily"	 
             value: "Daily"	 
   - entity: switch
   - entity: switch
     name: Output main reverse
     name: Output main reverse
-    icon: "mdi:swap-horizontal"
     category: config
     category: config
+    icon: "mdi:swap-horizontal"   
     dps:
     dps:
       - id: 101
       - id: 101
         type: boolean
         type: boolean
@@ -204,4 +210,4 @@ secondary_entities:
         unit: C
         unit: C
         range:
         range:
           min: 5
           min: 5
-          max: 60
+          max: 60