From f17e4269f8f1b2860e74b1bc609bf21ced517010 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 29 Jul 2016 18:47:49 +0200 Subject: [PATCH] Add sample for image and location --- source/_components/notify.markdown | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/source/_components/notify.markdown b/source/_components/notify.markdown index 096d57afd60..9346e110916 100644 --- a/source/_components/notify.markdown +++ b/source/_components/notify.markdown @@ -57,3 +57,30 @@ A simple way to test if you have set up your notify platform correctly is to use "message": "The sun is {% raw %}{% if is_state('sun.sun', 'above_horizon') %}up{% else %}down{% endif %}{% endraw %}!" } ``` +For services which have support for sending images. + +```json +{ "message": "Test plugin", + "data": { + "photo": { + "url": "http://www.gbsun.de/gbpics/berge/berge106.jpg" + } + } +} +``` + +If the service support sending the location, the data from this sample can be used. + +```json +{ "message": "Test plugin", + "data": { + "location": { + "latitude": 7.3284, + "longitude": 46.38234 + } + } +} +``` + + +