Files
JakeHillion 9375f75a5c
commit-validation / validate-single-commit (pull_request) Successful in 7s
buildbot/nix-eval Build done. (730 warnings)
buildbot/nix-build Build done.
buildbot/nix-effects Build done.
foldingathome: fold when Home Assistant wants heat
Folding@home ran only while the Octopus Agile unit rate was below a
threshold. It is now part of a heating system run from Home Assistant,
which decides when heat is wanted and powers the folding hosts on and
off.

The price gate is replaced by a gate that reads binary_sensor.fold_wanted
from Home Assistant every minute over Nebula, with a long-lived access
token, and starts or stops Folding@home to match. As before, it stops
folding when it cannot get an answer.

Home Assistant also reaches each folding host over SSH as a new fold user,
whose only key is forced to a command serving fold-schedule-poweroff,
which schedules a poweroff 30 minutes out through a sudo rule allowing
exactly that, and fold-poweroff-status, which reports whether one is
pending. Home Assistant calls them as the fold_arm and fold_status shell
commands, with ssh on its PATH and the key in its home directory.

Test plan:
- CI
- Built rooster, merlin and stinger
2026-11-24 21:49:50 +00:00
..