Skip to content

hd-room

Attributes and example

hd-room

What one room of an hd-floorplan says, written inside it (often in a {% for room in settings.plan.rooms %}); draws nothing itself.

AttributeWhat it is
roomrequiredThe room’s id, e.g. {{ room.id }}.
valueShown large under the room’s name, e.g. {{ room.temperature.text }}°.
noteShown beside the value, quieter, e.g. {{ room.humidity.text }}%.
temperatureIts temperature now, for the plan’s heat map (tint), e.g. {{ room.temperature.value }}.
humidityIts humidity now, for the heat map, e.g. {{ room.humidity.value }}.
sensorThe device whose last day the heat map reads for its slider (tint-day).
<hd-floorplan plan="{{ settings.plan.id }}">  {% for room in settings.plan.rooms %}    <hd-room room="{{ room.id }}" value="{{ room.temperature.text }}°" note="{{ room.humidity.text }}%" temperature="{{ room.temperature.value }}"></hd-room>  {% endfor %}</hd-floorplan>

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