Smart Home Stack (Homematic · RPI-RF-MOD · debmatic)
Use case
Heating, lighting, door/window sensors in six rooms are addressed via a Raspberry Pi with RPI-RF-MOD and debmatic. A small REST API wraps the devices for automation, a Grafana floorplan shows status per room, authentication sits behind the forward-auth SSO on my own reverse proxy.
What's done so far
- Backend abstraction
HomematicBackendABC with two implementations - CloudBackend via
homematicip-rest-apiPython library - LocalBackend via XML-RPC and ReGa HMScript — fully internet-independent
- Three containers in concert: a collector (polling + DB write), a FastAPI-based REST service layer (pure DB service), and rule-based automation for valve control on a 60-second tick
- Open-Meteo integration for DWD weather data as an external input
- Schema
homein the sharedmonitoringDB on TimescaleDB - Grafana dashboard with HTML text panels and JavaScript (floorplan)
- Boost command queue through the API; automation bypasses the queue for direct valve updates
In progress
Not much — the stack is stable in daily use. Focus is on maintenance, occasionally adding new sensors, and small improvements to the floorplan and automation rules.