Skip to content

v2.0.4

Choose a tag to compare

@github-actions github-actions released this 30 May 02:13

v2.0.4

Highlights

v2.0.4 replaces the old "Cloudy" badge with a positive "Solar tracking active" indicator — the tile now shows solar is contributing rather than flagging that a suppressor is present. Each badge kind can be individually shown or hidden via a badges object in the card config, and the same visibility logic applies uniformly to both the tile winner badge and the more-info dialog. The sky compass also gains two visual fixes and a tri-state sun dot.

Added

  • Solar-active badge with per-badge opt-in — the solar badge now reads "Solar tracking active" and appears only when the solar handler is contributing, cloud is not the winner, and cloud suppression is actually configured on the integration. The old "Cloudy" badge is gone entirely; a blank tile is the correct state while cloud suppression is active. Each badge kind is individually gated by a badges config object (all on by default); setting any key to false hides that badge on both the tile and in the more-info dialog. The full visibility decision runs through selectVisibleBadges in src/lib/badge-visibility.ts, backed by the pure helpers isSolarActive, isCloudConfigured, isCloudWinner, solarTraceMatched, winnerBadgeKind, and buildSolarActiveContext. Badge icons for every kind are registered in BADGE_ICONS in src/const.ts. The BadgesConfig and SolarActiveContext types in src/lib/badge-visibility.ts define the config and runtime shapes. Unit tests cover the new logic, including configs saved before the badges key existed (#96, #99).

  • Tri-state sun dot on the sky compass — the sun marker on src/components/sky-compass.ts now renders in one of three states: gold when the sun is above the horizon and within the active window, light gold when above the horizon but outside the window, and gray when below the horizon (719ad34).

Fixed

  • Full 24-hour sun path on the sky compasssrc/components/sky-compass.ts now plots the complete 24-hour solar arc. The below-horizon portion of the path is drawn on the rim rather than omitted, so the sun's daily trajectory is always complete regardless of current elevation (06017ad).

  • Sky-compass legend overflow — the legend wraps below the compass plot on narrow layouts instead of overflowing the container. Fixed in src/components/sky-compass.ts (1b6a725).

Changed

  • Dev and harness scripts now guard against stale file watchers. No card behaviour changes (700c701).

Compatibility

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