Skip to content

hd-flow

Live preview

<hd-sankey unit="W" decimals="0">  <hd-flow from="Solar" to="Home" value="1800" color="lit"></hd-flow>  <hd-flow from="Solar" to="Battery" value="600"></hd-flow>  <hd-flow from="Grid" to="Home" value="350"></hd-flow></hd-sankey>

Attributes and example

hd-flow

One flow of an hd-sankey, written inside it (often in a {% for %}); draws nothing itself. A flow of 0 or less is left out.

AttributeWhat it is
fromrequiredWhere it comes from, e.g. Solar.
torequiredWhere it goes, e.g. Heat pump.
valuerequiredHow much. Or a live capability of any device, followed: {{ settings.x.cap.measure_power }}.
colorA theme colour name or #rrggbb for the node it comes from.
<hd-sankey unit="W" decimals="0">  <hd-flow from="Solar" to="Home" value="1800" color="lit"></hd-flow>  <hd-flow from="Solar" to="Battery" value="600"></hd-flow>  <hd-flow from="Grid" to="Home" value="350"></hd-flow></hd-sankey>

Styling

Set CSS variables on the component element. Its internal elements live in Shadow DOM; only the exposed named parts can be styled with ::part.

No component-specific CSS variables are exposed. Use the host element’s sizing and the documented theme variables.

Style the host

hd-flow {  --hd-accent: #2563eb;  max-width: 100%;}
Theme variables