From b5e746072d3fba3978e8476966d2af35ab3f783f Mon Sep 17 00:00:00 2001 From: Jonas Skoogh Date: Tue, 15 Jan 2019 21:54:37 +0100 Subject: [PATCH] Added example to notify-group platform (#7889) * Added example to notify-group platform * Removed {% raw %}-tags * :pencil2: Tweak * :pencil2: Tweak --- source/_components/notify.group.markdown | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/source/_components/notify.group.markdown b/source/_components/notify.group.markdown index 30464666bf6..467ec40282b 100644 --- a/source/_components/notify.group.markdown +++ b/source/_components/notify.group.markdown @@ -15,12 +15,12 @@ ha_qa_scale: internal The `group` notification platform allows you to combine multiple `notify` platforms into a single service. -To use this notification platform in your installation, add the following to your `configuration.yaml` file: +## {% linkable_title Configuration %} ```yaml # Example configuration.yaml entry notify: - - name: NOTIFIER_NAME + - name: NAME_OF_NOTIFIER_GROUP platform: group services: - service: html5 @@ -48,3 +48,14 @@ services: required: false type: string {% endconfiguration %} + +## {% linkable_title Example %} + +An example on how to use it in an automation: + +```yaml +action: + service: notify.NAME_OF_NOTIFIER_GROUP + data: + message: "The sun is {% if is_state('sun.sun', 'above_horizon') %}up{% else %}down{% endif %}!" +```