diff --git a/source/_components/notify.markdown b/source/_components/notify.markdown index d475db0cb2c..2cd525cb2b7 100644 --- a/source/_components/notify.markdown +++ b/source/_components/notify.markdown @@ -35,9 +35,17 @@ Once loaded, the `notify` platform will expose a service that can be called to s | `title` | yes | Title of the notification. Default is `Home Assistant`. | `target` | yes | Some platforms will allow specifying a recipient that will receive the notification. See your platform page if it is supported. -The notification component supports specifying [templates] for both the `message` and the `title`. This will allow you to use the current state of Home Assistant in your notifications. +The notification component supports specifying [templates](/topics/templating/) for both the `message` and the `title`. This will allow you to use the current state of Home Assistant in your notifications. -[templates]: /topics/templating/ +In an [action](https://home-assistant.io/components/automation/#actions) of your [automation setup](/components/automation/) it could look like this with a customized subject. + +```yaml +action: + service: notify.notify + data: + message: "Your message goes here" + title: "Custom subject" +``` ### {% linkable_title Test if it works %}