Improve documentation for history-graph #19893 (#19895)

Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
Antti K. Koskela 2021-10-22 22:44:57 +03:00 committed by GitHub
parent 704ace2254
commit 174044ee9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,7 @@ name:
type: string
{% endconfiguration %}
## Example
## Examples
Alternatively, the card can be configured using YAML:
@ -71,3 +71,17 @@ entities:
- entity: media_player.lounge_room
name: Main player
```
Or with longer time frame, and multiple entities (as long as they share the same unit_of_measurement) in one graph:
```yaml
type: history-graph
title: "Temperatures in the last 48 hours"
hours_to_show: 48
entities:
- sensor.outside_temperature
- entity: sensor.lounge_temperature
name: "Lounge"
- entity: sensor.attic_temperature
name: "Attic"
```