mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
Add notification with images example (#13943)
Co-authored-by: Franck Nijhof <frenck@frenck.dev>
This commit is contained in:
parent
5dd8aea9b0
commit
ed3cfd0621
@ -175,3 +175,18 @@ default_room:
|
||||
The target room has to be precreated, the room id can be obtained from the rooms settings dialog. Rooms by default have a canonical id of the form `"!<randomid>:homeserver.tld"`, but can also be allocated aliases like `"#roomname:homeserver.tld"`. Make sure to use quotes around the room id or alias to escape special characters (`!`, and `#`) in YAML. The notifying account may need to be invited to the room, depending on the individual rooms policies.
|
||||
|
||||
To use notifications, please see the [getting started with automation page](/getting-started/automation/).
|
||||
|
||||
### Images in notification
|
||||
|
||||
It is possible to send images with notifications. To do so, add a list of paths in the notification `data`.
|
||||
|
||||
```yaml
|
||||
# Example of notification with images
|
||||
action:
|
||||
service: notify.matrix_notify
|
||||
data:
|
||||
message: "Test with images"
|
||||
data:
|
||||
images:
|
||||
- /path/to/picture.jpg
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user