Hello,
I am not sure of this is the correct place for my question but it is regarding actionable notifications send to the mobile app so here I go.
What I want to try to achieve is to be able to get an actionable notification with multiple options to choose from and based on my choise a certain service is called or other action is taken.
The notification is not a probem and I can get multiple buttons.
But when in Actions I configure the action type to be “wait for trigger” and I define also a trigger id, it is not possible to select those trigger id’s when I come into the Action part where I first select choose and then I want to set a condition “Triggered by”. Home Assistan just says “No triggers have an ID set. You can set an ID using the trigger menu button.”
Below is the yaml code of a simple test automation which gives the error that it has no trigger id’s found.
description: ''
trigger:
- platform: sun
event: sunrise
offset: 0
condition: []
action:
- service: notify.mobile_app_s21_stef
data:
message: Test yes or no
data:
actions:
- action: 'YES'
title: 'Yes'
- action: 'NO'
title: 'No'
- wait_for_trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: 'YES'
id: 'Yes'
- platform: event
event_type: mobile_app_notification_action
event_data:
action: 'NO'
id: 'No'
timeout: '00:01:00'
continue_on_timeout: false
- choose:
- conditions:
- condition: trigger
id: ''
sequence: []
default: []
mode: single
type or paste code here