Add location

This commit is contained in:
Fabian Affolter 2016-07-29 18:48:11 +02:00
parent f17e4269f8
commit 8b19021f08
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336

View File

@ -69,11 +69,12 @@ To use notifications, please see the [getting started with automation page](/get
### {% linkable_title Photo support %} ### {% linkable_title Photo support %}
```yaml ```yaml
...
action: action:
service: notify.NOTIFIER_NAME service: notify.NOTIFIER_NAME
data: data:
title: test notify title: Send an images
message: That's a exemple message: That's a example that sends an image.
data: data:
photo: photo:
- url: http://192.168.1.28/camera.jpg - url: http://192.168.1.28/camera.jpg
@ -90,3 +91,23 @@ action:
- **username** (*Optional*): Username for an URL which require HTTP basic authentication. - **username** (*Optional*): Username for an URL which require HTTP basic authentication.
- **password** (*Optional*): Username for an URL which require HTTP basic authentication. - **password** (*Optional*): Username for an URL which require HTTP basic authentication.
### {% linkable_title Location support %}
```yaml
...
action:
service: notify.NOTIFIER_NAME
data:
title: Send location
message: Location updated.
data:
location:
latitude: 32.87336
longitude: 117.22743
```
- **location** (*Required*): For local or remote path to an image.
- **latitude** (*Required*): The latitude to send.
- **longitude** (*Required*): The longitude to send.