Skip to content
Snippets Groups Projects
Commit b518e353 authored by Jan Grewe's avatar Jan Grewe
Browse files

reset if MLX90614 values are NaN

parent f2c417cb
Branches
No related tags found
No related merge requests found
Pipeline #994 passed
...@@ -22,7 +22,7 @@ status_led: ...@@ -22,7 +22,7 @@ status_led:
i2c: i2c:
sda: 5 sda: 5
scl: 6 scl: 6
frequency: 50khz frequency: 10khz
wifi: wifi:
power_save_mode: none power_save_mode: none
filters: filters:
- sliding_window_moving_average: # - sliding_window_moving_average:
window_size: 5 # window_size: 5
# send_every: 1
- median:
window_size: 7
send_every: 1 send_every: 1
...@@ -11,7 +11,9 @@ sensor: ...@@ -11,7 +11,9 @@ sensor:
on_value: on_value:
if: if:
condition: condition:
sensor.in_range: - or:
- lambda: !lambda 'return isnan(id(mlx90614_temperature_ambient).state);'
- sensor.in_range:
id: mlx90614_temperature_ambient id: mlx90614_temperature_ambient
below: 0.0 below: 0.0
then: then:
...@@ -29,7 +31,9 @@ sensor: ...@@ -29,7 +31,9 @@ sensor:
on_value: on_value:
if: if:
condition: condition:
sensor.in_range: - or:
- lambda: !lambda 'return isnan(id(mlx90614_temperature_object).state);'
- sensor.in_range:
id: mlx90614_temperature_object id: mlx90614_temperature_object
below: 0.0 below: 0.0
then: then:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment