Hi All,
Need some guidance to get a notification when a couple of sensors goes NaN.
Here is what I have figured out this far (I think):
- id: Create a notification when devices goes NaN
alias: Create a notification when devices goes NAN
trigger:
platform: state
entity_id: sensor.1
entity_id: sensor.2
(can I add the sensors like this after each other)?
condition:
- condition: template
value_template: '{{ states(trigger.entity_id) != ''NaN''}}'
(or should this be “unknown”)?
action:
service: persistent_notification.create
data_template:
title: Sensor NaN
notification_id: Sensor NAN
(Below I have no idea how to write which sensor is NaN and need help)
message: Sensor XXX is NaN
Thanks,
AseKarlsson