Просмотр исходного кода

fix (earu_k6h3aw_thermostat): allow temperature to go to 95.0F

K6RH-3A goes to 95.0, while the original only goes to 90.0.
But the maximum temperature can be set separately, so we can expand this
range without causing any issue for the more limited model.

PR #3898
Jason Rumney 4 месяцев назад
Родитель
Сommit
61db73ea17
1 измененных файлов с 11 добавлено и 1 удалено
  1. 11 1
      custom_components/tuya_local/devices/earu_k6h3aw_thermostat.yaml

+ 11 - 1
custom_components/tuya_local/devices/earu_k6h3aw_thermostat.yaml

@@ -155,10 +155,20 @@ entities:
         unit: C
         range:
           min: 200
-          max: 900
+          max: 950
         mapping:
           - scale: 10
             step: 10
+            constraint: k6h
+            conditions:
+              - dps_val: null
+                range:
+                  min: 200
+                  max: 900
+      - id: 7
+        type: boolean
+        optional: true
+        name: k6h
   - entity: number
     name: Minimum temperature
     category: config