From 084e40b5d67ee5ef5347a7cf05d1693ee7bb0609 Mon Sep 17 00:00:00 2001 From: Petar Petrov Date: Mon, 28 Apr 2025 12:11:18 +0000 Subject: [PATCH 1/2] Grouping options for hui-energy-sankey-card --- source/_dashboards/energy.markdown | 31 +++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/source/_dashboards/energy.markdown b/source/_dashboards/energy.markdown index 411d6611fc28..10c1a1c5527a 100644 --- a/source/_dashboards/energy.markdown +++ b/source/_dashboards/energy.markdown @@ -12,7 +12,7 @@ related: This is a list of all the cards used in the energy dashboard. You can also place them anywhere you want in your dashboard. -Currently, there are no configuration options available for these cards. You can configure them on the {% my config_energy title="energy configuration page" %}. +You can configure them on the {% my config_energy title="energy configuration page" %}. ## Energy date picker @@ -244,6 +244,35 @@ max_devices: 5 The sankey energy graph shows the flow of energy in your home. It starts with sources and flows into the various consumers. Devices are grouped into floors and areas if these are configured. +### YAML configuration + +The following YAML options are available + +{% configuration %} +type: + required: true + description: "`energy-sankey`" + type: string +title: + required: false + description: The title of the card. + type: string +layout: + required: false + description: "`vertical` or `horizontal`. Determines the orientation (flow direction) of the card" + type: string +group_by_area: + required: false + description: Wether to group the devices by area + type: boolean + default: true +group_by_floor: + required: false + description: Wether to group the devices by floor + type: boolean + default: true +{% endconfiguration %} + ### Examples ```yaml From c97ab6ba9abf2508f100d93311e0c1a6add2e274 Mon Sep 17 00:00:00 2001 From: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> Date: Mon, 28 Apr 2025 16:03:32 +0200 Subject: [PATCH 2/2] tiny tweaks --- source/_dashboards/energy.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_dashboards/energy.markdown b/source/_dashboards/energy.markdown index 10c1a1c5527a..0d9219c8a77f 100644 --- a/source/_dashboards/energy.markdown +++ b/source/_dashboards/energy.markdown @@ -263,12 +263,12 @@ layout: type: string group_by_area: required: false - description: Wether to group the devices by area + description: Whether to group the devices by area type: boolean default: true group_by_floor: required: false - description: Wether to group the devices by floor + description: Whether to group the devices by floor type: boolean default: true {% endconfiguration %}