mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
Converting JSON to YAML (#9927)
Given that people use YAML, another old JSON approach converted to YAML.
This commit is contained in:
parent
ba5958c5ab
commit
e90d506a2c
@ -66,21 +66,15 @@ Right click channel name and copy the channel ID (**Copy ID**).
|
|||||||
|
|
||||||
This channel ID has to be used as the target when calling the notification service. Multiple channel IDs can be specified, across multiple servers.
|
This channel ID has to be used as the target when calling the notification service. Multiple channel IDs can be specified, across multiple servers.
|
||||||
|
|
||||||
#### Example service payload
|
#### Example service call
|
||||||
|
|
||||||
```json
|
```yaml
|
||||||
{
|
- service: notify.discord
|
||||||
"message": "A message from Home Assistant",
|
data:
|
||||||
"target": [
|
message from Home Assistant",
|
||||||
"1234567890",
|
target: "1234567890", "0987654321"
|
||||||
"0987654321"
|
data:
|
||||||
],
|
images: "/tmp/garage_cam"
|
||||||
"data": {
|
|
||||||
"images": [
|
|
||||||
"/tmp/garage_cam.jpg"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Notes
|
### Notes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user