v2.2.0
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
ElevationChartcomponent plots the sun's elevation across the full 24-hour day as a curve, clipped to the window's configured FOV and elevation limits viaelevationBandFraction(). 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. Ashow_elevation_charttoggle (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
.sundot on the sky compass now renders in a dimmed amber rather than the full daytime color. The.sun.downCSS 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.tshelper that correctly accounts for manual override, force wins, andcustom_position+bypass-auto-control states. Previously the badge was hidden or misreported in several automatic-control scenarios. Default tile layout flipped todetailed. Resolves #112 (037952f). -
Shared editor footer —
editorFooter()is extracted intoeditor-footer.tsand reused across the main, sky compass, and tile card editors, removing duplicated markup (f12a8fb).
🧹 Maintenance
-
Sky compass SVG snap fix — removed the CSS
transitiononcx/cyfrom.sunand.moon-litelements insky-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 tooling —
scripts/capture-timelapse.mjsdrives the harness through a simulated day with Playwright-controlled Chromium and encodes the sky compass animation to a looping GIF. Awindow.__acpCapturebridge gated behind?capturein 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.