mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 16:27:19 +00:00
Add another notify example
This commit is contained in:
parent
39c5a7a528
commit
3a08243a5f
32
source/_cookbook/notify_if__new_ha_release.markdown
Normal file
32
source/_cookbook/notify_if__new_ha_release.markdown
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
---
|
||||||
|
layout: page
|
||||||
|
title: "Send notification if new Home Assistant release"
|
||||||
|
description: "Basic example of how to send a notification if a new Home Assistant release is available"
|
||||||
|
date: 2016-07-17 10:00
|
||||||
|
sidebar: true
|
||||||
|
comments: false
|
||||||
|
sharing: true
|
||||||
|
footer: true
|
||||||
|
ha_category: Automation Examples
|
||||||
|
---
|
||||||
|
|
||||||
|
The following example sends a notification via XMPP if a new Home Assistant release is available:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
notify:
|
||||||
|
- platform: xmpp
|
||||||
|
name: jabber
|
||||||
|
sender: sender@jabber.org
|
||||||
|
password: !secret xmpp_password
|
||||||
|
recipient: recipient@jabber.org
|
||||||
|
|
||||||
|
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.'
|
||||||
|
```
|
Loading…
x
Reference in New Issue
Block a user