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

temperature unit dpid added as part of temperature sensor

Piotr Szulc 1 год назад
Родитель
Сommit
5bf23cb911

+ 9 - 1
custom_components/tuya_local/devices/woox_r7246_ir_remote_with_th_sensor.yaml

@@ -9,10 +9,18 @@ entities:
       - id: 2
         name: sensor
         type: integer
-        unit: C
         mapping:
           - scale: 10
         class: measurement
+      - id: 11
+        name: unit
+        type: string
+        mapping:
+          - dps_val: "c"
+            value: "C"
+          - dps_val: "f"
+            value: "F"
+        optional: true
   - entity: select
     translation_key: temperature_unit
     category: config