Skip to content

Add Pushbullet and Home Assistant version to update notification #1100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions source/_cookbook/notify_if__new_ha_release.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,25 @@ automation:
data:
message: 'There is a new Home Assistant release available.'
```

You can use [templates](/topics/templating/) to include the release number of Home Assistant if you prefer. The following example sends a notification via [Pushbullet](/components/notify.pushbullet/) with the Home Assistant version in the message.

```yaml
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."
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs an empty line after for formatting to behave properly. With that exception this looks good!