From 174044ee9ce70b61f7a133d2358060218f1cb920 Mon Sep 17 00:00:00 2001 From: "Antti K. Koskela" Date: Fri, 22 Oct 2021 22:44:57 +0300 Subject: [PATCH] Improve documentation for history-graph #19893 (#19895) Co-authored-by: Franck Nijhof --- source/_lovelace/history-graph.markdown | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/source/_lovelace/history-graph.markdown b/source/_lovelace/history-graph.markdown index d77a4dd437f..7ca5ec6a2b3 100644 --- a/source/_lovelace/history-graph.markdown +++ b/source/_lovelace/history-graph.markdown @@ -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" +```