Create your own dashboard - easily!

I wanted to test something before I move to a new house - how easy is it to use an agent to create a custom, updatable, dashboard?

The result from one day’s work: Demo

And it works! I now get a visit by Santa on Christmas eve. The Easter Bunny will hide eggs for Easter. For our national day, it’ll flag. It also checks how much snow is in my area and customizes based on that, it’ll display sunrise/sunset based on my location etc etc.

What I did (mainly):

  • Install Blender and set up the MCP server
  • Ask Claude to create my house using pictures of my furniture and the pictures from the sales ad, along with measurements from the ad
  • Ask antigravity to pull images and create the graphics
  • Connect with my Homey

If you want to try, start with this prompt (I asked antigravity to create a prompt to recreate it):

Recreate This 3D Smart Home Dashboard – Master Prompt Guide

This document contains ready-to-use prompts to help you build your own interactive 3D Smart Home Floorplan Dashboard (for Homey Pro, or easily adapted to Home Assistant) using AI coding assistants such as Antigravity, Claude, ChatGPT, or Cursor.

Building a realistic 3D floorplan dashboard works best as a two-stage process:

  1. Stage 1 – Create the 3D House Model in Blender from your architectural drawings, floorplans, photos, and measurements.
  2. Stage 2 – Build the Interactive 3D Dashboard & Automated Blender Export Pipeline on top of that .blend model.

Tip: Customize all [BRACKETED PLACEHOLDERS] below with your own home’s details, coordinates, rooms, and smart-home platform before pasting a prompt into your AI assistant.


Stage 1: Build the 3D House Model in Blender

Before writing any web dashboard code, create an accurate, well-organized .blend file of your house.

What to Prepare First

Gather as many of these references as you have and attach them to your AI session:

  • Architectural floorplan drawings (PDF/PNG/JPG) with wall measurements and room labels.
  • Exterior elevation drawings or photos of the front, sides, roof pitch, terrace/balcony, driveway, and garage.
  • Key dimensions: footprint width × depth (meters), ceiling height per floor (e.g. 2.40 m), wall thickness, roof ridge height, and approximate window/door dimensions.
  • Major furniture & fixed fixtures per room (beds, sofas, dining table, kitchen island/counters, bathroom vanities, stairs) so top-down room views feel immediately recognizable.
  • Existing & planned light fixtures (ceiling lights, recessed spots, bedside lamps, floor lamps, wall sconces, LED strips, exterior facade/garage lights).

Prompt 1 – Generate Your .blend Model (Paste into Antigravity / Claude / ChatGPT)

I want to build a clean, dimension-accurate 3D architectural model of my home in Blender (saved as `[MyHouse.blend]`) that will be used to render an interactive 3D smart-home floorplan dashboard.

### Reference Materials Provided
- Attached: [floorplan drawings / exterior photos / measurements]
- Location / orientation: [e.g., Front facade faces South (-Y), house spans X: 0..11 m, Y: 0..9.1 m]
- Floors: [e.g., 1st floor (Z = 0.0..2.7 m), 2nd floor (Z = 2.7..5.4 m), pitched roof + detached garage]
- Rooms:
  - 1st floor: [Living Room, Dining Room, Kitchen, Hallway, Entryway, Office, Bathroom 1, Laundry, Storage]
  - 2nd floor: [Loft Living, Master Bedroom, Bathroom 2, Hallway 2, Bedroom 2, Bedroom 3, Bedroom 4]
  - Exterior: [Terrace, Balcony, Garage + Garage Door, Driveway, Lawn, Hedges]

### Strict Blender Modeling & Organization Rules (Crucial for Dashboard Export!)
Use Blender Python (`bpy`) or Blender MCP to build the model cleanly with these exact conventions:

1. **Real-world metric scale (1 Blender unit = 1 meter)** with floor 1 at `Z = 0.0` and floor 2 at `Z = [2.7]`.
2. **Clean Collection Hierarchy** so a headless export script can toggle floors, roofs, and lights independently:
   - `1st Floor` (walls, floors, windows, doors, furniture, stairs)
   - `2nd Floor` (walls, floors, windows, doors, furniture)
   - `Roof` (roof mesh(es), chimney, dormers)
   - `Terrace and Balcony`
   - `Plot / Exterior` (grass, driveway, hedges, fences)
   - `Garage` (walls, roof, and a separate toggleable `Garage Door` mesh object so we can render an "open garage" overlay)
   - `Lights 1st Floor` → containing one sub-collection per room: `Lights – <Room Name>`
   - `Lights 2nd Floor` → containing one sub-collection per room: `Lights – <Room Name>`
   - `Lights – Exterior` (terrace wall sconces, garage sconces, etc.)
