Skip to content

Architecture

The system is divided into three layers: data foundation, integrations and presentation. Each has a small core that works without add-ons, and packages that are loaded on demand. The yardstick for the core is Mara and Renate, the yardstick for the packages is Ben.

Core and packages

Three layers, data foundation, integrations and presentation, each with the core on top and loadable packages below

Rules for core and packages (proposal)

  1. The core is built for Mara and Renate. Everything they need to understand and operate the house is in the core. Packages extend, they do not repair.
  2. Renate never reads the word "package". The assistant detects systems in the home network and suggests matching packages with one tap. Ben can choose them deliberately.
  3. Platform-neutral: No smart home platform is built into the core. Home Assistant, Homey and others are equal packages; the standard installation ships the most common ones pre-installed (assumption).
  4. Every package speaks English and German and states before installation which data it sends outside.
  5. Every package goes through the same CI with tests, secret and PII scan and security review. At the start, core and official packages live in one repo; content packages such as furniture and building elements come from the catalogue of the domusvox-registry (see Packages and the registry, D50).

Use cases and clients per layer

Layer Who works there Use cases Clients
Data foundation Ben, Renate (once, during setup) Onboarding steps 1–4, B2, B7, B8, R1, R2 Setup in the browser (laptop or tablet), iPhone companion app for scanning (assumption), import from Polycam, Sweet Home 3D & co.
Integrations Ben (once), Pia (develops packages) B1, B3, A4, A5, onboarding step 5 no UI of its own; configuration in Setup, developer SDK and docs for Pia
Presentation Mara, Lio, Greta (daily), Renate A1–A3, R3, L1, G1, B4, B6 wall tablet in kiosk mode, smartphone browser at home, voice assistants via Matter or Shortcuts, later TV or e-ink (assumption)

Data sources for the data foundation

The exterior of a house in Germany can largely be pre-filled automatically, the interior cannot. Each source becomes its own package, OSM is the fallback.

Source What it provides Access Limitation
OpenStreetMap building outline, often number of floors, address, surroundings free (ODbL), worldwide quality varies, heights often missing
LoD2-DE (BKG, from the federal states) 3D buildings with roof shape, approx. 58.6 million buildings (as of 06/2026) per federal state, many as open data licence and access route differ per state
LoD1-DE block model with building height, no roof shape CityGML, nationwide blocks only
Parcels (ALKIS / FS-DE) property boundaries, location description state portals; nationwide dataset only on physical media FS-DE contains no Bavaria
Bavaria WMTS aerial image, web map, cadastral map as map tiles free of charge, no registration (since 10/2023) tiles only, no vector data
Apple RoomPlan room scan with dimensions, walls, doors, windows, furniture types; USDZ export iPhone/iPad with LiDAR only Apple devices with LiDAR
Scan and planning apps (Polycam, Sweet Home 3D etc.) scans and furnishing as export depends on the app formats to be checked per app (assumption)

Tailwind from the EU: The HVD Implementing Regulation (EU) 2023/138 obliges authorities to provide addresses, buildings and cadastral parcels free of charge, machine-readable, via API and under an open licence. Whether this includes LoD2 is not explicitly regulated there.

iPhone scan: Since iOS 17, RoomPlan merges several room scans into one floor, recognises sloped and curved walls and distinguishes furniture categories and room types (WWDC23). Apple recommends it for single-storey areas up to about 186 m² at a minimum of 50 lux. Apple does not mention sloped ceilings. For Android and devices without LiDAR there is the manual path (floor plan photo or rectangles).

Keeping the model up to date

Recommendation: The model maintains itself as far as possible, and the user only confirms. A model that goes stale shows wrong states, and according to the market analysis that is one of the most common weaknesses of existing solutions.

Trigger What the twin does What the user does
New device in the smart home system asks "Where is it?" and suggests the room from the platform's area tap once (U1)
Device disappears or does not respond shows "removed or broken?" instead of a wrong state remove or ignore (U2)
New furniture, rearranged – rescan one room or drag furniture; the rest stays (U3)
Renovation creates a new model version, the old one stays in the house chronicle re-capture affected rooms, records in Ablago (U4, B11)
New Ablago folder for a device suggests the link confirm (B10)

This includes versioning of the model: every change is traceable and reversible, as in Renate's onboarding.

Levels, handover and landlords

Recommendation: The model consists of three levels with separate ownership. This makes moving out, the next tenant and the landlord service possible without anyone seeing other people's data.

Level model: the building stays, the apartment goes to the next tenant, the household is deleted or taken along

  • Handover on move-out: A handover assistant deletes the household level or exports it for the move and passes the building and apartment levels on as a file. The next tenant imports it and starts onboarding at step 4 instead of from scratch (V2).
  • Landlord as service provider: Viktor maintains the building and apartment levels once and hands a package per apartment to his tenants (V1). Each household runs its own installation, locally as before; there is no shared database with tenant data.
  • What the landlord sees: building values such as shared meters and the heating system. Consumption of individual apartments only if the tenants agree (V3). Legal obligations such as monthly consumption information under the German Heating Costs Ordinance continue to run via the billing services (assumption, to be checked legally).
  • Multi-family house: This answers the open question from the scope: one installation belongs to one household; several apartments share only the building level as a file, not the installation.
