Hi all,
I have a problem with my automation. I keep getting the following error:
Error: Error rendering data template: UndefinedError: ‘dict object’ has no attribute ‘calendar_event’
My automation YAML looks like this:
id: '123'
alias: Water plants
description: ''
trigger:
- platform: calendar
event: start
offset: '0:0:0'
entity_id: calendar.my_calendar
condition: []
action:
- service: notify.mobile_app
data:
message: This is a {{ trigger.calendar_event.summary }}
data:
notification_icon: mdi:flower
mode: single
I already tried sending a notification without the {{ trigger.calendar_event.summary }} and it works without any problems.