Rewrite the stale scratch README into a project README (what the repo is,
token/deploy usage, remotes). Configure origin with a second push URL so a
single 'git push' mirrors to Forgejo and the new GitHub backup at
git@github.com:jmtremblay2/home-assistant.git.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pepco MD TOU-P has different on-peak windows by season: summer (Jun-Sep)
14:00-19:00, winter (Oct-May) 06:00-09:00 and 17:00-21:00. Heat is gas, so
winter electric peak logic is cooling-only.
* pre-cool: bounded to summer (Jun-Sep); winter has no pre-cool.
* peak-setback (hold) and peak-ends (return): unified across seasons via a
season self-select (month -> season; triggers carry id: summer/winter and act
only when trigger.id == season) plus a params map for setpoints. Summer forces
cool + 82 / returns 74 daily; winter sets 82 / returns 74 ONLY when already in
cool mode, so it never disturbs the gas furnace.
* new ac_winter_morning_kill: 06:00 winter work days, if in cool mode set
hvac_mode off to dodge the 6-9am winter peak. No auto-resume yet (planned).
Decision logic verified as a truth table via the template engine across
summer/winter x cooling x workday before commit. Deployed in place (existing
ids unchanged); new id ac_winter_morning_kill added.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Replace the three live AC automations in place (same ids -> same entity_ids,
continuous history/traces):
* pre-cool & peak-setback: the workday check moves out of a blocking
`condition` into template logic that falls back to a plain Mon-Fri test when
binary_sensor.workday_sensor is unavailable/unknown. Previously a dead sensor
silently skipped the run.
* pre-cool: weather.get_forecasts now uses continue_on_error, and a
`fc is defined and is mapping` guard falls back to an assumed 88F high (->70F
regular pre-cool) when the forecast hard-errors or returns nothing.
* peak-ends: unchanged behavior (runs daily), documented only.
Add AUTOMATIONS.md (identity model, per-rule spec, failure-mode table, deploy
steps) and deploy.py (pushes automations/*.yaml to the HA config API by id).
Fallbacks verified empirically against the live automations via execution
traces before this commit. Also removed throwaway server-side debug automations
(three TEST spoofs + the ac_flap_1758_1820 experiment).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Snapshot of the three AC peak-shaving automations exactly as they run on the
HA server today, imported via the config API, plus deploy tooling. This is the
baseline the v2 hardening diffs against.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>