فهرست منبع

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 10 ماه پیش
والد
کامیت
26316c5472
1فایلهای تغییر یافته به همراه8 افزوده شده و 1 حذف شده
  1. 8 1
      custom_components/tuya_local/devices/korex_axwf306n_smart_kettle.yaml

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

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