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.
|
||||
|
||||
#### Example service payload
|
||||
#### Example service call
|
||||
|
||||
```json
|
||||
{
|
||||
"message": "A message from Home Assistant",
|
||||
"target": [
|
||||
"1234567890",
|
||||
"0987654321"
|
||||
],
|
||||
"data": {
|
||||
"images": [
|
||||
"/tmp/garage_cam.jpg"
|
||||
]
|
||||
}
|
||||
}
|
||||
```yaml
|
||||
- service: notify.discord
|
||||
data:
|
||||
message from Home Assistant",
|
||||
target: "1234567890", "0987654321"
|
||||
data:
|
||||
images: "/tmp/garage_cam"
|
||||
```
|
||||
|
||||
### Notes
|
||||
|
Loading…
x
Reference in New Issue
Block a user