How graemef/home-automation works
Main Components Identification
The project is structured as a monorepo with several key packages that should be represented as main components:
a. Core Components:
• deep-heating (main add-on package)
• deep-heating-rx (reactive programming core)
• deep-heating-state (state management)
• deep-heating-types (type definitions)
• deep-heating-home-assistant (Home Assistant integration)
• deep-heating-web (frontend interface)
• deep-heating-socketio (real-time communication)
Top Layer (User Interface):
• deep-heating-web (Svelte-based frontend)
Middle Layer (Communication):
• deep-heating-socketio (WebSocket server)
• Home Assistant Integration Layer
Core Layer:
• deep-heating-rx (Reactive Core)
• deep-heating-state (State Management)
Bottom Layer (External Systems):
• Home Assistant
• TRVs (Thermostatic Radiator Valves)
• Temperature Sensors
Component Relationships
• Frontend → SocketIO → Core (user interactions)
• Core → Home Assistant Integration → Home Assistant (control flow)
• Home Assistant → Sensors/TRVs (physical device control)
• Core → State Management (data flow)
Technical Details
Annotations showing:
• TypeScript/JavaScript as the primary language
• Svelte for frontend
• Socket.IO for real-time communication
• RxJS for reactive programming
• Home Assistant Add-on architecture
a. High-level system architecture
b. Detailed component interaction
d. Deployment view