Event for Dashboard Notifications?

Hey all,

I’m using the Alexa Media Player Integration and once in a while I will need to reauthenticate to keep it working. When this happens I get a Notification in the Home Assistant Dashboard under the Notifications tab.

I was wondering if there is a way I can tap into these notifications and trigger an event that will (push) notify me so that I know this needs to happen and don’t discover it when I try to use the integration.

Any help is much appreciated!

1 Like

You can listen for the persistent notification and forward it to your notify service, something like this:

    platform: event
    event_type: call_service
      domain: persistent_notification
      service: create
  service: notify.your_notify_service
    title: "{{ trigger.event.data.service_data.title }}"
    message: "{{ trigger.event.data.service_data.message }}"

You could then also add a condition to only forward if title/message is equal to something in order to only forward the Alexa notifications.

Awesome, will try it out thanks!
EDIT: Thanks this is what I was looking for. Needed to listen to both “persistent_notification” domain and “notify” domain as it can have a “persistent_notification” service as well.

1 Like