Skip to content

Commit

Permalink
Merge pull request #139 from EverythingSmartHome:light-clamp
Browse files Browse the repository at this point in the history
Fix negative light sensor values
  • Loading branch information
EverythingSmartHome authored Jan 16, 2024
2 parents 5bd17b0 + b019c23 commit 9130da6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions everything-presence-one-beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ sensor:
- 79.8 -> 197.1
- 84.3 -> 205.7
- lambda: "return x + id(illuminance_offset_ui).state;"
- clamp:
min_value: 0

- platform: template
name: Target 1 Distance # Don't change
Expand Down
3 changes: 3 additions & 0 deletions everything-presence-one-st.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ sensor:
- 71.5 -> 176.9
- 79.8 -> 197.1
- 84.3 -> 205.7
- clamp:
min_value: 0


binary_sensor:
- platform: gpio
Expand Down
2 changes: 2 additions & 0 deletions everything-presence-one.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ sensor:
- 79.8 -> 197.1
- 84.3 -> 205.7
- lambda: "return x + id(illuminance_offset_ui).state;"
- clamp:
min_value: 0

binary_sensor:
- platform: gpio
Expand Down

0 comments on commit 9130da6

Please sign in to comment.