Hi, this is my first post, and first I will thank you all for HA, and the great community and help that is provided here, in other threads.
I am totally a newbie, I am starting with some automations, and I’ve been playing with the HACS integratiosn, Anniversaries and Garbage and I am testing with some dates to be notified about, and instead of creating an automation for every date, I am trying to do it all in one.
This is what I am tested, that I’ve seen in the author’s github:
automation:
- alias: Anniversary Automation
trigger:
- platform: state
entity_id:
- sensor.anniversary_first_sensor
- sensor.anniversary_second_sensor
- sensor.anniversary_third_sensor
to: '1'
action:
- service: persistent_notification.create
data:
message: '{{trigger.to_state.attributes.friendly_name}} is tomorrow!'
But that returns the error:
Error: Error rendering data template: UndefinedError: 'dict object' has no attribute 'to_state'Error: Error rendering data template: UndefinedError: 'dict object' has no attribute 'to_state'
I’m using telegram notify service but I imagine is doesn’t matter.
I search many threads, but it’s no working any of the solutions posted.
Any help would be really appreciated.
Thank you.