Add summary template example to 17track (#15754)

This commit is contained in:
Olivér Falvai 2020-11-25 19:18:20 +01:00 committed by GitHub
parent cd064a8353
commit de62903539
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 %}