Skip to content

Commit

Permalink
Remove workaround for negative number (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
olafz authored Jun 4, 2024
1 parent 1b5ece4 commit dbdbcfe
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions full_config/ag-open-air-o-1ppt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,6 @@ sensor:
id: temp
filters:
- lambda: !lambda |-
// Remove line with (x > 6000) once the negative number issue fix is merged in https://github.com/esphome/issues/issues/3814
if (x > 6000) return ((x - 6553.6) * 1.327) - 6.738;
if (x < 10.0) return (x * 1.327) - 6.738;
return (x * 1.181) - 5.113;
- sliding_window_moving_average:
Expand Down Expand Up @@ -326,8 +324,6 @@ sensor:
id: temp_2
filters:
- lambda: !lambda |-
// Remove line with (x > 6000) once the negative number issue fix is merged in https://github.com/esphome/issues/issues/3814
if (x > 6000) return ((x - 6553.6) * 1.327) - 6.738;
if (x < 10.0) return (x * 1.327) - 6.738;
return (x * 1.181) - 5.113;
- sliding_window_moving_average:
Expand Down
2 changes: 0 additions & 2 deletions full_config/ag-open-air-o-1pst.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,6 @@ sensor:
id: temp
filters:
- lambda: !lambda |-
// Remove line with (x > 6000) once the negative number issue fix is merged in https://github.com/esphome/issues/issues/3814
if (x > 6000) return ((x - 6553.6) * 1.327) - 6.738;
if (x < 10.0) return (x * 1.327) - 6.738;
return (x * 1.181) - 5.113;
- sliding_window_moving_average:
Expand Down
2 changes: 0 additions & 2 deletions packages/sensor_pms5003t.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ sensor:
filters:
# https://forum.airgradient.com/t/outdoor-temperature-and-humidity-reading-correction/1544/19
- lambda: !lambda |-
// Remove line with (x > 6000) once the negative number issue fix is merged in https://github.com/esphome/issues/issues/3814
if (x > 6000) return ((x - 6553.6) * 1.327) - 6.738;
if (x < 10.0) return (x * 1.327) - 6.738;
return (x * 1.181) - 5.113;
- sliding_window_moving_average:
Expand Down
2 changes: 0 additions & 2 deletions packages/sensor_pms5003t_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ sensor:
filters:
# https://forum.airgradient.com/t/outdoor-temperature-and-humidity-reading-correction/1544/19
- lambda: !lambda |-
// Remove line with (x > 6000) once the negative number issue fix is merged in https://github.com/esphome/issues/issues/3814
if (x > 6000) return ((x - 6553.6) * 1.327) - 6.738;
if (x < 10.0) return (x * 1.327) - 6.738;
return (x * 1.181) - 5.113;
- sliding_window_moving_average:
Expand Down
2 changes: 0 additions & 2 deletions packages/sensor_pms5003t_2_extended_life.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ sensor:
filters:
# https://forum.airgradient.com/t/outdoor-temperature-and-humidity-reading-correction/1544/19
- lambda: !lambda |-
// Remove line with (x > 6000) once the negative number issue fix is merged in https://github.com/esphome/issues/issues/3814
if (x > 6000) return ((x - 6553.6) * 1.327) - 6.738;
if (x < 10.0) return (x * 1.327) - 6.738;
return (x * 1.181) - 5.113;
humidity:
Expand Down
2 changes: 0 additions & 2 deletions packages/sensor_pms5003t_extended_life.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ sensor:
filters:
# https://forum.airgradient.com/t/outdoor-temperature-and-humidity-reading-correction/1544/19
- lambda: !lambda |-
// Remove line with (x > 6000) once the negative number issue fix is merged in https://github.com/esphome/issues/issues/3814
if (x > 6000) return ((x - 6553.6) * 1.327) - 6.738;
if (x < 10.0) return (x * 1.327) - 6.738;
return (x * 1.181) - 5.113;
humidity:
Expand Down

0 comments on commit dbdbcfe

Please sign in to comment.