#clear persistent mobile app notifications on a specific phone only

1 messages · Page 1 of 1 (latest)

elfin bone
#

I'm trying to write an automation that clears a notification on the mobile_app when you press the "Acknowledge" button, but only on that phone. The notification goes to multiple phones, and each has to clear it separately.

#

The automation I came up with is

triggers:
  - event_type: mobile_app_notification_action
    event_data:
      action: ACKNOWLEDGE
    trigger: event
actions:
  - data:
      message: clear_notification
      data:
        tag: emt_dispatch
    action: notify.mobile_app{{ device_id }}