mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Add Pushbullet and Home Assistant version to update notification (#1100)
* Add Pushbullet and Home Assistant version to update notification Adds an example configuration for someone who wants to be alerted when a new Home Assistant is released, and they would like the notification to include the new Home Assistant version in the message. * Add extra line after code example
This commit is contained in:
parent
95e6ea9f85
commit
967ace40e7
@ -30,3 +30,25 @@ automation:
|
|||||||
data:
|
data:
|
||||||
message: 'There is a new Home Assistant release available.'
|
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."
|
||||||
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user