homelab-codex-ws/hosts/piha
Oskar Kapala 039f9f7247 feat(piha): brain-watchdog — external watchdog for control-plane
Polls /summary on VPS over Tailscale every 60s; computes freshness
locally from last_update epoch (never trusts self-reported status).
Alerts via Telegram Bot API directly after 3 consecutive failures;
sends recovery message on heal. State (fail_count, alerted) persisted
to volume so debounce survives restarts.

- services/brain-watchdog/: Python service, no external deps (stdlib only)
- hosts/piha/runtime/brain-watchdog/: override with mem_limit 64m
- hosts/piha/services.yaml + inventory/topology.yaml: manifest entries

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-01 17:54:36 +02:00
..
runtime feat(piha): brain-watchdog — external watchdog for control-plane 2026-06-01 17:54:36 +02:00
capabilities.yaml Add node capability model 2026-05-11 20:46:50 +02:00
host.yaml Add normalized host inventory skeletons 2026-05-10 22:12:36 +02:00
README.md Add infrastructure standards and deployment conventions 2026-05-07 21:16:03 +02:00
services.yaml feat(piha): brain-watchdog — external watchdog for control-plane 2026-06-01 17:54:36 +02:00

PIHA - Infrastructure + Automation Node

Role

  • Core network services.
  • Home automation (Home Assistant).
  • Monitoring and logging.

Configured Services

  • Home Assistant
  • Mosquitto (MQTT)
  • Zigbee2MQTT

Runtime Data

  • /opt/homelab/data/homeassistant