How mastershort/neonplan3d works
NeonPlan 3D is a Home Assistant integration with a browser-based home planner and interactive 3D dashboard. Users configure the integration, create or import a building plan, link Home Assistant entities to devices, and view and control the home in 3D; the integration persists plans and serves them to the frontend. Major branches include imports, energy and solar, time travel, furniture packs and optional Pro features. Some frontend-to-backend wiring and unsampled subsystems are documented but not visible in excerpts, so those links are omitted or marked unverified.
Main entry points: viewer3d.ts 3D renderer · view3d.ts 3D interaction view · building-controller.ts Building controller · entry.ts Time travel
Components 30
Home Assistant integration
- Integration setup
custom_components/neonplan3d/config_flow.py - WebSocket API
custom_components/neonplan3d/websocket.py - Plan storage
custom_components/neonplan3d/storage.py
Planning and data
- Plan schema
custom_components/neonplan3d/schema.py - Plan editor
frontend/src/components/editor.ts - Building model
frontend/src/model.ts - Plan import
frontend/src/import/app.ts - Frontend API
frontend/src/api.ts - Building controller
frontend/src/building-controller.ts - Roof sections
frontend/src/roof-sections.ts
3D experience
- Dashboard card
frontend/src/card.ts - 3D interaction view
frontend/src/components/view3d.ts - 3D renderer
frontend/src/viewer/viewer3d.ts - Furniture models
frontend/src/viewer/furniture.ts - Geometry buffers
frontend/src/viewer/geo.ts - 3D navigation
frontend/src/viewer/walk.ts - Device state
frontend/src/devices.ts - Tablet alerts
frontend/src/alerts.ts - Kiosk mode
frontend/src/kiosk.ts
Energy and history
- Energy features
frontend/src/energy.ts - Solar features
frontend/src/solar.ts - Time travel
frontend/src/timetravel/entry.ts - History events
frontend/src/timetravel/events.ts - History summaries
frontend/src/timetravel/summary.ts
Packs and extensions
- Furniture packs
custom_components/neonplan3d/packs.py - Pack registry
frontend/src/packs.ts - License service
custom_components/neonplan3d/license.py
Other components
- Home user
- Home Assistant
- NeonPlan shop
Connections 34
- Home user → Integration setup: configures
- Home user → Plan editor: draws plan
- Home user → Plan import: imports plan
- Plan editor → Building controller: edits through
- Building controller → Frontend API: loads and saves
frontend/src/building-controller.ts - Building controller → Building model: normalizes
frontend/src/building-controller.ts - Plan import → Building model: builds plan
frontend/src/import/app.ts - Frontend API → WebSocket API: requests data
- WebSocket API → Plan storage: reads and writes
custom_components/neonplan3d/websocket.py - Plan storage → Plan schema: validates plan
custom_components/neonplan3d/storage.py - Home Assistant → WebSocket API: hosts API
- Dashboard card → Building controller: loads building
- Dashboard card → 3D interaction view: shows dashboard
- 3D interaction view → 3D renderer: loads renderer
frontend/src/components/view3d.ts - 3D renderer → Building model: renders plan
frontend/src/viewer/viewer3d.ts - 3D renderer → Furniture models: renders models
frontend/src/viewer/viewer3d.ts - 3D renderer → Geometry buffers: builds geometry
frontend/src/viewer/preview.ts - 3D renderer → 3D navigation: supports navigation
frontend/src/viewer/viewer3d.ts - 3D interaction view → Device state: reads device state
frontend/src/components/view3d.ts - 3D interaction view → Energy features: reads power
frontend/src/components/view3d.ts - 3D renderer → Solar features: updates solar
frontend/src/viewer/viewer3d.ts - Home user → Time travel: reviews history
- Time travel → History events: classifies events
frontend/src/timetravel/entry.ts - Time travel → History summaries: builds summaries
frontend/src/timetravel/entry.ts - Time travel → Home Assistant: reads recorder
frontend/src/timetravel/entry.ts - WebSocket API → Furniture packs: serves packs
custom_components/neonplan3d/websocket.py - Building controller → Pack registry: loads packs
frontend/src/building-controller.ts - Building model → Pack registry: resolves pack items
frontend/src/model.ts - Home user → License service: enters key
- License service → NeonPlan shop: checks updates
custom_components/neonplan3d/license.py - License service → Furniture packs: refreshes purchases
custom_components/neonplan3d/license.py - 3D renderer → Roof sections: renders roof
frontend/src/viewer/viewer3d.ts - 3D interaction view → Tablet alerts: shows warnings
frontend/src/components/view3d.ts - Dashboard card → Kiosk mode: supports kiosk