Designing an Interactive 3D Floorplan Dashboard in Home Assistant with Visio, Multi-State Renders, and Picture-Elements Cards

A 3D isometric cutaway floorplan with glowing rooms and tappable lock and camera badges on a Home Assistant dashboard

It was late evening, and I was thumbing through eighty entity rows on my phone to answer one question. Was the front deadbolt locked? My dashboard knew the answer, but it buried it between a garage sensor and a lamp named after a firmware version. I checked two floors and a detached office shed, and I still was not sure about the living room lights.

That scroll was the bottleneck, because a list of names tells you what a device is called and not where it lives. So I dug out the Visio blueprints I drew when we remodeled, grabbed reference photos from every angle, and set out to build a dollhouse. The plan was an isometric 3D cutaway of each floor, with a daytime render and a night render sharing the exact same camera. Then I layered those images into Home Assistant with picture-elements cards, so every light, lock, and camera sits right where it really is.

The trick is alignment. If the lit render and the unlit render drift by a few pixels, the glow shimmers, so I kept the framing identical and faded the night image over the day image with an opacity filter tied to each room's light group. The first time it worked I grinned at my own screen: tap the living room and it glows, tap again and it goes dark, with lock badges on the doors and the doorbell camera popping up live. Seeing my own house glow on a screen made me feel a little like a kid with a dollhouse and a very good flashlight.

Then reality showed up in two ways. First, my tablet kept showing a ghost of the old daytime render, because browsers and the Companion App had cached the old images, and the fix was boring and perfect: version query strings on every asset path. Second, I tapped the master bedroom to turn off the ceiling light and my nightstand reading lamp went out mid-sentence, because the room group had swallowed every bulb including my accent strips, so I built a dedicated helper group that only touches what I intend.

These days I walk past the tablet by the door, and the whole house and shed show up in one glance. No scrolling, no guessing, and the deadbolt badge sits exactly where the deadbolt is. The same smart home I already had suddenly feels like a place instead of a spreadsheet. The steps below build the same dashboard, floor by floor.

Prerequisites

You need a working Home Assistant install with file access to its config folder, a floorplan or blueprint of your home (Visio, a PDF, or even a hand sketch with measurements), a handful of reference photos of each room, and an AI image or 3D modeling tool that can produce consistent isometric renders. A Git repository for your dashboard YAML is a good idea, because you will iterate on percentage coordinates many times.

  • Home Assistant 2024.x or newer with the File editor or Samba add-on enabled.
  • A blueprint plus room reference photos for each floor.
  • Lights, locks, and cameras already added as entities (for example light.living_room_lamp, lock.front_door, camera.doorbell_sub).
  • An AI modeling or render tool that accepts a reference image and a fixed camera angle.

Step 1: Model 16:9 3D Cutaway Renders from Floorplan Blueprints

Feed the blueprint and photos to your modeling tool and ask for an isometric cutaway "dollhouse" view at 16:9. Generate two renders per floor with the exact same camera: one with every room unlit for daytime and one with warm light glowing in each room for night. The one hard rule is pixel alignment. If the lit and unlit renders drift even a few pixels, your overlays will shimmer when they fade in, so reuse the same prompt, seed, and framing, and name files predictably.

main_floor_day.png
main_floor_night.png
upper_floor_day.png
upper_floor_night.png
shed_v5_clean_off.png
shed_v5_clean_on.png

Step 2: Organize Home Assistant Asset Storage and Cache-Busting

Copy the renders into the www folder of your Home Assistant config, which Home Assistant serves under /local/. Keep a tidy subfolder so paths stay short and predictable.

mkdir -p /path/to/homeassistant/config/www/floorplan
cp main_floor_*.png upper_floor_*.png /path/to/homeassistant/config/www/floorplan/

Browsers and the Companion App cache images aggressively, so a re-rendered background can show up stale on phones and wall tablets for days. Add a version query string every time you replace a file, for example /local/floorplan/main_floor_night.png?v=2, and bump the number whenever the image changes. Never reuse a filename for different content without bumping it.

Step 3: Construct the Multi-Layer Picture-Elements Card

A picture-elements card shows one base image and places elements on top using percentage coordinates, so the layout scales to any screen. Use the day render as the base and fade the night render over it with an opacity filter tied to a room light, so lit rooms glow while others stay dark.

type: picture-elements
image: /local/floorplan/main_floor_day.png?v=2
elements:
  - type: image
    entity: light.floorplan_living_room_lights
    image: /local/floorplan/main_floor_night.png?v=2
    state_filter:
      "on": opacity(1)
      "off": opacity(0)
    style:
      top: 50%
      left: 50%
      width: 100%
      pointer-events: none

