Smart Power: never leave auto power-cycle off; restarts in maintenance aren't "needed" #69

Merged
jared merged 1 commits from smart-power-confirm into main 2026-11-26 22:54:05 -05:00
1 Commits
Author SHA1 Message Date
jaredandClaude Opus 5.5 b8d45648ea Smart Power: never leave auto power-cycle off; restarts in maintenance aren't "needed"
Lint / Python (flake8) (push) Successful in 1m11s
Lint / JS (eslint) (push) Successful in 14s
Lint / Notify on failure (push) Skipped
Lint / Deploy (push) Skipped
Lint / JS (eslint) (pull_request) Successful in 11s
Lint / Python (flake8) (pull_request) Successful in 1m8s
Lint / Notify on failure (pull_request) Skipped
Lint / Deploy (pull_request) Skipped
Security / Python Security (bandit) (pull_request) Successful in 1m9s
Test / Python Tests (pytest) (pull_request) Successful in 1m20s
Security / Python Security (bandit) (push) Successful in 1m2s
Test / Python Tests (pytest) (push) Successful in 1m23s
2026-11-26: the Restart modem button asked UniFi to pause auto power-cycle
on the modem's outlet. Read back at once, UniFi still showed the old
setting, so Gandalf recorded nothing paused; UniFi then applied the
change, and nothing turned it back on. Now Gandalf waits up to 10 s for
UniFi to show the change, and lists every outlet it tried to pause, so
the restore always runs (turning on an outlet that is on is a no-op).

A modem restart inside a Gandalf silence for everything (the planned
2026-11-25 UPS update cut the rack's power) is shown as planned
maintenance and no longer counts toward "the modem has needed N
restarts".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 22:50:47 -05:00