← Back to Projects

Homebase

Self-hosted smart home hub with a local-first web dashboard

Raspberry Pi Node.js BLE MQTT SQLite WireGuard

Homebase is a self-hosted smart home controller that runs on a Raspberry Pi. It connects BLE sensors, relay boards, and IP cameras into a single local dashboard with no cloud accounts or subscriptions required.

Automations are defined in a simple YAML config. Turn on the porch light when motion is detected after sunset. Send a push notification if the garage door has been open for more than 30 minutes. Rules chain together with AND/OR logic and time-of-day filters.

The Node.js backend exposes a REST API and pushes state changes to the browser over MQTT via a local Mosquitto broker. All data stays on the local network. An optional WireGuard tunnel provides secure remote access without exposing any ports.

Key Features

  • Local-first, no cloud dependency or subscriptions
  • YAML-based automation rules with time-of-day filters
  • BLE sensor and relay integration
  • IP camera feed aggregation
  • Secure remote access via WireGuard tunnel
  • REST API with real-time MQTT state updates
H Screenshot

Tech Stack

Raspberry Pi Node.js BLE MQTT SQLite WireGuard