hd-floorplan
on changeOne level of one of your floor plans (drawn under Floor plans), from above and fitted to the tile, in the theme’s colours (white floors and black walls on Paper). room focuses on one room: it fills the tile and the rooms around it fade. An hd-room inside gives a room its values, shown under its name where the room has space; a small tile shows the shapes only. Touching a room does what the plan’s room panel set (tap, hold, double tap: a dashboard, a flow, a mood, a variable); a tap also passes the room’s id to data-hd-on-change. Says so when the plan is loading, paused, gone or its level is. Nothing moves by itself. look="picture" shows a picture of the level made in the floor planner instead (F20). Parts: ::part(room), ::part(wall), ::part(label), ::part(notice), ::part(picture), ::part(ring), ::part(switch).
| Attribute | What it is |
|---|---|
planrequired | The plan’s id, e.g. {{ settings.plan.id }} (a floor plan setting). |
levelrequired | The level’s id, e.g. {{ settings.plan.level.id }}. |
room | A room to focus on, e.g. {{ settings.plan.room.id }}; empty for the whole level. |
fade-surroundings | When focused on one room, fade the surroundings. false keeps them at full strength; only the chosen room shows labels either way. Raised views keep solid walls opaque.Default true. |
fade-level | How strongly surroundings fade when focusing on one room, from 0 (full strength) to 100 (fully faded). Only applies while fade-surroundings is true.Default 92. |
turn | Turns the plan clockwise, in degrees; words stay upright.One of 0, 90, 180, 270. Default 0. |
furniture | false leaves the furniture drawn in the plan out.Default true. |
action-source | Use plan defaults (plan) or existing tile device gestures (legacy). Object overrides apply to both.One of plan, legacy. Default legacy. |
device-tap | What a tap on a device does: switch it (lights, plugs, a TV; a cover opens or closes, a player plays or pauses; locks and sensors open their popup), its quick actions card, or its popup.One of switch, actions, popup. Default switch. |
device-hold | What holding a device does: its quick actions card, its popup, or nothing.One of actions, popup, none. Default actions. |
device-double | What a double tap on a device does: its popup, its quick actions card, or nothing. While it does something, a single tap waits a moment for a second one.One of popup, actions, none. Default popup. |
glow | How lights that are on glow: a pool around each light that walls stop and that adds up where pools meet. Off on Paper.One of off, soft, bright. Default soft. |
view | 25d shows the level raised, from a fixed angle above (turned by turn); 3d as a dollhouse to turn and zoom (Pro). Both need WebGL 2: low-power screens and Paper show 2D.One of 2d, 25d, 3d. Default 2d. |
angle | In 25d, the angle the level is seen from: isometric (35°, the three axes shortened alike), game (30°, the 2:1 look of pixel-art games) or steep (50°, more from above).One of isometric, game, steep. Default isometric. |
tint | Tints the rooms on a fixed comfort scale by their temperature or humidity (each hd-room’s temperature or humidity).One of temperature, humidity. |
tint-day | Adds a slider over the last day, with a play button, from each hd-room’s sensor history.Default false. |
look | picture starts on a picture of the level made in the floor planner (for its view, of the whole level or the room), with a button to switch to the live plan and back; live without one. Paper stays live.One of live, picture. Default live. |
picture | With look="picture": the id of the picture to show, e.g. {{ settings.picture }} (a floorplanPicture setting); left out, the one chosen in the floor planner, else the one made in the tile's view. |
follow | For a picture made by day and night: theme shows night on dark themes, sun from sunset to sunrise (sun-up).One of theme, sun. Default theme. |
sun-up | With follow="sun": whether the sun is up, e.g. {{ weather.sun.up }}.Default false. |
rings | On a picture, rings where a tap reaches a device: flash shows them for a moment after a tap beside one.One of flash, shown, hidden. Default flash. |
<hd-floorplan plan="{{ settings.plan.id }}" level="{{ settings.plan.level.id }}" room="{{ settings.plan.room.id }}"> {% for room in settings.plan.rooms %}<hd-room room="{{ room.id }}" value="{{ room.temperature.text }}°"></hd-room>{% endfor %}</hd-floorplan>