mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 05:46:52 +00:00
Document the new energy sankey chart (#37741)
This commit is contained in:
parent
cd08b1ce80
commit
fccce64391
@ -235,6 +235,28 @@ type: energy-devices-detail-graph
|
||||
max_devices: 5
|
||||
```
|
||||
|
||||
## Sankey energy graph
|
||||
|
||||
<p class='img'>
|
||||
<img src='/images/dashboards/energy/sankey.png' alt='Screenshot of the sankey energy graph card'>
|
||||
Screenshot of the sankey energy graph card.
|
||||
</p>
|
||||
|
||||
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.
|
||||
|
||||
### Examples
|
||||
|
||||
```yaml
|
||||
type: energy-sankey
|
||||
```
|
||||
|
||||
The following example orients the flow from top to bottom:
|
||||
|
||||
```yaml
|
||||
type: energy-sankey
|
||||
layout: vertical
|
||||
```
|
||||
|
||||
## Using Multiple Collections
|
||||
|
||||
By default, all energy cards are linked to any `energy-date-selection` card on the view, and all `energy-date-selection` cards are linked to the same period. To enable multiple different date selections on the same view, it is necessary to link them to different collections. This is done by adding the variable `collection_key` to the card YAML, and giving this a value of any custom string that begins with `energy_`. (strings that do not start with `energy_` will generate an error).
|
||||
|
BIN
source/images/dashboards/energy/sankey.png
Normal file
BIN
source/images/dashboards/energy/sankey.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 246 KiB |
Loading…
x
Reference in New Issue
Block a user