Skip to content

hd-energy-house

Live preview

<hd-energy-house grid="-450" solar="2600" battery="900" battery-charge="64" preset="terraced"></hd-energy-house>

Attributes and example

hd-energy-house

The home as a picture of a house, with its energy pointed out on it: solar on the roof, the grid’s box, the house, the home battery and the car in the garage. A part left empty has no value. Other readings are its hd-house-value children. Values sit beside the house on a wide tile, above and below it on a tall one. The house is one of Tiledash’s (preset), or the owner’s own: its sides as hd-house-side children, which move with navigation and can turn by themselves (rotate); a value shows on the sides its spot is placed on. E-ink shows the first side only, the other sides’ values pointing at its house.

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 value takes its colour while power comes from it; below zero, power going back to the grid turns red.One of negative, cheap, normal, high.
presetWhich of Tiledash’s houses to show when there are no hd-house-side children.One of detached, terraced, semi-detached, bungalow, flat. Default detached.
navigationHow to move between several sides: swipe (nothing on the tile), dots, or tabs with the sides’ names. Dots and tabs swipe too.One of swipe, dots, tabs. Default dots.
rotateTurns to the next side every this many seconds, for a wall panel nobody touches; waits 30 s after a touch.
hideParts left off the house, by name and space apart: grid, solar, battery, car, home. They still count in what the house uses.
<hd-energy-house grid="-450" solar="2600" battery="900" battery-charge="64" preset="terraced"></hd-energy-house>

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.

--hd-appearance
`light`, `dark` or `paper`, for what colours alone can’t decide.

Style the host

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