-
I have the automation setup like this but I never get notifications at all even if my lovelace card shows mail and packages coming. I checked the trace and it says " Stopped because a condition failed at October 25, 2021, 8:36:07 AM (runtime: 0.00 seconds)" no logbook entries found under log
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 13 replies
-
Your quotes are wrong. Wrong: value_template: '{{ ((as_timestamp(now()) - as_timestamp(states.sensor.mail_usps_mail.last_changed))
< 15 and states(''sensor.mail_usps_mail'') > 0) }}' Correct: value_template: "{{ ((as_timestamp(now()) - as_timestamp(states.sensor.mail_usps_mail.last_changed))
< 15 and states('sensor.mail_usps_mail') > 0) }}" |
Beta Was this translation helpful? Give feedback.
-
Update: the notification came in today. Thank you Chris for your help again. The pic in the notification showed an error but I'll take it. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Should I just delete it from the UI and write it in automation.yaml? |
Beta Was this translation helpful? Give feedback.
-
Make sure |
Beta Was this translation helpful? Give feedback.
Make sure
sensor.mail_image_url
shows the proper URL to get to your Home Assistant externally.