Skip to content

feat(wall): commute, Shabbat, trash, packages and to-do context cards - #1583

Merged
Gerrrt merged 2 commits into
mainfrom
wall/context-cards
Nov 19, 2026
Merged

Gerrrt merged 2 commits into
mainfrom
wall/context-cards

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 19, 2026

Copy link
Copy Markdown
Owner

What changed

The office wall's context card now has its five sources. Each card shows only while it applies, the highest one in this order wins, and the others are named on an "also:" line:

  1. Commute. The live Waze drive from home to the next timed event within three hours whose location looks like a place, with a leave-by time that allows five minutes. It shows from an hour before leave-by, turns amber within 10 minutes and red once leave-by has passed. Teams, Zoom, Meet, Webex and links are skipped.
  2. Shabbat / Yom Tov. From six hours before candle lighting until havdalah: candles, havdalah, the parsha and the Hebrew date.
  3. Trash. "Bins out tonight" from 16:00 the evening before pickup, then "Pickup today" until noon, with whether recycling goes out.
  4. Packages. Delivered today, ready for pickup or undelivered, by the labels set in 17TRACK, plus how many are in transit. Tracking numbers are never shown.
  5. To-do. Open items from the lists labelled wall_todo.
  6. The Hebrew word, as before, when none of these applies.

The files:

  • home-assistant/packages/: new wall_commute.yaml, wall_shabbat.yaml, wall_trash.yaml, wall_deliveries.yaml and wall_todo.yaml, each making a neutral sensor.wall_*.
    • Entities are picked by label, or by the end of the entity id within their integration, so the repo names no list, calendar or place.
    • Each sensor is unavailable, and its card hidden, until its integration or helpers are set up in the UI.
  • Caddyfile: five fixed handles, /api/ha/{commute,shabbat,todo,trash,deliveries}.
  • wall/wall.js and wall.css: the five cards and the precedence rules. A card can now have a computed title, which shows the Yom Tov's name.

Why

This is the third of five steps in bringing the mockup's useful ideas onto the wall while keeping it readable from the chair (ADR-0119). Phase 1 was #1578 and phase 2 was #1579.

Blast radius

This touches only trinity's sensitive tier: the wall page, five Caddy handles and five HA packages. make up restarts Home Assistant, as it does on every deploy of this stack.

  • 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

Two things a reviewer should know:

  • New egress. The commute card sends the next event's location to Waze every five minutes, but only while there is such an event. This is the first wall data to leave the house, and docs/security.md now says so.
  • Wider read access. The wall's HA token can now read five more sensor.wall_* entities, and docs/security.md's count goes to eighteen. That section also said the wall shows two days of the schedule. It has shown seven since feat(wall): a week, an up-next countdown and a context card #1578, and now says so.

Verification

  • python3 scripts/check_docs.py: docs OK.

  • ./scripts/lint.sh: passed, but 11 checks were skipped because this Windows workstation has no Docker daemon. yamllint and ruff ran on local binaries, not the pinned versions.

  • I checked each action's request and answer shape against Home Assistant's source code: waze_travel_time.get_travel_times, seventeentrack.get_packages, todo.get_items, and the Jewish Calendar's sensor names.

  • I previewed the page at 1920x1080 against stubbed /api answers. Every card rendered on its own, and all of them at once showed the commute card with the "also:" line. The to-do card's "+N more" also worked. There were no console errors.

  • The templates have not run inside Home Assistant. CI's config check is their first real test.

  • make validate passes

  • Deployed to the lab and confirmed working: still to do. After make up, each card needs its UI setup: add the Jewish Calendar, Waze Travel Time (region US) and 17TRACK integrations, label a to-do list wall_todo, and set input_select.trash_pickup_day. Then /api/ha/<name> should stop reading unavailable.

  • Docs updated (docs/, service README, or docs/roadmap.md)

🤖 Generated with Claude Code

Five HA packages give the wall's context card its sources: Waze to the
next event with an address, the Jewish Calendar's candle lighting and
havdalah, a trash schedule from helpers, 17TRACK's packages and the
to-do lists labelled wall_todo. Each card shows only while it applies,
in a fixed precedence, with the Hebrew word as the fallback. Every
source is unavailable, and its card hidden, until it is set up in HA.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 19, 2026 15:03

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.

🟡 Changes recommended

The routing fallback can send unlabelled calendar locations to Waze without explicit opt-in, violating the documented exclusion policy.

5 open issues
What changed in this PR

This implements the third phase of the office wall dashboard plan in ADR-0119, adding household context cards while retaining the Hebrew word as the fallback.

Changes:

  • Adds five Home Assistant sources for commute, Shabbat/Yom Tov, trash, packages and to-do items.
  • Adds time-sensitive card selection, priority ordering and an “also” line for other applicable cards.
  • Exposes five fixed API endpoints and documents setup, expanded read access and Waze egress.
File Description
stacks/​sensitive/​wall/​wall.js Fetches and renders the five sources with priority and visibility rules.
stacks/​sensitive/​wall/​wall.css Styles context headings, urgency states and to-do lists.
stacks/​sensitive/​README.md Documents card behavior and required UI setup.
stacks/​sensitive/​home-assistant/​packages/​wall_trash.yaml Derives pickup dates and recycling schedules from helpers.
stacks/​sensitive/​home-assistant/​packages/​wall_todo.yaml Collects open items from labelled to-do lists.
stacks/​sensitive/​home-assistant/​packages/​wall_shabbat.yaml Combines Jewish Calendar times and date information.
stacks/​sensitive/​home-assistant/​packages/​wall_deliveries.yaml Summarizes actionable 17TRACK packages by label.
stacks/​sensitive/​home-assistant/​packages/​wall_commute.yaml Requests Waze routes and calculates leave-by times.
stacks/​sensitive/​home-assistant/​packages/​README.md Catalogs the five new sensor packages.
stacks/​sensitive/​Caddyfile Adds fixed endpoints for the context sensors.
docs/​security.md Documents eighteen readable entities, week-long calendar access and Waze egress.
docs/​changelog.md Records the context-card additions and verification limits.

Review effort: Balanced

Review on #1583:
- wall_commute.yaml reads only calendars labelled wall_commute, and none
  when none is, instead of the wall's all-calendars fallback. It asks
  calendar.get_events itself, so Waze gets the whole location rather
  than the wall's 60-character one.
- wall_deliveries.yaml and wall_todo.yaml count every item before
  shortening the lists, and the wall shows "+N more" for the rest.
- wall_todo.yaml sets default_entity_id, since the name alone makes
  sensor.wall_to_do and the Caddy handle reads sensor.wall_todo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gerrrt
Gerrrt merged commit 1908798 into main Nov 19, 2026
9 checks passed
@Gerrrt
Gerrrt deleted the wall/context-cards branch November 19, 2026 16:02
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