Skip to content

Releases: kalkih/mini-graph-card

v0.4.0 ⚡️

17 May 13:33
Compare
Choose a tag to compare

This version brings many improvements to how sensor history is fetched and handled, this should result in much quicker loading of the graph.
These improvements should also reduce stress on the HA backend, since the card now cache history data locally in the browser and only request data it's missing.

Thanks @bramkragten for the contributions!

ADDED

  • Local caching of history data (#88) - (@bramkragten)
  • New update_interval option, set a custom update interval of history data, instead of on every state change (#88) - (@bramkragten)

CHANGED

  • Now only fetching new history since last update, instead of all history every time (#88) - (@bramkragten)

FIXED

  • Jitter when hovering over points in particular configs (#87)

v0.3.3

11 Apr 00:56
Compare
Choose a tag to compare

Fixed: Missing history entry values, previously assigned the last known moving average instead of the last known absolute value (#41)

v0.3.2

24 Mar 13:54
Compare
Choose a tag to compare
  • New: Dates are now formatted by locale
  • Fixed: Improved secondary state text alignment (#75)
  • Fixed: Max bars check for bar chart

v0.3.1: More customization & fixes

18 Mar 21:40
Compare
Choose a tag to compare
  • New: Options name_adaptive_color, icon_adaptive_color in show option object to display the name/icon in the entity color (#67, #50)
  • New: Option state_adaptive_color in entity object, to display the state in the entity color (#67)
  • New: Option show_indicator in entity object, to display a color indicator next to the state (#72)
  • New: Option font_size_header added (#53)
  • New Added date (day/weekday) to timestamps when timeframe > 24 (#61)
  • New It's now possible to set hours_to_show to float values and values lower than one.
  • Changed Legend color indicators are now ciruclar instead of rectangular
  • Fixed: Bar chart now shows correct amount of bars
  • Fixed: Points should no longer be cut off when at the very bottom of the graph
  • Fixed: Timestamps for bars
  • Fixed: Missing paddings between card elements when group option was set to true
  • Fixed: Unwanted overflow when border radius applied
  • Fixed: Improved compatibility (#64)

v0.3.0: Bar charts

18 Feb 21:49
Compare
Choose a tag to compare
  • New: Support for bar charts (#49)
  • New: Parameter bar added to show -> graph, display graph as a bar chart (#49)
  • New: Option unit added to entity object, overrides unit set in base
  • Change: graph option now defaults to line (#49)
  • Change: Font size of additional displayed state to the same as the main state (when a single additional state is displayed).
  • Fixed: Color thresholds not being applied correctly with several cards in the same view (#52, #54)
  • Fixed: height option can now be set to zero
  • Fixed: Timestamps are now properly center aligned if state is center aligned

v0.2.4: Quick fixes

13 Feb 19:28
Compare
Choose a tag to compare
  • New: Parameter fade for show -> fill option, makes the fill fade out
  • Fixed: History entries with null state breaking graph (#46)
  • Fixed: Compatibility issues with the custom swiper-card
  • Fixed: Broken extrema

v0.2.3: Manually set bounds, Improved color thresholds & more

13 Feb 15:05
Compare
Choose a tag to compare
  • New: Option color_thresholds (#45)
  • New: Color thresholds now changes dynamically with the history (#45)
  • New: Options lower_bound & upper_bound added (#40)
  • New: Option color to entity object, overrides other color options
  • Change: entities option now always requires a list, changed in order to be compatible with "Unused entities" UI (#44) (BREAKING CHANGE)`
  • Change: Default value for points_per_hour changed from 1 to 0.5.
  • Fixed: Updated lit-element to v2.0.1
  • Fixed: Zero values show up as current value when hovered over (#41)
  • Fixed: Added additional checks for empty history
  • Removed: entity option, which was previously deprecated since v0.2.0, use entities option (#44) (BREAKING CHANGE).
  • Removed: line_color_above and line_color_below, see new color_thresholds option (#45) (BREAKING CHANGE)

v0.2.2: New labels & more improvements

08 Feb 02:29
Compare
Choose a tag to compare
  • New: Label design (#35)
  • New: Entity name now visible in title when graph point is hovered over (#39)
  • New: hover parameter for labels
  • New: Now rendering missing history as a horizontal line up to the first available history entry (similar to the default history-graph)
  • Change: Made labels visible on hover by default
  • Change: Label font size now has a min size and scales relative to the font_size option
  • Fixed: Significantly improved accuracy of graph point values
  • Fixed: Only fetch history for updated entities, use cache to update rest
  • Fixed: Graph points not applying threshold color from line_color_above / line_color_below (#38)
  • Fixed: Invalid timestamps when combining points_per_hour & hours_to_show (#37, #36)
  • Fixed: Misaligned legend text
  • Fixed: Missing bottom padding when graph is hidden
  • Fixed: Invisible lines when graph was updated after not covering the full width on load
  • Fixed: Align timestamps right when align_state is set to right

v0.2.2-beta

06 Feb 20:38
Compare
Choose a tag to compare
v0.2.2-beta Pre-release
Pre-release
  • New: Label design (#35)
  • New: Entity name now visible in title when graph point is hovered over (#39)
  • New: hover parameter for labels
  • Change: Made labels visible on hover by default
  • Change: Label font size now has a min size and scales relative to the font_size option
  • Fixed: Graph points not applying threshold color from line_color_above / line_color_below (#38)
  • Fixed: Invalid timestamps when combining points_per_hour & hours_to_show (#37, #36)
  • Fixed: Misaligned legend text
  • Fixed: Missing bottom padding when graph is hidden

v0.2.1: Fixes & multiple states

03 Feb 01:16
Compare
Choose a tag to compare
  • Added: New hour24 option to choose time format between 12-hour/24-hour clock

  • Added: Support for showing multiple sensor states, see new show_state option for the entity object (#33)

  • Added: Ability to press/click on entities in the graph legend to bring up their "more info" dialog (#31)

  • Fixed: Responsive design of the graph legend

  • Fixed: NaN values in extrema (#34)

  • Fixed: Extrema not rendering (#32)

  • Fixed: Times on points going backwards (#30)