فهرست منبع

Korex kettle: revert temperature unit to sensor

- based on Issue #3262, this is read-only.
- the temperature is already conditional, so it is too complex
  to handle unit switching as well
- make this a binary sensor that indicates a problem if there is a mismatch
Jason Rumney 9 ماه پیش
والد
کامیت
57c5ddde39
1فایلهای تغییر یافته به همراه8 افزوده شده و 6 حذف شده
  1. 8 6
      custom_components/tuya_local/devices/korex_axwf306n_smart_kettle.yaml

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

@@ -95,18 +95,20 @@ entities:
       - id: 104
         type: string
         name: status_reach
-  - entity: select
-    translation_key: temperature_unit
-    category: config
+  - entity: binary_sensor
+    # This config is designed for a fahrenheit market version
+    name: Temperature unit mismatch
+    category: diagnostic
+    class: problem
     dps:
       - id: 105
         type: string
-        name: option
+        name: sensor
         mapping:
           - dps_val: c
-            value: celcius
+            value: true
           - dps_val: f
-            value: fahrenheit
+            value: false
   - entity: binary_sensor
     class: problem
     category: diagnostic