Skip to content

Releases: dbuezas/lovelace-plotly-graph-card

New `reset_every` option in the `integrate` filter. Help with deprecated options.

30 Jan 15:52
Compare
Choose a tag to compare

What's Changed

  • Added reset_every and offset options to the integrate filter by @dbuezas in #210
  • Add explanations and alternatives to the deprecated options to the readme by @dbuezas in 230ae96

Full Changelog: v3.0.1...v3.0.2

Minor fixes

30 Jan 11:04
1b2de35
Compare
Choose a tag to compare

What's Changed

  • Fix some props in defaults.yaxes being ignored by @dbuezas in #208
  • Adds deprecation warning on show_value.right_margin by @dbuezas in #209

Full Changelog: v3.0.0...v3.0.1

Universal functions & New plot types

29 Jan 22:07
87b10d0
Compare
Choose a tag to compare

The biggest and most complex release of the year!

image

  • YAMLs of these examples here

Improvements

  • Universal functions allow you to communicate across the yaml, combine datapoints from multiple entities into one, add the state of a sensor to the name of the trace, etc.
  • Added almost all plotly plot types, including histogram, histogram2d, 3dscatter, surface, heatmap, piechart, ... Find inspiration here (maps not included) (BEWARE: this made the card heavier to download)
  • New filters! (trendline, delta, deduplicate_adjancets)
  • show_value now can print out of the plotting area
  • Semi-persistant cache: resetting the plot doesn't delete data anymore
  • Efficiency: offset entities share the same cache with non-offset ones.
  • Added a delta filter (more to come!)
  • New raw_plotly_config yaml option to disable all in-built defaults (useful for non-standard plots)
  • Home Assistant themes' color variables available inside Universal Functions ($fn)
  • Respect fixed range axes when pinch zooming
  • Improved pinch to zoom algorithm
  • Universal $fn functions can access other values from the yaml, even if those are also $fn computed.
  • UI Informs of out of order $fn dependencies.
  • $fn execution is strictly defined (top to bottom, shallow to deep, aka depth first)
  • Errors in the yaml or functions don't interrupt plotting but are shown in the UI with intuitive phrasing.
  • ...

Breaking Changes

The UI will let you know which plots are affected, how, and what to do.

  • no_theme: renamed to ha_theme (inverted logic)
  • no_default_layout: replaced with more general raw_plotly_config
  • offset: renamed to time_offset to avoid conflicts with bar-offset
  • lambda: removed, use filters instead
  • significant_changes_only: removed, it is now always set to false
  • minimal_response: removed, if you need attributes use the 'attribute' parameter instead.
  • show_value.right_margin: removed, the values are shown out of the plotting area. use time_offsets to make space for them

What's Changed

New Contributors

Feedback welcome in the discussion

Full Changelog: v2.1.0...v3.0.0

v3.0.0-beta2

28 Jan 08:02
Compare
Choose a tag to compare
v3.0.0-beta2 Pre-release
Pre-release

Whats's changed

🌟 Universal Functions and new plot types 🌟

27 Jan 21:43
Compare
Choose a tag to compare

The biggest and most complex release of the year!

Open for beta testing!

image

  • YAMLs of these examples here
  • WIP readme here

What's Changed

Improvements

  • Universal functions allow you to communicate across the yaml, combine datapoints from multiple entities into one, add the state of a sensor to the name of the trace, etc.
  • show_value now can print out of the plotting area
  • Semi-persistant cache: resetting the plot doesn't delete data anymore
  • Efficiency: offset entities share the same cache with non-offset ones.
  • Added almost all plotly plot types, including histograms, 3dscatter, surface, heatmap, piechart, ... Find inspiration here (maps not included)
  • Added a delta filter (more to come!)
  • New raw_plotly_config yaml option to disable all in-built defaults (useful for non-standard plots)
  • Home Assistant themes' color variables available inside Universal Functions ($fn)
  • Respect fixed range axes when pinch zooming
  • Improved pinch to zoom algorithm
  • Universal $fn functions can access other values from the yaml, even if those are also $fn computed.
  • UI Informs of out of order $fn dependencies.
  • $fn execution is strictly defined (top to bottom, shallow to deep, aka depth first)
  • Errors in the yaml or functions don't interrupt plotting but are shown in the UI with intuitive phrasing.
  • ...

Breaking Changes

The UI will let you know which plots are affected, how, and what to do.

  • no_theme: renamed to ha_theme (inverted logic)
  • no_default_layout: replaced with more general raw_plotly_config
  • offset: renamed to time_offset to avoid conflicts with bar-offset
  • lambda: removed, use filters instead
  • significant_changes_only: removed, it is now always set to false
  • minimal_response: removed, if you need attributes use the 'attribute' parameter instead.
  • show_value.right_margin: removed, the values are shown out of the plotting area. use time_offsets to make space for them

Beware: beta version, APIs may change

Here is how to enable beta releases in HACS

Feedback welcome in the discussion

Full Changelog: v2.1.0...v3.0.0-beta

v2.1.0

06 Jan 18:41
Compare
Choose a tag to compare

Two new big features!

Filters

Lambdas are deprecated and replaced with a much more user friendly concept: Filters! If you are familiar with ESPHome, you already know them.

- entity: sensor.fridge_power
  filters:
    - integrate:
        unit: h # resulting unit_of_measurement will be W/h
    - sliding_window_moving_average:
        window_size: 10
        extended: true

See readme section

Note: Lambdas still work, but their usage is discouraged. Porting them to filters should be quite simple, and your yaml will become much simpler and intuitive. I'll take requests in github to add more built-in filters on top of the 15 that come with this version.

Pinch to zoom / tap, tap drag to zoom

PlotlyJS, the underlying plotting library, is missing proper support for gesture based zooming. This version brings custom support for it.
Just zoom with two fingers, or double tap, and drag down/up without releasing your finger from the second tap.

New yaml config options:

  • disable_pinch_to_zoom
  • entities/filters
  • entities/internal
  • entities/extend_to_present

Various fixes

  • Offset entities continue too far into the future
  • unknown and null states not always plotted as trace gaps

PRs

Full Changelog: v1.8.4...v2.1.0

v2.0.2-beta

03 Jan 20:13
Compare
Choose a tag to compare
v2.0.2-beta Pre-release
Pre-release

Multiple fixes and new filters

Full Changelog: v2.0.1-beta...v2.0.2-beta

v2.0.1-beta

02 Jan 22:53
Compare
Choose a tag to compare
v2.0.1-beta Pre-release
Pre-release

v2.0.0-beta: new feature: Filters

02 Jan 22:36
Compare
Choose a tag to compare
Pre-release

What's Changed

  • Filters suport
  • Deprecated lambdas - WARNING there may be some incompatibilities

Full Changelog: v1.8.4...v2.0.0-beta

v1.8.4

21 Dec 08:08
76f951a
Compare
Choose a tag to compare

What's Changed

  • Fix default entity offset #156
  • Fix trace ghosting #158
  • Fix "undefined" is not valid JSON error in the UI when the last visible datum is null commit

Full Changelog: v1.8.3...v1.8.4