Skip to content

Commit

Permalink
Clamp min value to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenpapierski committed Oct 19, 2024
1 parent b867d90 commit 808070d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bed-presence-mk1/sensor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ sensor:
datapoints:
- 408000 -> 100.0 # 6800Hz (sensor shorted/0ohms)
- 276000 -> 0.0 # 4600Hz (breakforce/10k)
# - clamp:
- clamp:
# max_value: 100.0
# min_value: 0.0
min_value: 0.0
# - or:
# - delta: ${reporting_delta} # only send if sensor changes by `reporting_delta` (eliminate sensor noise)
# - throttle: ${reporting_duration_max} # but still update every `reporting_duration_max`
Expand Down

0 comments on commit 808070d

Please sign in to comment.