github hello-sebastian/Energy-Horizon 1.0.2

latest releases: 1.1.0-beta, 1.1.0
one month ago

Added

Fixed

  • LTS measurement buckets (#45): charts could stay blank when Home Assistant returned only mean / min / max (no sum, change, or state)—typical for state_class: measurement entities such as a template sensor summing cumulative sources without state_class: total_increasing. The card now derives a per-bucket increment from max - min when those three fields are absent, and skips buckets with a negative range. For true cumulative meters, prefer declaring total_increasing in HA so LTS exposes sum. (#45) by @lukpep in #48
  • Chart grid height consistency: The chart plot area now maintains a stable, identical height across all axis modes (adaptive rich / standard) and “today” positions. containLabel: false with an always-fixed grid.bottom = GRID_BOTTOM_PX (38 px) eliminates the ~20 px height drift that occurred when grid.bottom switched between 0 and 42 depending on whether “today” was in range. The axis-tick-to-label gap (AXIS_TICK_LABEL_GAP_PX) is reduced from 8 → 4 px, tightening the visible bottom margin. Y-axis label space is now an explicit GRID_LEFT_PX = 56 px constant instead of relying on ECharts containLabel auto-expansion. All grid layout values are exported constants in src/card/axis/x-axis-rich-styles.ts and src/card/echarts-renderer.ts.
  • Adaptive X-axis — “now” tick label: The highlighted tick for the current instant always uses a two-line layout so the substantive label (adaptive date/time) sits below other tick captions. The short localized “Now” line and collision-only branching are removed; spacing uses one full two-line budget whenever “now” is shown (src/card/axis/x-axis-rich-styles.ts, src/card/echarts-renderer.ts).

New Contributors

Full Changelog: 1.0.1-beta...1.0.2

Don't miss a new Energy-Horizon release

NewReleases is sending notifications on new releases.