Parcourir la source

Hombli Thermostatic Radiator Valve: changes from review

PR #1424
Jason Rumney il y a 2 ans
Parent
commit
16ca26c141

+ 9 - 10
custom_components/tuya_local/devices/hombli_thermostatic_radiator_valve.yaml

@@ -1,4 +1,4 @@
-name: Hombli Thermostatic Radiator Valve
+name: Radiator Thermostat
 products:
   - id: ngxyxyc8
     name: Hombli HBRT-0109
@@ -12,11 +12,10 @@ primary_entity:
         - dps_val: false
           value: "off"
         - dps_val: true
-          value: auto
+          value: heat
     - id: 102
       type: integer
       name: current_temperature
-      readonly: true
       mapping:
         - scale: 10
     - id: 103
@@ -24,6 +23,7 @@ primary_entity:
       name: temperature
       mapping:
         - scale: 10
+      range:
           max: 70
           min: 0
     - id: 106
@@ -37,6 +37,7 @@ primary_entity:
 secondary_entities:
   - entity: switch
     name: Window check
+    icon: "mdi:window-open-variant"
     category: config
     dps:
       - id: 8
@@ -44,18 +45,15 @@ secondary_entities:
         name: switch
   - entity: switch
     name: Anti frost
+    icon: "mdi:snowflake"
     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
+    icon: "mdi:temperature-celsius"
     category: config
     dps:
       - id: 23
@@ -71,10 +69,11 @@ secondary_entities:
   - entity: number
     name: Temperature calibration
     category: config
+    icon: "mdi:thermometer-check"
     dps:
       - id: 27
         type: integer
-        name: temp_correction
+        name: value
         mapping:
           - scale: 10
             min: -60
@@ -89,7 +88,6 @@ secondary_entities:
         type: boolean
         name: lock
   - entity: binary_sensor
-    name: Battery
     class: battery
     category: diagnostic
     dps:
@@ -112,6 +110,7 @@ secondary_entities:
   - entity: switch
     name: Antiscale
     category: config
+    icon: "mdi:shimmer"
     dps:
       - id: 130
         type: boolean