mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 23:06:58 +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 %}
|
### {% 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.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user