個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Self-hosted alarm panel for UniFi Protect: a PIN keypad on a wall tablet, entry and exit delays, per-person PINs and alerts to Slack, ntfy, Telegram or Signal.
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗| Arming | Entry delay | Alarm |
|---|---|---|
| Overview | Audit log | Sensors |
|---|---|---|
Not affiliated with Ubiquiti. UniFi is a trademark of Ubiquiti Inc.
UniFi Alarm Manager handles the sensors, arming and notifications. What it doesn't have is the human side of an alarm at the door: someone walks in, a countdown starts, they type their own PIN, and the system knows who disarmed it. This app adds that layer and keeps UniFi for what it does well (sensors, cameras, the console).
ALARM with a camera snapshot in the alert.You need a UniFi console with Protect, a Linux host or container host on the same LAN, and a tablet for the wall.
git clone https://github.com/FelixLeChat/unifi-alarm-panel.git
cd unifi-alarm-panel
cat > .env <<EOF
ADMIN_TOKEN=$(openssl rand -hex 24)
WEBHOOK_SHARED_SECRET=$(openssl rand -hex 24)
SECRETS_KEY=$(openssl rand -base64 32)
EOF
docker compose up -d
Open http://<this-host>:3000/admin, sign in with ADMIN_TOKEN, and the setup wizard walks you through the console connection, notifications and the kiosk. Then point the tablet at http://<this-host>:3000/panel.
Keep a copy of SECRETS_KEY: without it, stored credentials have to be re-entered. Run one app container only, the alarm's timers live in that process.
On Proxmox VE, one command creates the container and installs everything: see docs/INSTALL.md, which also covers systemd on a bare box.
Arming lives on this server, not in UniFi. UniFi (Alarm Manager) is an event source and camera layer. It webhooks every sensor trip to this app, which owns the armed/disarmed state, the PINs, the audit log and the alert logic. Adopting sensors forces Alarm Manager into "Global" mode, where arm/disarm isn't reliably controllable through the API, and this design gives per-person accountability.
UniFi's own arm state is mirrored into this app when someone arms from the console, but it never overrides a local change. See docs/UNIFI.md.
One Next.js and TypeScript app serves the kiosk (/panel), the admin UI (/admin) and the API as a single long-lived Node process, with SQLite for state. A restart partway through a countdown still escalates to ALARM on the original schedule.
Open docs/architecture/how-it-works.html in a browser for an interactive version that traces routes and exports the diagram.
ALARM, weather strip.pnpm audit and CodeQL in CI./panel fullscreen in Fully Kiosk BrowserMost of this code was written with Claude Code, directed and reviewed by one person. The design (arming lives on this server, per-person PINs, the duress path, the shared PIN lockout) is the author's, and every change goes through the same gate as a contributor's: pnpm lint, pnpm typecheck, the Vitest unit suite, a Playwright suite that drives the real panel and admin UI in a browser, pnpm audit and CodeQL in CI, then a run on the author's own hardware. It has been the alarm at the author's house and office since September 2026.
If you review it, read it as you would any other codebase. If you contribute, AI_POLICY.md says what is expected of a pull request.
Read it as a site: felixlechat.github.io/unifi-alarm-panel. The same pages live in docs/.
| Doc | What it covers |
|---|---|
| INSTALL.md | Docker Compose and systemd installs |
| CONFIGURATION.md | Settings, alert channels and routing, upgrade notes, advanced keys |
| UNIFI.md | Sensor-event sources, arm-state sync, camera streaming |
| SIGNAL.md | Signal alerts through signal-cli-rest-api |
| OPERATIONS.md | Audit log, backups, watchdog, TLS |
| RUNBOOK.md | One page for whoever is on call |
| DEVELOPMENT.md | Repo layout, running it locally, faking UniFi |
Bug reports, ideas and pull requests are welcome. CONTRIBUTING.md says where to start and what a good pull request looks like. Questions and ideas go in Discussions, bugs in Issues. To report a vulnerability, see SECURITY.md.