Shelly migration & Drive watchdog cron by explicit watchdog_type#52
Open
fe51 wants to merge 3 commits into
Open
Shelly migration & Drive watchdog cron by explicit watchdog_type#52fe51 wants to merge 3 commits into
fe51 wants to merge 3 commits into
Conversation
Replace pi_zero_hostname inference with an explicit per-engine watchdog_type (no_watchdog | pi_zero | shelly), validated in check_vars (fails if unset/invalid). Add Shelly watchdog support (env template + cron) and update watchdog script paths to the pyro-engine PR #374 layout (watchdog/zero/* and watchdog/shelly/*). Each cron (reboot vs. watchdog) is paired with an explicit removal for the inactive types, so changing watchdog_type converges instead of leaving a stale job behind (e.g. no_watchdog -> pi_zero no longer keeps the nightly reboot cron alongside the new watchdog cron).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the implicit "is pi_zero_hostname set?" logic for choosing a Pi's reboot/watchdog behaviour with an explicit watchdog_type variable. This adds first-class support for the new Shelly watchdog alongside the existing pi-zero watchdog and the plain nightly-reboot fallback, and makes the cron configuration converge cleanly when a host's type changes.
watchdog_type values
Changes
stale job/.env instead of leaving it behind.
Notes / dependencies