- alias: Living Room Humidity
trigger:
platform: numeric_state
entity_id: sensor.livingroom_humidity
above: 60
action:
service: notify.telegram
data:
message: The living room needs some fresh air!
The notification works, however sometimes the MQTT sensor value is shown as “NaN” in home assistant and this also triggers a notification. How can I avoid the “NaN” values or avoid that home assistant sends a notification in that case?
i have exactly opposite issue. sometimes my crappy sensor sending NaNs and i want to know when i have to restart it (or check the wiring). But HA just ignores NaNs. At least in mqtt sensors.