Procházet zdrojové kódy

Korex kettle: use dynamic temperature unit in water_heater

Since the temperature settings have separate select entities, it is
less important that those are incorrect, instead make the current
temperature reading correct when the unit is mismatched.

PR #3301
Jason Rumney před 9 měsíci
rodič
revize
26316c5472

+ 8 - 1
custom_components/tuya_local/devices/korex_axwf306n_smart_kettle.yaml

@@ -26,7 +26,6 @@ entities:
       - id: 101
         type: string
         name: temperature
-        unit: F
         range:
           min: 113
           max: 212
@@ -99,6 +98,14 @@ entities:
         type: boolean
         name: keep_warm
         hidden: true
+      - id: 105
+        type: string
+        name: temperature_unit
+        mapping:
+          - dps_val: C
+            value: true
+          - dps_val: F
+            value: false
   - entity: sensor
     translation_key: status
     class: enum