update service (#634)

This commit is contained in:
Pascal Vizeli 2016-07-13 09:54:44 +02:00 committed by Fabian Affolter
parent ee4b4b3dde
commit 465944ff8d
2 changed files with 26 additions and 0 deletions

View File

@ -34,6 +34,7 @@ Once loaded, the `notify` platform will expose a service that can be called to s
| `message` | no | Body of the notification.
| `title` | yes | Title of the notification. Default is `Home Assistant`.
| `target` | yes | Some platforms will allow specifying a recipient that will receive the notification. See your platform page if it is supported.
| `data` | yes | On platforms who have extended functionality. See your platform page if it is supported.
The notification component supports specifying [templates](/topics/templating/) for both the `message` and the `title`. This will allow you to use the current state of Home Assistant in your notifications.

View File

@ -66,3 +66,28 @@ Configuration variables:
- **chat_id** (*Required*: The chat ID of your user.
To use notifications, please see the [getting started with automation page](/getting-started/automation/).
### Photo support
```yaml
...
action:
service: notify.NOTIFIER_NAME
data:
title: test notify
message: That's a exemple
data:
photo:
- url: http://192.168.1.28/camera.jpg
username: admin
password: secrete
- file: /tmp/picture.jpg
caption: Picture Title xy
- url: http://somebla.ie/video.png
caption: I.e. for a Title
```
- **url** or **file** (*Required*): For local or remote path to a picture
- **caption** (*Optional*: Picture title
- **username** and **password** (*Optional*: For URL they require a basic auth