Skip to content

v2.2.0

Choose a tag to compare

@github-actions github-actions released this 31 May 19:24
· 103 commits to main since this release

Highlights: The sky compass gains a 24h sun-elevation chart clipped to your window's FOV and elevation limits, the sun dot darkens when the sun is below the horizon, and the tile card now reliably shows the Auto badge whenever the cover is actually under automatic control.

✨ Features

  • Sun Today elevation chart — a new ElevationChart component plots the sun's elevation across the full 24-hour day as a curve, clipped to the window's configured FOV and elevation limits via elevationBandFraction(). Times when the sun is inside the window's active band are immediately visible. The chart appears in both the sky compass card and the tile card more-info dialog. A show_elevation_chart toggle (default on) lets you hide it on either card type. Resolves #46 (#113).

  • Night sun ambient color — when the sun is below the horizon, the .sun dot on the sky compass now renders in a dimmed amber rather than the full daytime color. The .sun.down CSS rule handles the transition; fill/stroke/opacity transitions are preserved (#113, f12a8fb).

  • Auto badge fix for tile card — the tile card now co-renders an independent "Auto" line using a new badge-visibility.ts helper that correctly accounts for manual override, force wins, and custom_position+bypass-auto-control states. Previously the badge was hidden or misreported in several automatic-control scenarios. Default tile layout flipped to detailed. Resolves #112 (037952f).

  • Shared editor footereditorFooter() is extracted into editor-footer.ts and reused across the main, sky compass, and tile card editors, removing duplicated markup (f12a8fb).

🧹 Maintenance

  • Sky compass SVG snap fix — removed the CSS transition on cx/cy from .sun and .moon-lit elements in sky-compass.ts. The dot was elastic-tweening between positions on data updates rather than snapping to the exact computed coordinate. Fill, stroke, and opacity transitions are kept (076ec5c).

  • Dev time-lapse capture toolingscripts/capture-timelapse.mjs drives the harness through a simulated day with Playwright-controlled Chromium and encodes the sky compass animation to a looping GIF. A window.__acpCapture bridge gated behind ?capture in the harness wires the two together. No impact on the distributed bundle (#114).

📦 Install / Upgrade

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

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

No config migration needed. show_elevation_chart defaults to true on both card types; add it explicitly only if you want to hide the chart.