I am trying to make some actionable notifications for my system. I was working on a more complex one for when I leave how to offer arming the alarm. I can get it to notify me, but after activating the trigger, it does nothing… I cannot even get this one to send a same notification back. I have tested everything successfully the actionable alert, and the resulting test… separately but responding in the app (on the phone) fails to execute the call service. I can see the trigger in the developer window when I select the button…
What’s missing? Any ideas?
YAML and the event monitor are below…
alias: zzActionable Notification - test
description: This is an actionable notification test message
trigger: []
condition:
- condition: not
conditions:
- condition: zone
entity_id: person.sue
zone: zone.home
- condition: or
conditions:
- condition: not
conditions:
- condition: zone
entity_id: person.brian
zone: zone.near_home
action:
- service: notify.mobile_app_twidgets_iphone_12
data:
message: This is an actionable test message
title: Test action
data:
actions:
- action: TEST_NOTIFICATION
title: Send Test notification
authenticationRequired: false
destructive: true
- wait_for_trigger:
- platform: event
event_type: ios.notification_action_fired
event_data:
actionName: TEST_NOTIFICATION
context: {}
timeout: '60'
continue_on_timeout: true
- service: notify.mobile_app_twidgets_iphone_12
data:
message: This is a simple test message
title: For testing...
mode: single
Listen to events
Listening to
ios.notification_action_fired
Event 0 fired 8:05 AM:
{
"event_type": "ios.notification_action_fired",
"data": {
"actionName": "TEST_NOTIFICATION",
"categoryName": "DYNAMIC",
"sourceDeviceID": "twidgets_iphone",
"sourceDeviceName": "Twidgets iPhone 12",
"sourceDevicePermanentID": "ED3EA803-913A-4728-BA51-1282BC8A3687"
},
"origin": "REMOTE",
"time_fired": "2022-04-19T12:05:50.601089+00:00",
"context": {
"id": "24a4ef3b1a99254abf559dc2cb98acb0",
"parent_id": null,
"user_id": "89ccb3e96b3c445e9e2d31c5b0816dad"
}
}