Adds a self-contained omni-pca/grafana/ bundle (InfluxDB v2 + Grafana with pre-provisioned datasource and dashboard) plus dev-stack wiring so iterating against the mock or real panel is one docker-compose-up. The dashboard has four rows plus an insights row: System health AC, battery, trouble, 24h event count Security area arming state, recent events table, zone trips Climate thermostat temperatures, HVAC mode Activity event rate by type, top toggled units Insights active zone bypasses, button press log, event distribution Color-coded event_type tags persist across panels (alarms red, restores green, batteries orange, etc.); explicit no-purple palette per CLAUDE.md. The bundle is portable: any HA install can use it by running grafana/ docker compose up -d and pasting ha-snippet.yaml into configuration.yaml. For the dev stack, dev/docker-compose.yml mounts the same provisioning files so dev and prod stay in lockstep. Verified end-to-end against the real Our House.pca panel (192.168.1.9): the dashboard fills with live zone trips, X-10 unit toggles, and push-event traffic within 30s of HA bootup.
22 lines
526 B
YAML
22 lines
526 B
YAML
# Auto-wires the InfluxDB v2 datasource at Grafana boot. Picks up
|
|
# INFLUX_URL and INFLUX_TOKEN from the grafana container's environment
|
|
# (set in docker-compose.yml from .env). No manual datasource config
|
|
# needed.
|
|
|
|
apiVersion: 1
|
|
|
|
datasources:
|
|
- name: InfluxDB
|
|
type: influxdb
|
|
access: proxy
|
|
url: ${INFLUX_URL}
|
|
isDefault: true
|
|
editable: false
|
|
jsonData:
|
|
version: Flux
|
|
organization: omni-pca
|
|
defaultBucket: ha
|
|
tlsSkipVerify: true
|
|
secureJsonData:
|
|
token: ${INFLUX_TOKEN}
|