瀏覽代碼

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 2 月之前
父節點
當前提交
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