Преглед на файлове

Korex kettle: "cancel" for heating temperature means boil

Since cancel ("0") for the heat temperature means boil, make it higher
than the highest temperature (unfortunately higher than boiling temperature)
to more intuitively represent that within the limitations of a fixed scale
with standardized step.

PR #3301
Jason Rumney преди 11 месеца
родител
ревизия
feae6bee56
променени са 1 файла, в които са добавени 12 реда и са изтрити 12 реда
  1. 12 12
      custom_components/tuya_local/devices/korex_axwf306n_smart_kettle.yaml

+ 12 - 12
custom_components/tuya_local/devices/korex_axwf306n_smart_kettle.yaml

@@ -22,8 +22,8 @@ entities:
         type: string
         type: string
         name: temperature
         name: temperature
         range:
         range:
-          min: 45
-          max: 212
+          min: 50
+          max: 221
         mapping:
         mapping:
           - constraint: temperature_unit
           - constraint: temperature_unit
             conditions:
             conditions:
@@ -31,24 +31,22 @@ entities:
                 value_redirect: temperature_c
                 value_redirect: temperature_c
                 step: 5
                 step: 5
                 range:
                 range:
-                  min: 45
-                  max: 100
+                  min: 50
+                  max: 105
               - dps_val: f
               - dps_val: f
                 value_redirect: temperature_f
                 value_redirect: temperature_f
                 step: 9
                 step: 9
                 range:
                 range:
-                  min: 113
-                  max: 212
+                  min: 122
+                  max: 221
       - id: 101
       - id: 101
         type: string
         type: string
         name: temperature_f
         name: temperature_f
         hidden: true
         hidden: true
         range:
         range:
-          min: 113
-          max: 212
+          min: 122
+          max: 221
         mapping:
         mapping:
-          - dps_val: "0"
-            value: 113  # actually off, but avoids disjointed values
           - dps_val: "11"
           - dps_val: "11"
             value: 122
             value: 122
           - dps_val: "10"
           - dps_val: "10"
@@ -71,6 +69,8 @@ entities:
             value: 203
             value: 203
           - dps_val: "1"
           - dps_val: "1"
             value: 212
             value: 212
+          - dps_val: "0"
+            value: 221  # "cancel" means boil
       - id: 101
       - id: 101
         type: string
         type: string
         name: temperature_c
         name: temperature_c
@@ -79,8 +79,6 @@ entities:
           min: 45
           min: 45
           max: 100
           max: 100
         mapping:
         mapping:
-          - dps_val: "0"
-            value: 45  # actually off, but avoids disjointed values
           - dps_val: "11"
           - dps_val: "11"
             value: 50
             value: 50
           - dps_val: "10"
           - dps_val: "10"
@@ -103,6 +101,8 @@ entities:
             value: 95
             value: 95
           - dps_val: "1"
           - dps_val: "1"
             value: 100
             value: 100
+          - dps_val: "0"
+            value: 105  # "cancel" means boil
       - id: 105
       - id: 105
         type: string
         type: string
         name: temperature_unit
         name: temperature_unit