almirus 2 лет назад
Родитель
Сommit
ce8f14b6fb
1 измененных файлов с 12 добавлено и 0 удалено
  1. 12 0
      custom_components/tuya_local/devices/ble_smart_plant_moisture.yaml

+ 12 - 0
custom_components/tuya_local/devices/ble_smart_plant_moisture.yaml

@@ -24,6 +24,18 @@ secondary_entities:
         mapping:
           - scale: 10
         unit: C
+  - entity: sensor
+    translation_key: temperature_unit
+    category: diagnostic
+    dps:
+      - id: 9
+        name: option
+        type: string
+        mapping:
+          - dps_val: "f"
+            value: fahrenheit
+          - dps_val: "c"
+            value: celsius
   - entity: sensor
     class: battery
     category: diagnostic