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

Updated battery measurement in the tuya smart door sensor

Wiseman 2 лет назад
Родитель
Сommit
41a09bfa7a
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      custom_components/tuya_local/devices/tuya_smart_zigbee_door_sensor.yaml

+ 3 - 2
custom_components/tuya_local/devices/tuya_smart_zigbee_door_sensor.yaml

@@ -18,9 +18,10 @@ secondary_entities:
         type: integer
         type: integer
         name: sensor
         name: sensor
         optional: true
         optional: true
-        unit: ""
+        unit: "%"
+        class: measurement
         mapping:
         mapping:
           - dps_val: low
           - dps_val: low
             value: 0
             value: 0
           - dps_val: high
           - dps_val: high
-            value: 500
+            value: 100