Send Notification if New Home Assistant Release


The following example sends a notification via XMPP if a new Home Assistant release is available:

notify:
  - platform: xmpp
    name: jabber
    sender: [email protected]
    password: !secret xmpp_password
    recipient: [email protected]

automation:
  - alias: Update notifications
    trigger:
      - platform: state
        entity_id: updater.updater
    action:
      service: notify.jabber
      data:
        message: 'There is a new Home Assistant release available.'

You can use templates to include the release number of Home Assistant if you prefer. The following example sends a notification via Pushbullet with the Home Assistant version in the message.

notify:
  platform: pushbullet
  api_key: 'YOUR_KEY_HERE'
  name: pushbullet

automation:
  - alias: Update notifications
  trigger:
    - platform: state
      entity_id: updater.updater
  action:
    service: notify.pushbullet
    data: 
      title: 'New Home Assistant Release'
      target: 'YOUR_TARGET_HERE' #See Pushbullet component for usage
      message: "Home Assistant  {{ states.updater.updater.state }}  is now available."