My house as a live 3D digital twin in Home Assistant, where every Aqara sensor comes alive

Hi everyone! Seeing all the Home Assistant projects in this category I wanted to share mine: instead of a dashboard full of cards, my house is a live 3D replica in the browser, and the Aqara sensors are a big part of what brings it to life.

The idea: look instead of read

Home Assistant runs everything in my house, but its dashboards are cards: you read states. I wanted to look. So I built a 3D model of my real house from the original floor plans, and everything in it moves because a real sensor says so.

Where the Aqara sensors come in

  • Aqara Door and Window Sensors: every door and window opens in 3D when the real one does. The garage door and the front gate too, and I can open them from the 3D house itself through a Shelly relay (it asks for confirmation first).

  • Aqara Smoke Detectors: if one goes off, its room fills with smoke in 3D.

  • Aqara Water Leak Sensors: a leak puts a puddle on the floor, right where it’s happening.

  • Aqara Temperature and Humidity Sensors: every fridge, freezer and room with a sensor shows its own temperature.

  • The washing machine: an Aqara door sensor on its door plus a Shelly plug measuring its power. When a cycle ends and nobody has emptied it, a laundry basket appears next to it as a reminder.

The house tells you what happened

With dynamic views on, when something happens the camera flies to that room on its own and a banner at the bottom says what happened: a door opens, someone walks into a room, a smoke detector goes off. You don’t have to look for anything.

How it’s built

  • Python scripts generate the house in Blender from the floor plans, with every object labeled (light, door, sensor…).

  • It runs in the browser with Three.js and talks to Home Assistant over its WebSocket API. Two YAML files map each object to its entity, so nothing about my house is hard-coded.

  • It works as a Home Assistant sidebar panel (in the phone app too) or as a standalone site. Everything is self-hosted at home, with no cloud.

  • I built it in about two weeks with AI coding agents.

Bonus: it knows which room we’re in

A few days later I added my own Bluetooth positioning engine, built on the same 3D model and 21 Bluetooth proxies, so the 3D house also shows where each of us is. Home Assistant uses it, together with motion and what’s switched on, to turn off the air conditioning on floors nobody is using.

The full write-ups

The code isn’t public yet: the part that generates the house is still very specific to mine.

44 Likes

Very cool! :sunglasses: Nice Job.

9 Likes

Woow, Cool~~ :+1: :clap:

7 Likes

Wow… Nice job :grinning:

6 Likes

Awesome @juancho ! This project is totally insane and fascinating! I wish I had same skills as you! It’s a great idea and you make it real!
So even if you have the skills and the idea … how much time did it take ? Two weeks? So 24 x14 ?
Do you think a beginner can do it?
What programs are best and essential?

Thanks for sharing and give us an insight into that?

Do you think , Aqara could implement such a feature?

9 Likes

Really nice job !

4 Likes

This looks super awesome! So cool!

4 Likes

Such a fun and clever way to get a quick overview of everything! I really like how easy and intuitive it is to see everything at a glance. Great idea!

4 Likes

Woow…veramente impressionante.

4 Likes

Great! Thank’s!

3 Likes

This looks absolutely incredible! :exploding_head:

As a fellow Home Assistant enthusiast with a house packed with Aqara hardware (presence sensors, door contacts, cameras, climate), seeing them visualized live in a 3D digital twin is the holy grail of smart home dashboards.

A few questions if you don’t mind sharing:

  1. Modeling workflow: What did you use to build the 3D asset? Blender, Sweet Home 3D, or something like SketchUp?
  2. Rendering in HA: Are you running this via the Floor3D custom card, or is this a custom WebGL / Three.js canvas integration inside Lovelace?
  3. Sensor latency: How responsive is the live state update when an Aqara sensor triggers (e.g. mmWave zone presence or motion)?

I’ve bookmarked this thread and will definitely be following your progress closely. As soon as you open this up or share a write-up/repo, I’d love to test and implement this for my own setup.

Keep up the fantastic work! :rocket::clap:

2 Likes

@juancho , The best Home Assistant design I’ve ever seen. Congratulations on the project. It’s spectacular.

Wow very cool!

That’s likely the best first posting ever. Welcome to the forum @juancho !

Brilliant project, and it’s given me ideas. Mine’s a lot simpler: a Home Assistant floorplan with 2D tabs for each floor and a basic 3D block model of the house. Each room is coloured by temperature band from Aqara temperature sensors and FP300s over Matter, and tapping a room opens its radiator valve controls. The aim is to see uneven heating at a glance, because my landing runs a few degrees warmer than the bedrooms. Does yours show heating or valve state as well as temperature, and how did you handle radiators in the 3D scene?

1 Like

Awesome