3. **Room Lights & Individual Small Lamps:**
   - Place every room's ceiling lights (`AREA` or `POINT`) AND individual lamps (e.g. `Bedside L light`, `Bedside R light`, `Floor lamp`) inside that room's `Lights – <Room Name>` collection.
   - Give every lamp a clear, descriptive object name (matching or closely resembling its smart-home device name) and realistic warm white color (~2700K–3000K).
   - For lamps with glowing shades, glass diffusers, or bathroom LED strips, make each emissive mesh a separate object with its own unique material (not shared across multiple lamps) so individual lamps can be turned on/off independently during rendering.
4. **Render Engine & Materials:**
   - Configure `BLENDER_EEVEE` with `AgX` (or `Filmic`) color management and clean Principled BSDF materials (`Grass`, `Roof Tiles`, `Decking`, `Hedge`, `Wood Floor`, `Interior Walls`, etc.) with descriptive material names so seasonal tinting/frost/snow scripts can modify them non-destructively in memory.
   - Ensure interior rooms have cutaway-friendly walls (ceilings hidden or separate) so elevated 3/4 isometric cameras and orthographic top-down room cameras have an unobstructed view inside every room.

Please build the model step-by-step:
1. First verify all room coordinates and outer dimensions against my drawings/photos.
2. Generate the structural shell (floors, walls, windows, doors, stairs, roof, exterior, garage).
3. Add simplified, realistic furniture per room.
4. Add all `Lights – <Room Name>` collections, light objects, and emissive fixtures.
5. Render quick viewport previews of 1st floor, 2nd floor, and exterior so I can inspect and request adjustments before we start building the web dashboard.

Stage 2: Build the Interactive 3D Smart Home Dashboard

Once your .blend model looks right, open a new project folder and use the master prompt below to build the complete web dashboard, headless Blender render pipeline, smart-home integration, living weather/seasonal engine, kiosk mode, and demo recorder.

Prompt 2 – Build the Full Dashboard Application (Paste into Antigravity / Claude / ChatGPT)

I have a completed 3D Blender model of my home at `[PATH/TO/MyHouse.blend]`.
Build a modern, ultra-responsive, interactive **3D Smart Home Floorplan Dashboard** for **[Homey Pro / Home Assistant]** on my local network.

### 1. Core Technical Architecture
- **Zero build step:** Pure **HTML5, CSS3, and Vanilla ES6+ JavaScript** (no bundler, no `node_modules` required in production) so the app can be deployed directly to a static web server such as **Synology NAS Web Station**.
- **Local Dev Server (`scripts/dev-server.mjs`):** Lightweight zero-dependency Node.js HTTP server for local development & testing, providing:
  - Static file hosting
  - Local reverse proxy to my smart-home hub (`/homey-proxy/*`) to avoid browser CORS issues
  - Local proxy endpoint for weather/snow-depth APIs that lack CORS headers
  - Endpoint to save generated `config.js` from the visual setup page
- **Secrets Safety:** Keep `config.example.js` committed in Git, and put `config.js` (containing local IP and API Bearer token) in `.gitignore`. Never expose or commit tokens.
- **Full Mock / Demo Mode + Dev Simulator (`D` shortcut or triple-click weather badge):**
  - Must run 100% offline/locally with realistic mock devices without ever touching real smart-home hardware.
  - Include a floating Dev Simulator panel to override **Season** (`auto`, `summer`, `autumn`, `frost`, `winter`), **Weather** (`clear`, `cloudy`, `rain`, `snow`), **Time of Day** (`day`, `dusk`, `night`), **Holiday** (`auto`, `none`, `easter`, `national_day`, `december`, `christmas_eve`), **Aurora Borealis** (`auto`, `on`, `off`), and trigger **External Wall Switch** / **Flying Santa** demos.

### 2. Automated, Non-Destructive Headless Blender Export Pipeline
Create `scripts/export-from-blender.py` + a wrapper script (`export-blender-images.ps1` / `.sh`) that runs headless (`blender -b MyHouse.blend --python scripts/export-from-blender.py`) without ever modifying the `.blend` file:
- **Perspective Cutaway Floorplans (`1200×800` PNGs in `assets/floors/`):**
  - Dimmed architectural base render per floor (`floor1-base.png`, `floor2-base.png`).
  - Individual black-background additive light layer PNG per room (`mix-blend-mode: lighten`) whose CSS `opacity` scales dynamically with each room's `onoff` and `dim` (`0.0–1.0`).
  - Exact 2D SVG clickable room polygons and label coordinates projected directly from the 3D Blender cameras (`world_to_camera_view`) into `assets/floors/blender-zones.json`.
