Sankey options (#38784)

Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
Petar Petrov 2025-04-30 11:01:01 +03:00 committed by GitHub
parent cb9a3613c6
commit 80c4d0a021
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: Whether to group the devices by area
type: boolean
default: true
group_by_floor:
required: false
description: Whether to group the devices by floor
type: boolean
default: true
{% endconfiguration %}
### Examples
```yaml