Get notified when Home Assistant has errors/can't start up

For those that don’t want the additional overhead of NodeRed, a simple “Push all Persistent Notifications to PushOver or Pushbullet” can be accomplished using native HA automation as follows:

- id: 'persistent_notifications_push'
  alias: HA Persistent Notifications to Pushover
  description: ''
  trigger:
  - event_data:
      domain: persistent_notification
      service: create
    event_type: call_service
    platform: event
  condition: []
  action:
  - data_template:
      data:
        priority: 0
        sound: pianobar
      message: '{{trigger.event.data.service_data.message}}'
      title: 'Persistent: {{trigger.event.data.service_data.title}}'
    service: notify.pushover_notifier

Important to remember to use data_template: rather than data: in the action, so that the trigger variables can be referenced. Guidance here: https://www.home-assistant.io/docs/automation/templating/

4 Likes