Header/Footer: Add graph (#12492)

This commit is contained in:
Zack Arnett 2020-03-23 09:53:28 -04:00 committed by GitHub
parent 69ef519392
commit 649dfeaaa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

View File

@ -76,3 +76,36 @@ entities:
description: Override the entity image. description: Override the entity image.
type: string type: string
{% endconfiguration %} {% endconfiguration %}
## Graph header & footer
Widget to show an entity in the sensor domain as a graph in the header or footer.
<p class='img'><img src='/images/lovelace/header-footer/graph.png' alt="Screenshot of an entities card with a graph footer.">
Screenshot of an entities card with a graph footer.
</p>
```yaml
footer:
type: graph
entity: sensor.outside_temperature
hours_to_show: 24
detail: 1
```
{% configuration header-footer %}
entity:
required: true
description: Entity id of `sensor` domain
type: string
detail:
required: false
description: Detail of the graph `1` or `2`, `1` equals one point/hour, `2` equals six points/hour
type: integer
default: 1
hours_to_show:
required: false
description: Hours to show in graph
type: integer
default: 24
{% endconfiguration %}