瀏覽代碼

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 6 月之前
父節點
當前提交
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