Skip to content

v2.3.0

Choose a tag to compare

@github-actions github-actions released this 02 Jun 14:49
· 90 commits to main since this release

Highlights: The forecast strip now plots against a fixed 24-hour timeline anchored at start-of-day, with a "now" marker tracking current time and clock tick labels along the axis. A spike that appeared at the chart edge when out-of-day samples crept past midnight is gone. The Lovelace card-picker shows live previews using a real entry_id discovered from your installation. Chart sun colors now match the sky compass.

✨ Features

  • Fixed 24h forecast axis with now marker — the forecast strip plots against a fixed day axis anchored at startOfDay() rather than scaling to whatever samples exist. dayFractionX() maps any timestamp to an x position; clock labels via formatClock() sit at tickX intervals along the bottom. A nowLine / nowCursor marker tracks the current time using nowX (shown only when nowInDay is true). Resolves #116 (#118).

  • Out-of-day spike fix — forecast sample points are tagged with an inDay flag (ts >= dayStart && ts <= dayStart + DAY_MS), and the polyline points is built only from samplePts that pass that test. Previously, samples just past midnight produced a spike at the chart edge. Resolves #116.

  • Live card-picker previews — all three cards (main, sky-compass, tile) now implement getStubConfig(), which calls fetchAcpConfigEntries() to discover a real Adaptive Cover Pro config entry from your installation. The Lovelace card-picker receives a valid entry_id and renders a live preview instead of a broken placeholder (abfa701).

  • Unified sun colors, slimmer compass legend — the elevation chart's sun coloring now uses the same sunDotState / sunBelowHorizon logic as the sky compass, so the chart and compass agree on daytime vs. below-horizon styling. The compass legend was slimmed down at the same time (12b5bdd).

🧹 Maintenance

  • README rewrite and screenshot capture tooling — the README is now structured around the tile card and sky compass as the primary user-facing entry points. A new scripts/capture-screenshots.mjs Playwright script regenerates the screenshot gallery, including the more-info dialog. A capture:readme npm one-shot rebuilds all README assets in one step. The capture-readme script was renamed to capture-readme-wiki to distinguish it from the new one. No runtime bundle impact.

📦 Install / Upgrade

Through HACS, update to v2.3.0. Restart not required for the card; reload your browser/dashboard.

HA caches ES modules aggressively. After updating, bump the ?v=2.3.0 query string on your Lovelace resource URL (/hacsfiles/adaptive-cover-pro-card/adaptive-cover-pro-card.js?v=2.3.0) to ensure browsers pick up the new bundle. A hard-refresh alone is not sufficient.

No config migration needed.

Compatibility: Home Assistant 2024.1+, Adaptive Cover Pro integration v2.22.1-beta.3 or newer.