Hey
so Im trying to create my first actionable notification but just cant get the last part to work.
I followed the documentation provided here and after some time I could get the notification part as well as the event action from my iPhone to work.
But Im missing something regarding the choose at the end. No matter what I try HA always declares the condition as false:
I couldnt find any different examples for this “answer” event except the official one above.
Any help is appreciated. Here is my yml:
- service: notify.mobile_app_cedric_iphone_13
data:
message: Möchtest du die Tore öffnen?
data:
actions:
- action: action_yes
title: Ja
icon: sfsymbols:X
- action: action_no
title: Nein
icon: sfsymbols:X
- wait_for_trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: action_yes
- platform: event
event_type: mobile_app_notification_action
event_data:
action: action_no
- choose:
- conditions:
- condition: template
value_template: wait.trigger.event.data.action == action_no
sequence: []
- conditions:
- condition: template
value_template: wait.trigger.event.data.action == action_yes
sequence:
- service: cover.open_cover
metadata: {}
data: {}
target:
device_id: 508e09e2f4f13af668141347c3c1c000
Thank you