- **Exterior & Seasonal Variants (`1200×800` PNGs):**
  - `exterior-summer.png` (original materials)
  - `exterior-autumn.png` (golden/olive lawn + warm autumn foliage)
  - `exterior-frost.png` (**Barfrost / Rime mode**: procedural translucent silver-grey frost noise ~28–34% over real green grass and dark roof tiles so the green grass and black roof clearly show through!)
  - `exterior-winter.png` (snow-covered terrain, thick beveled 3D solidified snow caps on house/garage/porch roofs, and smooth cosine-falloff 3D wind-sculpted snowdrifts)
  - Individual exterior light overlays (terrace sconces, garage sconces), **per-room interior window glow layers** seen from outside (automatically synced to interior room light states), and an **open garage door** overlay with warm interior garage lighting.
- **Orthographic Top-Down Room Focus + Automatic Lamp Discovery (`900×600` PNGs in `assets/rooms/`):**
  - Render a crisp orthographic top-down base image (`<room>-base.png`, softly darkened) and full-room light fallback (`<room>-lys.png`) for every interior room.
  - **Auto-discover ALL `LIGHT` objects** in every room (both from the room's `Lights – <Room>` collection AND by 3D point-in-polygon + floor-Z fallback, plus nearby emissive shades/LED strips!).
  - Whenever a room has 2+ lights (e.g., ceiling light + bedside lamps + newly added floor lamps), automatically render an **individual additive PNG overlay per lamp** (`<room>-<slug>.png`), project its exact 2D `(x%, y%)` coordinate in the top-down camera, and write `assets/rooms/room-lights.json` with a `generatedAt` timestamp for automatic browser cache-busting.
  - That way, whenever I add a new lamp (like a floor lamp) in Blender and re-run the export script, the dashboard automatically picks up its 3D light render and exact pin position with zero code changes!

### 3. Interactive Dashboard UI & Controls
- **Responsive Multi-View Layout:** Shows `1st Floor`, `2nd Floor`, and `Exterior & Garage` side-by-side on wide screens / tablets, with floor filter tabs, room label toggle, "Evening Scene" button, "All Off" button, and live header pills (clock, weather, sunrise/sunset, lights on count, live power in W, and geomagnetic Kp-index).
- **Readable HTML Room Labels:** Render room pills (name + live temperature when available + dim %) as crisp HTML overlays positioned from Blender's projected coordinates (avoid CSS `container-type`/`cqi` units for maximum compatibility with older Android WebView / Fully Kiosk Browser).
- **Touch & Desktop Controls:**
  - **Short tap (< 350 ms):** Immediately toggles the room/zone on or off.
  - **Long press (>= 350 ms) or right-click:** Opens a glassmorphism dimmer popover near the cursor/finger with a smooth `0–100%` slider and quick presets (`Off`, `25%`, `50%`, `100%`).
  - **Room Focus Modal (Top-Down 3D):** Clicking a room's zoom button opens a dedicated orthographic top-down view showing every individual smart light in that room as:
    - Interactive light pins overlaid at their exact Blender-projected `(x%, y%)` coordinates (with a drag-to-reposition *"Place Lights"* edit mode saved to `localStorage` / `config.js`).
    - A warm, dim-scaled **glowing radial halo** around every lit pin so it is instantly obvious which lamps are ON even inside a brightly lit room.
    - Automatic fuzzy name-matching between smart-home sub-devices and auto-exported Blender lights in `room-lights.json`, lighting up each lamp's individual 3D overlay independently.
    - Right-hand sidebar with per-lamp toggle cards, dim sliders, All On / All Off, and room temperature badge.
- **Bottom Widgets:**
  - **Favorites / Flows Tile:** One-tap execution of favorite Homey Flows / scenes.
  - **Energy & Power Tile:** Live power consumption (W), 3-phase load balance (L1/L2/L3 amps if available, e.g., Tibber Pulse), daily kWh, and configurable fixed/spot electricity cost estimate.

### 4. Smart Home Integration & Visual Setup (`config.html`)
- Support **Homey Pro Local LAN API** (Bearer token, polling + optimistic UI updates + external switch toast notifications).
- Extract **room temperatures ONLY from genuine room temperature sensors** (explicitly filter out refrigerators, freezers, NAS/servers, smart plugs, and switches).
- Build a browser-based **`config.html`** setup page that fetches all zones/devices from Homey Pro, previews each Blender zone/light, lets me map one or multiple Homey devices to each room, syncs newly exported Blender polygons, and saves `config.js` directly (or downloads it for NAS deployment).

### 5. Living Weather, Astronomy, Snow Depth, Aurora & Easter Eggs
Configure for my location (`LAT: [59.9139]`, `LON: [10.7522]`):
- **Real Weather & Astronomy:** Fetch live forecast (MET Norway Locationforecast 2.0 / Open-Meteo), calculate real solar elevation, sunrise/sunset, golden hour, day/dusk/night mood tinting (with a moonlit winter night sky gradient so white roof snow stays crisp under moonlight), and an accurate Canvas Moon phase.
- **Real-Time Snow Depth & Automatic Frost vs. Snow:** Query local snow depth (e.g., NVE seNorge GridTimeSeries via local proxy with CORS-friendly Open-Meteo `snow_depth` fallback on static NAS):
  - `snowDepthCm >= 1` → **Winter** (`exterior-winter.png` + glistening clustered SVG icicles hanging along the eaves).
  - `snowDepthCm < 1` and `temp <= 0.5°C` → **Barfrost / Rime** (`exterior-frost.png` with translucent frost over green grass and dark roof).
- **Live Aurora Borealis:** Poll NOAA SWPC planetary Kp-index; display a Kp badge in the top bar and render subtle undulating Aurora Borealis curtains across the night sky when `Kp >= 5.0` (or via simulator).
- **Animated HTML5 Canvas Weather FX:** Raindrops, snowflakes, drifting clouds, twinkling night stars, and warm sunbeams.
- **Seasonal Holidays & Fun Easter Eggs:**
  - **December & Christmas Eve:** Twinkling pine garlands along exact Blender-projected roof/porch/garage eaves, an Advent star in the balcony window (optionally synced to a real Homey smart plug!), random flying Santa sleigh with shooting-star sparks, and Santa's sleigh + reindeer parked on the snowy roof on Christmas Eve.
  - **Algorithmic Easter** (daffodils, veranda chick, colorful patterned Easter eggs placed directly on Blender-projected indoor furniture such as tables, sofas, desks, and beds, plus a large animated Easter bunny hiding & peeking out from behind the garage/house corners that hops to a new hiding spot when tapped!), **National Day** (waving flag + bunting), and **Spring/Summer wildlife** (fluttering butterflies & gliding birds).
  - **Interactive Pets [optional – customize to your pets!]:** Sleeping pet SVGs (e.g. chocolate Labradors) placed on 3D raycast-verified clear floor spots inside rooms (tap a pet to wake it and make it move to a new spot without toggling the room light!) plus random paw tracks across the snowy yard in winter (press `H` to reshuffle).

### 6. Wall-Mounted Tablet Kiosk Mode, Deployment & Demo Video
- **Android / iPad Kiosk & PWA (`manifest.json`, `js/kiosk.js`):** Support `?kiosk=1` (fullscreen toggle, Screen Wake Lock, automatic night dimming that lifts on touch), plus explicit `?v=...` cache-busting query strings for Fully Kiosk Browser.
- **One-Command NAS Deploy (`deploy-nas.ps1`):** Copies only production files to my NAS Web Station share, never overwrites the NAS's existing `config.js`, and excludes `.git/`, `scripts/`, and `demo/`.
- **Automated Showcase Video (`scripts/record-demo.py` + `record-demo.ps1`):** Uses Python Playwright (with mock data only—never touches real devices!) to record a choreographed 1440×900 showcase video cycling through evening scenes, room-focus individual lamps + glowing halos, all seasons (Summer, Easter, Autumn Rain, Barfrost/Rime, Winter Daylight with snowdrifts, icicles, paw tracks & animated garage door, and Christmas Eve with Aurora & flying Santa), and encodes a universal H.264 MP4 via Blender VSE.

Please inspect `[PATH/TO/MyHouse.blend]` first, confirm the discovered rooms, collections, and lights, and then implement the system cleanly step-by-step and verify everything in the browser.

Quick Tips for Great Results

  1. Always build & verify the .blend file first. Getting accurate room proportions, camera angles, and clean Lights – <Room> collections in Stage 1 makes Stage 2 effortless.
  2. Adding new lamps later takes 10 seconds: Whenever you buy a new floor lamp, table lamp, or wall sconce, add a LIGHT object inside that room’s Lights – <Room> collection in Blender, give it a clear name matching your Homey device (e.g., Floor lamp), and re-run the headless export script (.\eksporter-blender-bilder.ps1). The dashboard automatically generates its 3D light overlay, calculates its exact (x%, y%) top-down pin coordinate, busts browser caches, and matches it to the Homey device!
  3. Test safely in Mock Mode: Always test new UI features, seasonal effects, and demo recordings with USE_MOCK_DATA: true (or ?demo=1) so real lights and garage doors are never triggered during development.
2 Likes