Skip to content

feat(wall): a dogs card for when a walk or a feeding is overdue - #1586

Merged
Gerrrt merged 1 commit into
mainfrom
wall/dogs
Nov 19, 2026
Merged

Gerrrt merged 1 commit into
mainfrom
wall/dogs

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 19, 2026

Copy link
Copy Markdown
Owner

What changed

Phase 5, the last of the wall's steps. A new Home Assistant package, wall_dogs.yaml, makes sensor.wall_dogs: when the dogs were last walked and fed, and how many hours each may go. The wall reads it at a new Caddy handle, /api/ha/dogs, and shows a Dogs context card in amber while either is overdue. The card sits after Packages and before To-do.

  • Recording is by hand. There are two dashboard buttons (input_button.dogs_walked, input_button.dogs_fed), and any NFC tag labelled wall_dog_walk or wall_dog_feed in the UI counts too. The newest press or scan wins. The labels pick the tags, so no tag or dog is named in the repo.
  • The intervals are input_numbers, in hours. Both start at 0, which means not tracked: the sensor is unavailable and the card stays hidden until they are set in the UI.
  • A walk or feeding that has never been recorded counts as overdue once its interval is set, so a fresh setup shows on the card.
  • The planned Alexa routine is left out, because this house does not expose Home Assistant to Alexa. The changelog says so.

Why

The wall plan's fifth step, after #1578, #1579, #1583 and #1584. No device knows when the dogs were walked or fed, so it is recorded by hand.

Blast radius

The wall page and Home Assistant on trinity only. A new package, its helpers, and one more read-only GET handle in the wall's Caddy site block. The wall now reads twenty HA entities instead of nineteen (docs/security.md, docs/architecture.md).

  • No change to network segmentation or firewall rules
  • No new port published to a VLAN that could not already reach the service
  • No credential added outside secrets/*.sops.yaml

Verification

  • make validate passes: not run locally, so it is left to CI. These were run instead:
    • scripts/check_docs.py passes.
    • yamllint -s on the package passes.
    • ./scripts/lint.sh passes with 11 checks skipped: actionlint, zizmor, packer ×2, tofu ×3, ansible-lint and editorconfig-checker, all for lack of Docker or pipx.
  • Deployed to the lab and confirmed working: not yet. In the browser preview at 1920x1080, with stubbed answers:
    • Walk overdue: "Walk the dogs · Walked 7 h ago · Fed 3 h ago".
    • Both overdue, the walk never recorded: "Walk and feed the dogs · Walked: not recorded yet · Fed 13 h ago".
    • Nothing overdue: the card falls back to the word of the day.
    • No script errors.
  • Docs updated: docs/security.md, docs/architecture.md, stacks/sensitive/README.md, the packages README and docs/changelog.md.

After deploy:

  • Set both intervals.
  • Add the buttons to a dashboard, and label any tags.
  • curl /api/ha/dogs from trinity.

🤖 Generated with Claude Code

wall_dogs.yaml makes sensor.wall_dogs from two dashboard buttons and any
NFC tag labelled wall_dog_walk or wall_dog_feed, with how many hours each
may go set in the UI (0, the default, is not tracked). The wall reads it
at /api/ha/dogs and shows a Dogs context card, after packages and before
the to-do list, while either is overdue.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 19, 2026 18:57
@Gerrrt
Gerrrt enabled auto-merge (squash) November 19, 2026 18:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the Dogs overdue-card changes.

No open issues 🎉

What changed in this PR

Completes the wall dashboard’s fifth phase by adding an amber Dogs card when a walk or feeding is overdue, using a new Home Assistant summary sensor.

Changes:

  • Adds walk/feed recording through dashboard buttons and labelled NFC tags, with configurable intervals that default to disabled.
  • Places Dogs after Packages and before To-do, treating never-recorded activities as overdue once tracking is enabled.
  • Adds the fixed /api/ha/dogs endpoint and updates setup, security and architecture documentation for twenty exposed Home Assistant entities.
File Description
stacks/​sensitive/​wall/​wall.js Polls the dogs sensor and renders the overdue card.
stacks/​sensitive/​README.md Documents card precedence and interval setup.
stacks/​sensitive/​home-assistant/​packages/​wall_dogs.yaml Defines recording buttons, interval helpers and the summary sensor.
stacks/​sensitive/​home-assistant/​packages/​README.md Documents the new package and its defaults.
stacks/​sensitive/​Caddyfile Adds the fixed dogs state-read endpoint.
docs/​security.md Documents the additional household data and entity count.
docs/​changelog.md Records the feature, omitted Alexa integration and preview-only verification.
docs/​architecture.md Updates the wall’s Home Assistant entity count to twenty.

Review effort: Balanced

@Gerrrt
Gerrrt merged commit 49c524d into main Nov 19, 2026
10 checks passed
@Gerrrt
Gerrrt deleted the wall/dogs branch November 19, 2026 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants