mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 13:56:53 +00:00
Header/Footer: Add graph (#12492)
This commit is contained in:
parent
69ef519392
commit
649dfeaaa7
BIN
source/images/lovelace/header-footer/graph.png
Normal file
BIN
source/images/lovelace/header-footer/graph.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.7 KiB |
@ -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 %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user