From 465944ff8d5efc70c5ea4cbd4f9507b06d89a648 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Wed, 13 Jul 2016 09:54:44 +0200 Subject: [PATCH] update service (#634) --- source/_components/notify.markdown | 1 + source/_components/notify.telegram.markdown | 25 +++++++++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/source/_components/notify.markdown b/source/_components/notify.markdown index 39ba50c756e..74e0afed95a 100644 --- a/source/_components/notify.markdown +++ b/source/_components/notify.markdown @@ -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. diff --git a/source/_components/notify.telegram.markdown b/source/_components/notify.telegram.markdown index e2f656f92dc..ee90fb0297a 100644 --- a/source/_components/notify.telegram.markdown +++ b/source/_components/notify.telegram.markdown @@ -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