Skip to content

feat(wall): a week, an up-next countdown and a context card - #1578

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

Gerrrt merged 2 commits into
mainfrom
wall/calendar-weather-context

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 19, 2026

Copy link
Copy Markdown
Owner

What changed

The office wall gets a seven-day calendar (today and tomorrow in full, the rest of the week below in grey while there is room), an Up next countdown ring in the header, and today's high/low, next rain and next sunrise or sunset beside the weather. The Power card's cell becomes a context card that shows one thing at a time by precedence. For now that is a Hebrew word of the day from a static list in the page. The UPS's mains or battery state, charge and runtime move into mjolnir's node tile, which turns red and pulses on battery.

  • home-assistant/packages/wall_calendar.yaml: 7 days instead of 2, capped at 40 events (under the recorder's 16 KB attribute limit).
  • home-assistant/packages/wall_weather.yaml (new): sensor.wall_weather from weather.get_forecasts (daily and hourly) on weather.forecast_home, plus sun.sun, every 15 minutes.
  • Caddyfile: one new fixed handle, /api/ha/forecast → sensor.wall_weather.
  • wall/: renderNext, the week in renderToday, a CONTEXT precedence list with renderContext, the UPS in renderNodes; renderPower removed.

Why

This is the first of five steps that bring the useful ideas from a denser Claude.ai mockup of the wall onto it without dropping text below what reads from the chair, 7 ft from a 40" screen (ADR-0119). The later steps fill the context card: commute, Shabbat, trash, deliveries, now playing and dogs. They also add inside climate and lab depth.

Blast radius

trinity's sensitive tier only: the wall page, one Caddy handle, and two HA packages. make up restarts Home Assistant, as 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

The wall's HA token can now read one more entity, sensor.wall_weather: the forecast and sun times for the home zone. docs/security.md's count goes from ten to eleven.

Verification

  • python3 scripts/check_docs.py: docs OK.

  • ./scripts/lint.sh: passed, but 11 checks were skipped (no Docker daemon on the Windows workstation): markdownlint, shellcheck, actionlint, zizmor, packer ×2, tofu ×3, ansible-lint and editorconfig-checker. yamllint and ruff ran on local binaries, not the pinned versions.

  • I previewed the page at 1920x1080 in a browser, against a stub that answers every /api/q and /api/ha name with sample data. I checked the countdown at 12 minutes (amber arc), the week rows, the forecast lines, and the UPS tile on battery with an alert firing. There were no console errors.

  • make validate was not run here (no Docker).

  • make validate passes

  • Deployed to the lab and confirmed working: still to do. After make up, /api/ha/forecast must not read unavailable, and the wall needs checking by eye.

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

🤖 Generated with Claude Code

The calendar sensor now covers seven days: the Today panel keeps today and
tomorrow in full and shows the rest of the week below them while there is
room, and the header counts down to the next timed event. A new
wall_weather package gives the header today's high and low, the next rain
and the next sunrise or sunset, through /api/ha/forecast. The Power card's
cell becomes a context card that shows one thing at a time by precedence,
a Hebrew word of the day for now; the UPS's state, charge and runtime move
into mjolnir's tile, which turns red on battery.

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

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

Unresolved issues can suppress UPS battery warnings, clip charge information, show past sun events as upcoming, and discard valid weather data when today’s daily forecast is missing.

4 open issues
What changed in this PR

This PR expands the office wall dashboard with a seven-day calendar, richer weather details, and a context card while keeping Home Assistant access behind fixed Caddy endpoints.

Changes:

  • Adds a week-long agenda and an “Up next” countdown ring.
  • Adds forecast highs/lows, upcoming precipitation, and sunrise/sunset details.
  • Replaces the Power card with a word-of-the-day context card and moves UPS status into mjolnir’s node tile.
File Description
stacks/​sensitive/​wall/​wall.js Renders the expanded calendar, countdown, forecast, context card, and UPS tile.
stacks/​sensitive/​wall/​wall.css Styles the new components and battery warning.
stacks/​sensitive/​wall/​index.html Adds countdown and forecast elements; replaces the Power card.
stacks/​sensitive/​README.md Documents the expanded wall features and data sources.
stacks/​sensitive/​home-assistant/​packages/​wall_weather.yaml Adds the forecast and sun-time aggregate sensor.
stacks/​sensitive/​home-assistant/​packages/​wall_calendar.yaml Extends calendar retrieval to seven days and 40 events.
stacks/​sensitive/​home-assistant/​packages/​README.md Documents the updated calendar and new weather package.
stacks/​sensitive/​Caddyfile Exposes the forecast sensor through a fixed endpoint.
docs/​security.md Updates the exposed entity count and calendar scope.
docs/​changelog.md Records the dashboard changes and verification limits.

Review effort: Balanced

Comment thread stacks/sensitive/wall/wall.js Resolved
Comment thread stacks/sensitive/wall/wall.js Resolved
Comment thread stacks/sensitive/wall/wall.js Resolved
Review of #1578:
- wall_weather stays available while either forecast answers; with no
  daily entry for today its state is `none`, so the rain and the sun still
  reach the wall. No unit, since the state is not always a number.
- mjolnir's tile shows on battery from upsSecondsOnBattery alone, with
  "—" for a missing charge, and its role is short enough for one line.
- The next sunrise or sunset skips a time already past, since the sensor
  is up to fifteen minutes old.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Gerrrt
Gerrrt merged commit 3982d49 into main Nov 19, 2026
9 checks passed
@Gerrrt
Gerrrt deleted the wall/calendar-weather-context branch November 19, 2026 04:13
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