I’m using 2023.12.4
I created a Shopping List called ‘Shopping list’.
I created an automation that sends a notification to my phone when a new item is added to ‘Shopping list’.
This works well.
I created another list called ‘Household tasks’.
I created an automation that should send a notification to my phone when a new item is added to ‘Household tasks’.
This does not work.
This is the yaml that works
alias: Notify on new shopping list item
trigger:
- platform: event
event_type: shopping_list_updated
event_data:
action: add
action:
- service: notify.mobile_app_rix_iphone1
data:
message: "{{ trigger.event.data.item.name }} has been added to the shopping list"
data:
clickAction: /shopping-list
url: /shopping-list
This is the yaml that does not work. It looks the same to me.
alias: Notify on new Household task
trigger:
- platform: event
event_type: household_tasks_updated
event_data:
action: add
action:
- service: notify.mobile_app_rix_iphone1
data:
message: "{{ trigger.event.data.item.name }} has been added to Household Tasks"
data:
clickAction: /household-tasks
url: /household-tasks
When I look at ‘Traces’ I find
Error: Error rendering data template: UndefinedError: ‘dict object’ has no attribute ‘event’
I have tried double-quotes arouind the ‘action’, ‘clickAction’ and ‘url’ variables.
UPDATE: When I look in ‘Integrations’ I see that ‘Shopping list’ is one Integration and ‘Household tasks’ is an entity in a different Integration called ‘Local To-do’
Can any of you clever people tell me what I am doing wrong?
Thanks