Skip to content

Advanced History v0.9.0

Latest

Choose a tag to compare

@andyblac andyblac released this 31 Jul 15:39

Version 0.9.0 adds full entity-attribute history support, improves state and domain-specific graphs, introduces a public API for custom card authors, and makes graph editing, bookmarks, date restoration and frontend updates more reliable.

Entity attribute history

  • Select an entity’s state, numeric attributes and categorical attributes.
  • Select multiple values from the same entity.
  • Display each selected attribute as an independent graph series.
  • Configure names, colours and styling separately for every attribute.
  • Define recorded values for categorical attributes to create state timelines.
  • Preserve attribute selections and categorical state maps in bookmarks and chart history.
  • Automatically size State Timeline graphs for their visible row count.
  • Show a settings icon for single-attribute targets.
  • Include area names in the attribute-selection dialog.
  • Include attribute display names in graph labels and tooltips by default.
Screenshot 2026-07-30 at 10 03 59 Screenshot 2026-07-30 at 10 14 48

Climate and other domain attributes

Advanced History now provides Home Assistant-style attribute treatment for supported domains:

  • Climate: current and target temperature
  • Humidifier: current and target humidity
  • Water heater: current and target temperature

Available attributes can be displayed together in both the main History panel and More Info graphs.

Domain-specific More Info graphs now:

  • Use native graph colours for supported attributes.
  • Match the size, placement and spacing of standard Advanced History More Info graphs.
  • Expose each automatic attribute as an editable entity row.
  • Preserve individual styling and selections for every attribute.
Screenshot 2026-07-30 at 10 17 40

State history improvements

  • State Timeline graphs now use raw recorder history across day, week, month, year and custom ranges.
  • Compact Home Assistant history responses are normalized before being passed to the graph card.
  • State graphs no longer use numeric automatic-detail aggregation.
  • Native Home Assistant state maps and theme colour variables are used for supported domains and device classes.
  • Binary sensors, switches, covers, locks, alarms, media players, backup states and other categorical domains now use their native state colours.
  • User-configured state maps continue to override generated native mappings.
  • State Timeline labels default to 14px.
  • Statistics Graph Chart Card v3.32 now controls both segment text and entity or attribute row-label sizing.
  • The card’s native state-map legend colouring is used without an Advanced History workaround.
Screenshot 2026-07-30 at 10 17 03

More Info History and Activity

  • More Info Activity now follows the selected History date range.
  • Changing between day, week, month, year, 24-hour and custom ranges refreshes both the graph and Activity list.
  • Recorder-backed state history and Activity remain synchronized across longer ranges.
  • Fixed History and Activity alignment, graph size, placement and spacing.
  • State-map colours remain consistent between the main Advanced History panel and More Info.
Screenshot 2026-07-30 at 10 18 27 Screenshot 2026-07-30 at 10 18 43

Graph editor improvements

  • The complete Statistics Graph Chart Card configuration is passed to its visual and YAML editors.
  • Home Assistant entity selectors display their configured entities correctly.
  • Area-aware entity names work in graphs and the visual editor.
  • Selected attributes appear as independent entity rows in the editor.
  • Attribute series include their attribute display name by default.
  • Newly introduced Card Default keys are merged automatically into existing panel and More Info configurations.
  • Explicitly configured values are preserved when new defaults are introduced.
  • Reset actions remain available for entity and default editor screens.

Bookmarks and chart state

  • Bookmark changes are detected immediately after entity, attribute or comparison changes.
  • The bookmark update action appears without requiring a page refresh.
  • Attribute selections and per-attribute styling are preserved in bookmarks and chart history.
  • Loading a bookmark no longer creates an unwanted Undo entry.
  • Stale charts and comparison banners remain hidden until restored date-range data is ready.

Date handling and automatic detail

  • Saved date ranges are restored reliably.
  • Empty charts reset the Energy date selector to Today.
  • A pending empty-chart reset no longer overrides a bookmark loaded immediately afterwards.
  • Graph cards rerender when Home Assistant confirms the restored period.
  • Automatic-detail banners can be dismissed.
  • A dismissed banner is shown again when a different eligible date range is selected.
  • Fixed banners remaining open after changing to a range that does not use automatic detail.
  • Fixed dismissal state leaking between alternating month and date selections.

Frontend loading

  • The complete Advanced History frontend module tree now uses a versioned URL.
  • Updates can no longer combine cached modules from different Advanced History versions.
  • Fixed the sidebar remaining visible while the Advanced History page rendered blank after an update.
  • Removed obsolete graph-card colour and editor workarounds now supported by Statistics Graph Chart Card v3.32.

Other fixes

  • Fixed visual-editor entity pickers failing outside Home Assistant’s inherited component context.
  • Fixed area names not appearing when enabled.
  • Fixed restored graphs occasionally remaining in a loading state.
  • Fixed categorical graphs using a single incorrect colour.
  • Fixed calendars and other state entities showing incomplete long-range history.
  • Fixed More Info Activity remaining on its original 24-hour range.
  • Updated validation to use the current CI runtime.

Advanced History card API

Advanced History exposes a public browser API that custom card authors can use to open entities in the Advanced History panel.

The API accepts:

  • An array of entity IDs
  • An optional visible date range
  • Compatible Statistics Graph Chart Card configuration
  • Entity order and hidden entities
  • Attribute selections
  • Comparisons and presentation options
  • Source graph height

The API is available through window.advancedHistory.openCard() and is documented in the Advanced History wiki.

Card authors can add support without making Advanced History a required dependency. No dashboard-card handoff button is included by Advanced History itself.

Pre-release configuration changes

Advanced History remains in pre-release development, so these unreleased configuration names changed without migration:

  • series was renamed to attributes.
  • include_area_on_duplicate_names was replaced by include_area_names.

If you manually used either old key while testing a beta build, update the saved YAML.

Requirements

  • Home Assistant with custom integration support
  • Statistics Graph Chart Card v3.32 or newer

Using the latest available Statistics Graph Chart Card release is recommended.

Updating from v0.7.0

  1. Update Statistics Graph Chart Card to the latest available version through HACS.
  2. Update Advanced History.
  3. Restart Home Assistant because this release contains Python changes.
  4. Reload Advanced History.

New default keys are merged automatically into existing Card Defaults while preserving explicitly configured values.