feat: low-pellet + temp-anomaly alerts (always on) - #18
Merged
Conversation
3 tasks
Adds three safety alerts, wired into the same notify()/notify_remote()
pipeline the existing probe alarms use:
- Low pellets: fires once at <=20% hopper level, re-arms after a refill
(hysteresis at 30%) so a later re-drop alerts again.
- Flame-out / pellet jam: fires if the grill has been sustained 40+
degrees below its set point for 10+ minutes during an active cook --
long enough to rule out a normal lid-open dip.
- Firmware error counters: fires on a NEW overheat/lowtemp/bad-
thermocouple event (these are cumulative lifetime counts, so only an
increase since this run's first reading is a new event).
Field names (status.pellet_level, usage.error_stats.*) were confirmed
against the real running grill's actual raw status JSON, not guessed.
Extends the CSV schema with 4 new columns. Since cook_log.csv is an
append-only file that predates this schema for existing users, added
migrate_log_schema() -- a one-time, atomic rewrite that realigns an
older file's header with the current column set, run automatically at
the start of poll.py's main(). Verified losslessly against a real copy
of the actual multi-day, 675-row cook_log.csv.
ctopherwilliams
force-pushed
the
feat/pellet-anomaly-alerts
branch
from
July 5, 2026 01:53
3c1499d to
66d93cc
Compare
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
--watch, using the existingnotify()/notify_remote()pipeline: low pellets (hopper %, with refill re-arm), sustained grill-vs-set-point deviation (flame-out/pellet-jam signature), and firmware error-counter increments (overheat/lowtemp/bad-thermocouple).status.pellet_level,usage.error_stats.*), not guessed.migrate_log_schema()so an existing user'scook_log.csv(append-only, predates this schema) upgrades losslessly instead of misaligning.pelletCLI + YAML cook presets #14 → feat: shareable Cook Report (self-contained HTML) #15 → feat: Wrap Coach -- rule-based hold/wrap advice (--coach) #16 → docs: reposition README around the full shipped feature set #17 → this one.Test plan
cook_log.csv-- all rows preserved exactly, no data loss