Skip to content

Universal functions & New plot types

Compare
Choose a tag to compare
@dbuezas dbuezas released this 29 Jan 22:07
· 64 commits to master since this release
87b10d0

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