Skip to content

hd-energy-flow

Live preview

<hd-energy-flow grid="-450" solar="2600" battery="900" battery-charge="64" car="1250" car-charge="38"></hd-energy-flow>

Attributes and example

hd-energy-flow

Where power goes right now: solar, the grid, the home battery and the car around the house, with dots flowing along the lines (arrows on e-ink and with reduced motion). A part left empty is not drawn.

AttributeWhat it is
gridWatts from the grid; below zero is going back to it. Or a live capability of any device, followed: {{ settings.x.cap.measure_power }}.
solarWatts the solar panels make. Or a live capability of any device, followed: {{ settings.x.cap.measure_power }}.
batteryWatts into the home battery; below zero is the battery giving power. Or a live capability of any device, followed: {{ settings.x.cap.measure_power }}.
battery-chargeThe home battery’s charge, 0–100. Or a live capability of any device, followed: {{ settings.x.cap.measure_power }}.
carWatts going into the car. Or a live capability of any device, followed: {{ settings.x.cap.measure_power }}.
car-chargeThe car’s charge, 0–100. Or a live capability of any device, followed: {{ settings.x.cap.measure_power }}.
priceThe electricity price now, as text for the grid’s caption, e.g. {{ prices.now.text }}.
price-levelWhere the price now sits, e.g. {{ prices.now.level }}: the grid’s line takes its colour while power comes from it; below zero, power going back to the grid turns red.One of negative, cheap, normal, high.
<hd-energy-flow grid="-450" solar="2600" battery="900" battery-charge="64" car="1250" car-charge="38"></hd-energy-flow>

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-energy-flow {  --hd-accent: #2563eb;  max-width: 100%;}
Theme variables