homelab-codex-ws/scripts/ha/tests/fixtures/automations.yaml
oskar ee48319a86 feat(ha): skeleton for Home Assistant configs-as-code subproject
Structure only, no deploy path: DESIGN.md decision registry (phasing,
per-instance adapter, bidirectional sync with drift-abort on deploy,
reload-vs-restart gating, token handling), instances.yaml (ken/piha via
docker-exec, chelsty-ha via api), config/storage-export/fixtures dirs,
and a read-only scripts/ha/import.sh (docker-exec adapter only) with a
canonical YAML normalize+split library and an offline determinism test.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-21 15:29:39 +02:00

38 lines
762 B
YAML

- id: "morning_lights"
alias: "Morning lights on"
trigger:
- platform: time
at: "06:30:00"
condition: []
action:
- service: light.turn_on
target:
entity_id: light.living_room
mode: single
- id: "goodnight"
alias: "Goodnight routine"
trigger:
- platform: state
entity_id: input_boolean.goodnight
to: "on"
condition: []
action:
- service: light.turn_off
target:
entity_id: all
mode: single
- id: "low_battery_alert"
alias: "Low battery alert"
trigger:
- platform: numeric_state
entity_id: sensor.front_door_battery
below: 20
condition: []
action:
- service: notify.mobile_app
data:
message: "Front door sensor battery low"
mode: single