Просмотр исходного кода

Inkbird Sous Vide: temperature unit is only used for display

It seems that the temperature values coming back from the unit are
always C, and there are no F values reported. Setting the unit to F
only affects the display on the device itself.

Issue #1416
Jason Rumney 2 лет назад
Родитель
Сommit
8bd6721662
1 измененных файлов с 2 добавлено и 9 удалено
  1. 2 9
      custom_components/tuya_local/devices/inkbird_sousvide_cooker.yaml

+ 2 - 9
custom_components/tuya_local/devices/inkbird_sousvide_cooker.yaml

@@ -39,6 +39,7 @@ primary_entity:
         max: 960
       mapping:
         - scale: 10
+      unit: C
     - id: 104
       type: integer
       name: current_temperature
@@ -52,14 +53,6 @@ primary_entity:
           value: 0
         - icon: "mdi:alert"
           icon_priority: 1
-    - id: 108
-      type: boolean
-      name: temperature_unit
-      mapping:
-        - dps_val: true
-          value: C
-        - dps_val: false
-          value: F
 secondary_entities:
   - entity: number
     name: Cooking time
@@ -96,7 +89,7 @@ secondary_entities:
             value: false
           - value: true
   - entity: select
-    name: Temperature unit
+    name: Temperature display unit
     category: config
     icon: "mdi:temperature-celsius"
     dps: