v2.3.0
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 viaformatClock()sit attickXintervals along the bottom. AnowLine/nowCursormarker tracks the current time usingnowX(shown only whennowInDayis true). Resolves #116 (#118). -
Out-of-day spike fix — forecast sample points are tagged with an
inDayflag (ts >= dayStart && ts <= dayStart + DAY_MS), and the polylinepointsis built only fromsamplePtsthat 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 callsfetchAcpConfigEntries()to discover a real Adaptive Cover Pro config entry from your installation. The Lovelace card-picker receives a validentry_idand 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/sunBelowHorizonlogic 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.mjsPlaywright script regenerates the screenshot gallery, including the more-info dialog. Acapture:readmenpm 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.