Remove misleading examples that are integration specific (#15929)

This commit is contained in:
Daniel Shokouhi 2020-12-21 15:08:24 -08:00 committed by GitHub
parent cd2711d1b6
commit ed11b223c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
```