The pointer-events line matters. Without it the full-size night layer swallows every tap meant for the elements beneath it.

Step 4: Configure Room Entity Groups and Exclude Personal Fixtures

Give each room a helper group and point the tap action at the group, not at individual bulbs. Build the group deliberately. If you group every light in a room, one tap will also flip your bedside reading lamp and accent strips, which is annoying at midnight.

light:
  - platform: group
    name: Floorplan Master Bedroom Lights
    unique_id: floorplan_master_bedroom_lights
    entities:
      - light.master_bedroom_ceiling
      - light.master_bedroom_dresser

Leave personal lamps out of the group on purpose, then add a tap zone for a single lamp if you want direct control of it.

  - type: state-icon
    entity: light.floorplan_master_bedroom_lights
    tap_action:
      action: toggle
    style:
      top: 38%
      left: 62%

Step 5: Overlay Interactive Deadbolts, RTSP Cameras, and Media Popups

Lock badges give you the best payoff. Place a state badge at the front door coordinates and let a tap toggle the lock, with a confirmation so a stray touch cannot unlock the house.

  - type: state-icon
    entity: lock.front_door
    tap_action:
      action: call-service
      service: lock.unlock
      target:
        entity_id: lock.front_door
      confirmation:
        text: Unlock the front door?
    style:
      top: 71%
      left: 44%

For cameras, point a tap action at a popup that shows the live sub stream, such as camera.doorbell_sub. Doors and doorbells sit close together in an entryway, so offset badges by a few percent and enlarge the touch target on mobile. Check the icon names too, since an invalid Material Design icon renders as a blank badge. If a custom icon pack complains, swap it for a valid one such as mdi:floor-plan.

For speakers, bubble card popups opened by a hash path like #speaker-living-room keep volume and playback controls one tap away. Test every overlay on a phone, a desktop browser, and the wall tablet before calling it done.

Replicate This Build with AI

If you use an AI coding agent such as Antigravity, Claude Code, Codex, or Gemini CLI, you can paste this prompt to recreate the same functional prototype on your own gear. Replace each placeholder in angle brackets with your own values before you run it.

You are a coding agent helping me build an interactive 3D floorplan dashboard in Home Assistant. Work in <ha-config-dir> and show me every file before you save it.

My inputs:
- Day and night render images for each floor, 16:9, saved in <render-dir> with the same camera angle (for example <floor>-day.png and <floor>-night.png)
- A list of entities: lights <light-entity-ids>, locks <lock-entity-ids>, cameras <camera-entity-ids>
- A helper group for each room that contains only the lights a room tap should control: <room-group-entity-ids>

Do the following:
1. Copy the renders into <ha-config-dir>/www/floorplan/ and reference them as /local/floorplan/<file>?v=<version> so a changed render busts the browser cache.
2. Write a Lovelace picture-elements card for each floor: the day render as the base image, the night render as an image element with an opacity filter bound to the room group state, tap targets positioned with percentage left and top coordinates, and lock badges for each lock entity.
3. Add camera popups that open the sub stream of each camera when its badge is tapped.
4. Keep personal fixtures such as bedside lamps and accent strips out of the room groups.
5. Give every badge touch padding large enough that two neighboring badges cannot be hit by accident on a phone.

Never hardcode tokens, camera credentials, or hostnames; use the existing Home Assistant entities only.

Verification: run the Home Assistant configuration check, reload Lovelace, tap a room on desktop and mobile widths, and confirm the room glows, the personal lamp does not toggle, and a changed version number loads the new render. Report your steps and results.

Hardware & Gear Used in This Guide

  • Home Assistant host: any always-on x86 mini PC or a virtual machine on a Proxmox node with at least 4 GB of RAM and local SSD storage.
  • Wall tablet: a 10 inch Android or Fire tablet running the Home Assistant Companion App in kiosk mode, so the floorplan is one glance from the door.
  • Smart locks and cameras: a Z-Wave or Wi-Fi deadbolt and an RTSP-capable camera with a low-resolution sub stream for fast popups.

Taking It to the Next Level

  • Add a shed or garage sub-page with its own day and night renders and a navigation chip on the main floor.
  • Add a furnace or thermostat popup so climate controls live on the same picture as the rooms they heat.
  • Drive the day and night layers automatically from the sun entity, so the floorplan matches the real light outside without a manual toggle.
  • Bump the cache-busting version number from a small script that hashes each render file, so you never have to remember to change it by hand.

What would you put on a floorplan of your own house first?

Later,
     SteveO