Parcourir la source

Update hombli_thermostatic_radiator_valve.yaml

Mark Paxton il y a 2 ans
Parent
commit
244283fb56

+ 93 - 32
custom_components/tuya_local/devices/hombli_thermostatic_radiator_valve.yaml

@@ -5,25 +5,6 @@ products:
 primary_entity:
   entity: climate
   dps:
-    - id: 8
-      type: boolean
-      name: window_check
-    - id: 10
-      type: boolean
-      name: frost
-      mapping:
-        - dps_val: true
-          value: "On"
-        - dps_val: false
-          value: "Off"
-    - id: 27
-      type: integer
-      name: temp_correction
-      mapping:
-        - scale: 10
-    - id: 40
-      type: boolean
-      name: child_lock
     - id: 101
       type: boolean
       name: hvac_mode
@@ -31,7 +12,7 @@ primary_entity:
         - dps_val: false
           value: "off"
         - dps_val: true
-          value: "auto"
+          value: auto
     - id: 102
       type: integer
       name: current_temperature
@@ -43,15 +24,95 @@ primary_entity:
       name: temperature
       mapping:
         - scale: 10
-    - id: 105
-      type: integer
-      name: battery
-    - id: 106
-      type: boolean
-      name: away
-    - id: 108
-      type: boolean
-      name: program
-    - id: 130
-      type: boolean
-      name: antiscale
+          max: 70
+          min: 0
+          step: 10
+secondary_entities:
+  - entity: switch
+    name: Window check
+    category: config
+    dps:
+      - id: 8
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Anti frost
+    category: config
+    dps:
+      - id: 10
+        type: boolean
+        name: switch
+        mapping:
+          - dps_val: true
+            value: "On"
+          - dps_val: false
+            value: "Off"
+  - entity: select
+    name: Temperature unit
+    category: config
+    dps:
+      - id: 23
+        type: string
+        name: option
+        mapping:
+          - dps_val: "c"
+            value: Celsius
+            icon: "mdi:temperature-celsius"
+          - dps_val: "f"
+            value: Fahrenheit
+            icon: "mdi:temperature-fahrenheit"
+  - entity: number
+    name: Temperature calibration
+    category: config
+    dps:
+      - id: 27
+        type: integer
+        name: temp_correction
+        mapping:
+          - scale: 10
+            min: -60
+            max: 60
+            step: 5
+  - entity: lock
+    name: Child lock
+    icon: "mdi:hand-back-right-off"
+    category: config
+    dps:
+      - id: 40
+        type: boolean
+        name: lock
+  - entity: binary_sensor
+    name: Battery
+    class: battery
+    category: diagnostic
+    dps:
+      - id: 105
+        type: bitfield
+        name: sensor
+        class: measurement
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+  - entity: switch
+    name: Away
+    category: config
+    dps:
+      - id: 106
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Schedule
+    icon: "mdi:calendar-clock"
+    category: config
+    dps:
+      - id: 108
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Antiscale
+    category: config
+    dps:
+      - id: 130
+        type: boolean
+        name: switch