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

EM3378: revert temperature unit change

From debug log, the device is clearly outputting Fahrenheit when the
unit dp is true, which is as per the original implementation.

Confusion seems to be caused by HA doing conversion to the user's
configured units.

Issue #419
Jason Rumney 1 год назад
Родитель
Сommit
ddf3a2fb5c
1 измененных файлов с 10 добавлено и 10 удалено
  1. 10 10
      custom_components/tuya_local/devices/em3378_weather_station.yaml

+ 10 - 10
custom_components/tuya_local/devices/em3378_weather_station.yaml

@@ -18,9 +18,9 @@ primary_entity:
       name: unit
       name: unit
       mapping:
       mapping:
         - dps_val: true
         - dps_val: true
-          value: C
-        - dps_val: false
           value: F
           value: F
+        - dps_val: false
+          value: C
     - id: 117
     - id: 117
       name: fault
       name: fault
       type: bitfield
       type: bitfield
@@ -61,9 +61,9 @@ secondary_entities:
         type: boolean
         type: boolean
         name: unit
         name: unit
         mapping:
         mapping:
-          - dps_val: true
-            value: C
           - dps_val: false
           - dps_val: false
+            value: C
+          - dps_val: true
             value: F
             value: F
   - entity: sensor
   - entity: sensor
     name: Remote humidity 1
     name: Remote humidity 1
@@ -91,9 +91,9 @@ secondary_entities:
         type: boolean
         type: boolean
         name: unit
         name: unit
         mapping:
         mapping:
-          - dps_val: true
-            value: C
           - dps_val: false
           - dps_val: false
+            value: C
+          - dps_val: true
             value: F
             value: F
   - entity: sensor
   - entity: sensor
     name: Remote humidity 2
     name: Remote humidity 2
@@ -122,9 +122,9 @@ secondary_entities:
         type: boolean
         type: boolean
         name: unit
         name: unit
         mapping:
         mapping:
-          - dps_val: true
-            value: C
           - dps_val: false
           - dps_val: false
+            value: C
+          - dps_val: true
             value: F
             value: F
   - entity: sensor
   - entity: sensor
     name: Remote humidity 3
     name: Remote humidity 3
@@ -171,9 +171,9 @@ secondary_entities:
         type: boolean
         type: boolean
         name: option
         name: option
         mapping:
         mapping:
-          - dps_val: true
-            value: celsius
           - dps_val: false
           - dps_val: false
+            value: celsius
+          - dps_val: true
             value: fahrenheit
             value: fahrenheit
   - entity: binary_sensor
   - entity: binary_sensor
     class: problem
     class: problem