Răsfoiți Sursa

Inkbird BBQ thermometer: probes always report F

It seems that the probes are always reporting F, just like the internal
temperature is always reporting C.  The unit setting seems to only affect
the device's display.

Issue #548
Jason Rumney 2 ani în urmă
părinte
comite
fd00490a87

+ 40 - 36
custom_components/tuya_local/devices/inkbird_ibbq4bw_thermometer.yaml

@@ -13,12 +13,13 @@ primary_entity:
       class: measurement
       mapping:
         - scale: 100
+      unit: F
     - id: 13
       type: bitfield
       name: fault_code
-    - id: 19
-      type: string
-      name: unit
+    # - id: 19
+    #   type: string
+    #   name: unit
 secondary_entities:
   - entity: sensor
     name: Temperature probe 2
@@ -30,9 +31,10 @@ secondary_entities:
         class: measurement
         mapping:
           - scale: 100
-      - id: 19
-        type: string
-        name: unit
+        unit: F
+      # - id: 19
+      #   type: string
+      #   name: unit
   - entity: sensor
     name: Temperature probe 3
     class: temperature
@@ -43,9 +45,10 @@ secondary_entities:
         class: measurement
         mapping:
           - scale: 100
-      - id: 19
-        type: string
-        name: unit
+        unit: F
+      # - id: 19
+      #   type: string
+      #   name: unit
   - entity: sensor
     name: Temperature probe 4
     class: temperature
@@ -56,9 +59,10 @@ secondary_entities:
         class: measurement
         mapping:
           - scale: 100
-      - id: 19
-        type: string
-        name: unit
+        unit: F
+      # - id: 19
+      #   type: string
+      #   name: unit
   - entity: switch
     dps:
       - id: 1
@@ -147,12 +151,12 @@ secondary_entities:
           max: 126
         mapping:
           - scale: 10
-            constraint: temp_unit
-            conditions:
-              - dps_val: C
-                range:
-                  min: -70
-                  max: 70
+            # constraint: temp_unit
+            # conditions:
+            #   - dps_val: C
+            #     range:
+            #       min: -70
+            #       max: 70
       - id: 19
         type: string
         name: temp_unit
@@ -169,12 +173,12 @@ secondary_entities:
           max: 126
         mapping:
           - scale: 10
-            constraint: temp_unit
-            conditions:
-              - dps_val: C
-                range:
-                  min: -70
-                  max: 70
+            # constraint: temp_unit
+            # conditions:
+            #   - dps_val: C
+            #     range:
+            #       min: -70
+            #       max: 70
       - id: 19
         type: string
         name: temp_unit
@@ -191,12 +195,12 @@ secondary_entities:
           max: 126
         mapping:
           - scale: 10
-            constraint: temp_unit
-            conditions:
-              - dps_val: C
-                range:
-                  min: -70
-                  max: 70
+            # constraint: temp_unit
+            # conditions:
+            #   - dps_val: C
+            #     range:
+            #       min: -70
+            #       max: 70
       - id: 19
         type: string
         name: temp_unit
@@ -213,12 +217,12 @@ secondary_entities:
           max: 126
         mapping:
           - scale: 10
-            constraint: temp_unit
-            conditions:
-              - dps_val: C
-                range:
-                  min: -70
-                  max: 70
+            # constraint: temp_unit
+            # conditions:
+            #   - dps_val: C
+            #     range:
+            #       min: -70
+            #       max: 70
       - id: 19
         type: string
         name: temp_unit