Skip to content

hd-house-value

Live preview

<hd-energy-house grid="350" solar="1200" preset="detached">  <hd-house-value spot="upstairs" value="{{ cap.measure_temperature.value | round: 1 }}" unit="°C" label="Bedroom"></hd-house-value></hd-energy-house>

Attributes and example

hd-house-value

One reading pointed out on an hd-energy-house, written inside it; draws nothing itself. A house setting’s values (settings.house.values, what the house shows) or a values setting with the house’s places fill them with a {% for %}: <hd-house-value spot="{{ v.spot }}" label="{{ v.label }}" value="{{ v.text }}" unit="{{ v.unit }}">.

AttributeWhat it is
spotrequiredWhere on the house it points: upstairs, home, heat-pump, meter, garage, charger, garden, solar, battery, car, grid, or a spot of the owner’s own house (own-pool).
valueWhat it reads, as text, e.g. {{ v.text }}.
unitShown after the value, e.g. °C.
labelIts caption under the value.
<hd-energy-house grid="350" solar="1200" preset="detached">  <hd-house-value spot="upstairs" value="{{ cap.measure_temperature.value | round: 1 }}" unit="°C" label="Bedroom"></hd-house-value></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.

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

Style the host

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