mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
update service (#634)
This commit is contained in:
parent
ee4b4b3dde
commit
465944ff8d
@ -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.
|
| `message` | no | Body of the notification.
|
||||||
| `title` | yes | Title of the notification. Default is `Home Assistant`.
|
| `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.
|
| `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.
|
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.
|
||||||
|
|
||||||
|
@ -66,3 +66,28 @@ Configuration variables:
|
|||||||
- **chat_id** (*Required*: The chat ID of your user.
|
- **chat_id** (*Required*: The chat ID of your user.
|
||||||
|
|
||||||
To use notifications, please see the [getting started with automation page](/getting-started/automation/).
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user