Pros Cons
Levels with file handover (recommendation) local and private; next tenant starts immediately; landlord service without cloud two installations must speak a common file format
One shared installation for the whole house one thing to maintain for the landlord tenant data at the landlord; conflicts with privacy and "nobody sees other people's data"
No handover simplest every new tenant starts from scratch; no business model for landlords

Building physics, energy and indoor climate

Recommendation: Display, locate and give simple advice, yes; standards-compliant calculations and simulations, no. The placement follows the three layers.

Topic Placement What we build What we do not build
Heat, electricity, water consumption package (integrations), display in the core consumption per day, room or apartment from existing meters; comparison with the previous month (E1) our own meter reading, billing
Dew point and ventilation advice "Indoor climate" package, P2 dew point from temperature and humidity, mould risk per room, "air now" notice in the status line (E2) control of ventilation systems (stays with the platform)
Wall structure, insulation, window types core (data foundation), optional properties per component describe components, e.g. from the energy certificate; basis for notices (E3) energy certificate, U-value calculation to standard
Thermal bridges package, import locate thermography images and reports on the component; mark cold corners from sensor data (E4) our own thermal bridge calculation
Airflow simulation out of scope at most a later export of the geometry for specialist software (assumption) flow simulation (CFD)

This keeps the twin understandable for Mara and Renate ("Air the bathroom now") and useful for Viktor and Ben (weak spots on components), without taking liability for building physics reports.

House memory with Ablago

Recommendation: The house memory comes from two projects that complement each other. Ablago is the filing system: documents, folders, deadlines and reminders, self-hosted, no subscription and no telemetry, with an open interface, full export and its own package system, Apache-2.0. The twin is the place: it knows where something is in the house and what state it is in. Together they answer questions like "Where is the heating manual, and when is the next maintenance?" right at the device in the floor plan.

Task Ablago DomusVox
Documents, invoices, warranties, manuals, contracts stores and files them in folders (e.g. house, system, contract) stores no documents, only links to folders
Deadlines and reminders (maintenance, end of warranty) detects and manages them shows due deadlines in the status line and at the device
Devices and systems folder with records location in the house and live state from the smart home system
Renovations folder with quotes, invoices, acceptance reports, photos affected rooms, floor plan before and after, house chronicle
Rooms, floor plan, state – core task

Connection: An "Ablago" integration package reads via Ablago's open interface with a narrowly scoped, read-only key. Devices and rooms in the twin are linked to Ablago folders; the assistant suggests pairs based on names. Both projects run locally, documents do not leave the home network.

Pros Cons
Ablago as a package (recommendation) no duplicate document storage; both projects stay independent; same values (local, open, no subscription) two installations; dependency on the Ablago interface
Store documents in the twin itself one installation rebuilds Ablago; contradicts the scope
Twin as a package in Ablago one UI for documents the hallway check and onboarding do not fit into a document store

(Assumption) The scope and permissions of the Ablago interface (read access per folder, events for new deadlines) have not been checked; the public website mentions the interface but does not describe it. Further ideas: an Ablago package "House and devices" with matching folders and deadlines, and a way back that shows in Ablago where a device is in the house.

Users, roles and access

Recommendation: Yes to user management, but deliberately slim and local: roles instead of accounts, devices instead of logins, and no account with us. It belongs in the core of the presentation and integration layers, because guest mode (G1), child permissions (L1) and packages cannot be implemented securely without it.

Access For whom How you get in Allowed to
Administrator Ben local account with password, optional passkey set up everything, packages, access, keys
Resident Mara, Renate no login on the paired hallway tablet; on the phone via one-time pairing view and switch; settings only with the administrator PIN
Child Lio like resident, profile selectable on the tablet (assumption) only permitted rooms and devices
Guest Greta QR code or link, time-limited, revocable at any time light and heating in permitted rooms; no history, presence, cameras
Device hallway tablet, phone, TV one-time pairing via QR code, then a device key the device's role, e.g. resident
Service packages, voice assistants, scripts API key created by the administrator only the granted scope (e.g. "read status only")

API keys: Two kinds, both stored only locally and encrypted. Incoming keys (tokens from Home Assistant, Homey, weather service) live in the installation's secret store, never in the house configuration and never in the repo. Outgoing keys, with which others access our twin, have a name, a narrow scope, an optional expiry date and can be revoked individually.

Pros Cons
Our own slim roles in the core (recommendation) platform-neutral; guest access and child permissions independent of the platform; Mara and Renate never have to log in our own code with security responsibility; needs an early security review
Reuse the platform's users (e.g. Home Assistant users) nothing new to build not platform-neutral; Homey and others work differently; guest access there often too broad
No users at all, only devices simplest no secure guest mode, no permissions for children, no revocable keys

Login via your own identity provider (OIDC, e.g. Authentik) can later be a package for Ben (assumption).

