From 9e696803e6d293c58d1d898932aa5307b86d35d1 Mon Sep 17 00:00:00 2001 From: kozoke Date: Thu, 6 Jan 2022 12:12:15 -0800 Subject: [PATCH] Adding a full automation service call example (#20921) Co-authored-by: Franck Nijhof --- source/_integrations/nfandroidtv.markdown | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/source/_integrations/nfandroidtv.markdown b/source/_integrations/nfandroidtv.markdown index 6b8448cbc52..c2b6d42c821 100644 --- a/source/_integrations/nfandroidtv.markdown +++ b/source/_integrations/nfandroidtv.markdown @@ -125,4 +125,24 @@ icon: auth: "digest" ``` +Example of an automation with an service call, full configuration: + +{% raw %} + +```yaml +service: notify.living_room_tv +data: + title: "Thanks for the water!" + message: "Nigel is {{ states('sensor.nigel_moisture') }}% moisture" + data: + duration: 4 + position: "bottom-left" + fontsize: "medium" + transparency: "80%" + color: "teal" + interrupt: 0 +``` + +{% endraw %} + Please note that `path` is validated against the `allowlist_external_dirs` in the `configuration.yaml`.