Ver código fonte

changed type of DP 9

almirus 1 ano atrás
pai
commit
ce8f14b6fb

+ 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