From de62903539c7e0d05fb749f61bbab4aa114c5418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliv=C3=A9r=20Falvai?= Date: Wed, 25 Nov 2020 19:18:20 +0100 Subject: [PATCH] Add summary template example to 17track (#15754) --- source/_integrations/seventeentrack.markdown | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/source/_integrations/seventeentrack.markdown b/source/_integrations/seventeentrack.markdown index 1eabbfd3993..4e6b1d99188 100644 --- a/source/_integrations/seventeentrack.markdown +++ b/source/_integrations/seventeentrack.markdown @@ -50,3 +50,23 @@ show_delivered: type: boolean default: false {% endconfiguration %} + +## Examples + +### Lovelace summary card + +Use the following templated Markdown card to list all packages in transit along their status: + +{% raw %} +```yaml +type: markdown +title: Packages in transit +content: >- + {% for package in + states.sensor.seventeentrack_packages_in_transit.attributes.packages %} + + **{{ package.friendly_name }}:** {{ package.info_text }} + + {% endfor %} +``` +{% endraw %}