I had an actionable notification that was working before, but no longer is.
Here is the notification configuration:
{
"title": "Unlock the door?",
"message": "",
"data": {
"notification_icon": "mdi:door-closed-lock",
"timeout": "1200",
"actions": [
{
"action": "NOTIFICATION_UNLOCK_DOOR",
"title": "YES"
},
{
"action": "NOTHING",
"title": "NO"
}
]
}
}
I then have a node listening for mobile notification events and sends this:
$outputData("eventData").event_type
to a switch that unlocks my door if the value is NOTIFICATION_UNLOCK_DOOR
However, when I listen for events, it doesn’t seem to send me what I pressed, just the entire config of the notification:
event_type: mobile_app_notification_action
data:
action_2_title: "NO"
notification_icon: mdi:door-closed-lock
timeout: "1200"
title: Unlock the door?
webhook_id: 6a7ea574435993b3e2c26b89de1fc29a56174ecf65ba154cc7b8dd0dd40af66a
action_1_title: "YES"
action_1_key: NOTIFICATION_UNLOCK_DOOR
action_2_key: NOTHING
server_id: "1"
action: NOTIFICATION_UNLOCK_DOOR
device_id: 732b558da8c63dcd
origin: REMOTE
time_fired: "2025-04-03T00:46:42.374657+00:00"
context:
id: 01JQWHTKP6XQ2JMAN0S19DH9VH
parent_id: null
user_id: c22703be22144b72978e9da1a54f9aec
If I press YES or NO, the event is the same (except for the context id and time)
How am I supposed to tell which action was pressed?



