mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
Add location
This commit is contained in:
parent
f17e4269f8
commit
8b19021f08
@ -69,11 +69,12 @@ To use notifications, please see the [getting started with automation page](/get
|
||||
### {% linkable_title Photo support %}
|
||||
|
||||
```yaml
|
||||
...
|
||||
action:
|
||||
service: notify.NOTIFIER_NAME
|
||||
data:
|
||||
title: test notify
|
||||
message: That's a exemple
|
||||
title: Send an images
|
||||
message: That's a example that sends an image.
|
||||
data:
|
||||
photo:
|
||||
- url: http://192.168.1.28/camera.jpg
|
||||
@ -90,3 +91,23 @@ action:
|
||||
- **username** (*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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user