Skip to content

v2.0.5

Choose a tag to compare

@github-actions github-actions released this 30 May 21:00

v2.0.5

Highlights

v2.0.5 fixes three interconnected sky-compass problems that caused visible errors for users whose browser timezone differs from their home's, whose windows face north at high latitude, or whose sunrise/sunset markers were pinned at the edge of the FOV wedge instead of sitting at the actual horizon crossing.

Fixed

  • Timezone-aligned sun day — the 24-hour sample window is now anchored to hass.config.time_zone via the new startOfDayInZone() helper in src/lib/sun-model.ts. Previously, when the browser and home ran on different offsets, the entire sun curve, FOV wedge, and rise/set markers shifted by the difference. The sun path now always reflects the home's local day, not the browser's.

  • Multiple FOV crossings drawn on the sky compassfindFovWindow() in src/lib/geometry.ts has been replaced with findFovWindows(), which returns all disjoint crossing runs instead of stopping at the first one. North-facing windows at high latitude catch the sun twice in summer: once on the sunrise arc and again on the sunset arc. The sky compass in src/components/sky-compass.ts now draws a secondary fov-extra wedge for each additional crossing. Supporting helpers fovRunBounds() and arcsOverlap() are also new in src/lib/geometry.ts. The elevation chart in src/components/elevation-chart.ts renders multiple FOV bands, using the new fov_windows i18n key (added in English and French).

  • Sunrise/sunset marker placementsunriseSetAzimuths() in src/lib/sun-model.ts now detects actual horizon crossings: below-to-above for sunrise, above-to-below for sunset. Previously it reported the first and last above-horizon sample, which pinned the markers at the edge of the FOV wedge on windows where the sun was already up when the sample range began. Markers were also enlarged with a white stroke to improve visibility (#92, #101).

Compatibility

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