I want to get the data from my wait_for_trigger
trigger but instead, it seems to get the data from the initial trigger that starts the automation because the last option returns Blabla {''platform'': None}'
. And in the trace I see the error:
Error: In ‘template’ condition: UndefinedError: ‘dict object’ has no attribute ‘event’
This is my automation:
alias: Test
description: ""
trigger:
- platform: tag
tag_id: a32206c5-bdfa-4c42-aa72-aa4a0b4f68e9
enabled: false
condition: []
action:
- action: input_number.set_value
data_template:
entity_id: input_number.spulmaschine_timer
value: "180"
- action: notify.smartphones
metadata: {}
data:
title: 💦 Spülmaschine Timer💦
message: Timer einstellen
data:
actions:
- action: 30_min
title: 30 Min
- action: 60_min
title: 60 Min
- action: 90_min
title: 90 Min
- wait_for_trigger:
- platform: event
event_type: mobile_app_notification_action
continue_on_timeout: false
- action: notify.smartphones
metadata: {}
data:
title: |
Test
message: Blabla {{ trigger }}
- choose:
- conditions:
- condition: template
value_template: "{{ trigger.event.data.action == '30_min' }}"
sequence:
- action: input_number.set_value
data:
entity_id: input_number.spulmaschine_timer
value: 30
- conditions:
- condition: template
value_template: "{{ trigger.event.data.action == '60_min' }}"
sequence:
- action: input_number.set_value
data:
entity_id: input_number.spulmaschine_timer
value: 60
- conditions:
- condition: template
value_template: "{{ trigger.event.data.action == '90_min' }}"
sequence:
- action: input_number.set_value
data:
entity_id: input_number.spulmaschine_timer
value: 90