Przeglądaj źródła

Add a conditional range for Farenheit.

When the device is set to Farenheit, it is going to need a different range.
The 60-115 is a rounded conversion of the Celsius range, as a guess.
But the Celcius range is a bit suspect, I found a manual online that states
18-35, but the user who submitted the request was adament that it goes beyond
40 (there were other unknown dps reporting 18 and 40, so I thought the range
might be coming from them).
Jason Rumney 4 lat temu
rodzic
commit
2ed3b3d5fc

+ 7 - 0
custom_components/tuya_local/devices/gardenpac_heatpump.yaml

@@ -39,6 +39,13 @@ primary_entity:
     - id: 106
     - id: 106
       name: temperature
       name: temperature
       type: integer
       type: integer
+      mapping:
+        constraint: temperature_units
+        conditions:
+          - dps_val: false
+            range:
+              min: 60
+              max: 115
       range:
       range:
         min: 18
         min: 18
         max: 45
         max: 45