Procházet zdrojové kódy

changed type of DP 9

almirus před 1 rokem
rodič
revize
b62df3376a

+ 6 - 1
custom_components/tuya_local/devices/ble_smart_plant_moisture.yaml

@@ -10,7 +10,6 @@ primary_entity:
     - id: 3
       name: sensor
       type: integer
-      force: true
       unit: "%"
 secondary_entities:
   - entity: sensor
@@ -29,7 +28,13 @@ secondary_entities:
     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