Voice assistants: Apple Home and Siri, Alexa, Google

Recommendation: Devices stay where they already are. Home Assistant and Homey already bring their devices to Apple Home, Alexa and Google today, for example via Matter bridges (Homey, Home Assistant Matter Hub). We do not rebuild that (see scope). Our contribution is what only the twin knows: the state of the house as a whole, such as "Is everything closed?".

Route What it brings Pros Cons Proposal
Matter package with virtual sensors such as "House ready to leave" status in Apple Home, Alexa and Google Home; Siri and Alexa can query it and use it in routines one route for all three; local, no cloud only simple states (on/off, open/closed), no explanation of "which window" package, P2
Apple Shortcuts via our local API "Hey Siri, is the house ready?" with a spoken answer saying which window is open local, rich answer, only an API key needed Apple only; set up by Ben template in the manual, P2
Alexa skill custom voice commands on Alexa wide reach needs a publicly reachable cloud service, contradicts "local, no account" not in the project; use the Matter route
Google Assistant Actions custom voice commands on Google – Google shut down Conversational Actions in 2023 not possible; use the Matter route

Voice assistants are therefore another client of the presentation layer and access it via their own narrowly scoped API key or the Matter package.

Release order (assumption)

Release Content
0.1 minimal core of all three layers (rectangle rooms, 2D Hallway View), packages Home Assistant and demo house
0.2 address and building from OSM, Homey package
0.3 LoD2 and parcel for the first federal states, RoomPlan and scan import
later 3D view, furnishing, more systems and languages

Technology, delivery and data storage

(D35 proposal, D36 decided; added after the first export of the concept)

Language: TypeScript on Node.js, in the active LTS version (end of 2026: Node.js 24 and 26). One language for DomusVox Core, SDK, packages and the Wall and Setup interfaces, which run in the browser. The only exception is DomusVox Scan: Apple's RoomPlan exists only in Swift for iPhone and iPad.

Perspective Assessment
Development one language from server to tablet; types and schemas are shared; Homey apps also run on Node.js; Playwright for tests and screenshots fits directly
Security the npm supply chain is the main risk: few dependencies, lockfile, Dependabot, publishing with npm provenance, checks in CI
Quality type checking finds errors early; the same tests for server and interface
Accessibility the interface is a web app: the tablet's screen reader, zoom and speech output work without an app of our own

Delivery: four ways, all built from the same code.

Way For whom What the user needs Command line needed?
Home Assistant add-on Mara and Renate with Home Assistant, Ben a running Home Assistant (e.g. HA Green); installed with one click from the add-on store no
Docker container ghcr.io/motom001/domusvox (amd64, arm64) Ben, households with Homey or other systems Docker on a Raspberry Pi, NAS or PC; ready-made template for Docker Compose and NAS interfaces once, or not at all via the NAS interface
npm package domusvox (npx domusvox) developers, Ben Node.js LTS yes
Browser demo anyone curious only a browser; shows the demo house no

Libraries for package developers are published under the npm scope @domusvox (e.g. @domusvox/core, @domusvox/sdk); the repo folders keep the names domusvox-<name> from D32.

Minimum at the user's home: a device that is always on in the home network (often already there when Home Assistant runs), about 1 GB of free memory (assumption), a tablet with a current browser. No cloud, no account. Homey Pro cannot run containers itself; households with only Homey need an additional small device such as a Raspberry Pi (a Homey app is an option to check later).

Data storage: files for the model, SQLite for operation, no database server.

What Where and how Why
House model: building, apartment, household, rooms, assignments, settings files, one folder per level; JSON with a schema version, geometry as glTF readable, versionable, easy to back up; handover = export the folders; every import is validated against the schema
Operational data: events, own history, house chronicle index, roles, device pairings one SQLite file fast, transactions, no extra service
Secrets: API keys, platform tokens a separate encrypted file never belong in the model, the export or the repo
data/
  building/        building: envelope, components (JSON, glTF)
  apartment/       apartment: rooms, fixtures, meters
  household/       household: furniture, own devices, settings
  domusvox.db      events, history, roles, pairings (SQLite)
  secrets.enc      keys and tokens, encrypted
  backups/         daily backups, seven versions
  • Backup: the model folders plus a snapshot of the SQLite file become one encrypted archive. Secrets are only included on explicit request.
  • Handover to the next tenant: export only building/ and apartment/; household, database and secrets stay with the household or are deleted.
  • Data minimisation: history is mainly kept by the smart-home platform. DomusVox keeps only what it needs itself, with a retention period of about 30 days (assumption).
  • No database server such as PostgreSQL: it would not be maintainable for Mara and Renate and is not needed for one household.
  • Storage interface: core and packages never touch files or SQLite directly. They use a small storage interface in @domusvox/core (read, write, list, query by level, transactions, export). Files plus SQLite are the first implementation; a database such as PostgreSQL can be added later as another implementation without changing core or packages. A shared test suite checks every implementation the same way.
  • Security: the data folder is readable only by the DomusVox process, SQL uses parameters only, imports are validated before loading.