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

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

@@ -10,7 +10,6 @@ primary_entity:
     - id: 3
     - id: 3
       name: sensor
       name: sensor
       type: integer
       type: integer
-      force: true
       unit: "%"
       unit: "%"
 secondary_entities:
 secondary_entities:
   - entity: sensor
   - entity: sensor
@@ -29,7 +28,13 @@ secondary_entities:
     category: diagnostic
     category: diagnostic
     dps:
     dps:
       - id: 9
       - id: 9
+        name: option
         type: string
         type: string
+        mapping:
+          - dps_val: "f"
+            value: fahrenheit
+          - dps_val: "c"
+            value: celsius
   - entity: sensor
   - entity: sensor
     class: battery
     class: battery
     category: diagnostic
     category: diagnostic