mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 01:06:52 +00:00
Remove misleading examples that are integration specific (#15929)
This commit is contained in:
parent
cd2711d1b6
commit
ed11b223c9
@ -56,54 +56,3 @@ action:
|
||||
data:
|
||||
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": "https://raw.githubusercontent.com/home-assistant/home-assistant.io/current/source/images/default-social.png"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
The automation equivalent would be:
|
||||
|
||||
```yaml
|
||||
action:
|
||||
service: notify.notify
|
||||
data:
|
||||
message: "Test plugin"
|
||||
data:
|
||||
photo:
|
||||
url: "https://raw.githubusercontent.com/home-assistant/home-assistant.io/current/source/images/default-social.png"
|
||||
```
|
||||
|
||||
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
The automation equivalent would be:
|
||||
|
||||
```yaml
|
||||
action:
|
||||
service: notify.notify
|
||||
data:
|
||||
message: "Test plugin"
|
||||
data:
|
||||
location:
|
||||
latitude: 7.3284
|
||||
longitude: 46.38234
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user