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

fix(ept_level_sensor): scale depth by 1000 instead of 100

Issue #5968

Original data for this device gives a scale of 2 decimal places, but also a range up to
10000, which would be 100m, which is unreasonably high for a product with marketed range
of 3m.

10m is more reasonable for the range so I suspect the original product is also the same.
Forum posts about these devices only mention using the percentage sensor, which may be because
the depth was giving incorrect results and users just wrote it off as a faulty device side
issue rather than reporting it earlier.
Jason Rumney 1 неделя назад
Родитель
Сommit
cf5dbc7c17
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      custom_components/tuya_local/devices/ept_level_sensor.yaml

+ 1 - 1
custom_components/tuya_local/devices/ept_level_sensor.yaml

@@ -28,7 +28,7 @@ entities:
         unit: m
         class: measurement
         mapping:
-          - scale: 100
+          - scale: 1000
   - entity: sensor
     name: Battery voltage
     class: voltage