Skip to content

Releases: andyblac/Advanced-History-Integration

Advanced History v0.9.0

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.

Advanced History 0.7.0

Choose a tag to compare

@andyblac andyblac released this 23 Jul 09:06

This is a substantial update containing all changes since 0.6.1.

Important upgrade notes

  • Update Statistics Graph Chart Card to its latest version before installing this release.
  • After updating Advanced History, restart Home Assistant and refresh the browser/app frontend.
  • Existing installations must remove and re-add the More Info service to receive the new default date-picker modes:
    • Day
    • Week
    • Month
    • Year
    • Last 24 hours
  • If you customized the More Info Card Defaults YAML, copy it before removing the service so it can be restored afterwards.
  • Existing bookmarks and Advanced History settings are retained.

Highlights

Shareable charts - in Bookmarks dialog.

  • Added shareable chart links.
  • Shared links contain the targets, chart configuration, date range, comparison and visibility state required to recreate the chart.
  • Links can be opened on another device or by another Home Assistant user with access to the referenced entities.
Screenshot 2026-07-23 at 09 57 40

Privacy-safe diagnostics

  • Added a diagnostics report to Graph Settings.
  • Reports include:
    • Advanced History, Home Assistant and Statistics Graph Chart Card versions
    • browser, language and time-zone information
    • selected period and comparison
    • sanitized chart configuration
    • detected data sources
    • entity metadata relevant to chart rendering
  • Entity IDs are replaced with anonymous aliases.
  • Friendly names, registry IDs, history values, bookmarks and private entity details are excluded.
  • Diagnostics can be previewed before copying.
Screenshot 2026-07-23 at 09 52 10 Screenshot 2026-07-23 at 09 52 24

Actual chart data-source badges

Charts now indicate which Home Assistant data source was used:

  • Recorder history
  • Long-term statistics
  • Mixed sources
  • Determining source

Detection follows the requests made by the rendered chart and refreshes when the date range or comparison changes.

Data-source badges are retained when navigating away from Advanced History and returning.

Screenshot 2026-07-23 at 09 54 19

Large-range detail modes

Large date ranges now use adaptive detail handling:

  • Automatic detail uses the card’s automatic grouping for faster loading and rendering.
  • Fine detail uses a denser grouping when more detail is required.
  • A banner explains the active mode and allows switching between them.
  • Fine detail remains selected when changing date ranges until it is explicitly changed or the chart is cleared.
  • The Group By picker is exposed where appropriate.
Screenshot 2026-07-23 at 14 20 08

Per-entity More Info graph settings

Administrators can now configure the More Info graph separately for individual entities.

  • Added an admin-only settings cog to supported More Info graphs.
  • Uses the same reusable visual/YAML editor as Advanced History.
  • Entity-specific settings are stored by Home Assistant and work across devices.
  • Added a confirmation dialog for resetting an entity to the More Info Card Defaults.
  • More Info controls, headings and graph alignment have been refined to better match Home Assistant’s native dialog.
Screenshot 2026-07-23 at 10 00 22

Improved More Info defaults

New More Info services now:

  • open using a rolling Last 24 hours period;
  • provide Day, Week, Month, Year and Last 24 hours picker modes;
  • respect the entity’s configured display precision;
  • use metadata-aware chart defaults;
  • retain tooltip and filled-area presentation;
  • better match native Home Assistant colours, typography and spacing.

Visual and YAML chart editing

  • Added a code-editor option to the current chart editor.
  • Visual and YAML modes share the same editor dialog and saved configuration.
  • YAML is validated before being applied.
  • Added localized guidance for the code editor.
  • Fixed comparison series disappearing after closing or saving the editor.
Screenshot 2026-07-23 at 10 02 02 Screenshot 2026-07-23 at 10 02 13

Metadata-aware entity defaults

  • Total and total-increasing sensors automatically use last-value aggregation where appropriate.
  • Explicitly configured aggregation always takes precedence.
  • Automatic options are included in diagnostics and More Info graph generation.

Native entity visibility

Clicking a selected target now uses Statistics Graph Chart Card’s native:

enabled: false

The entity remains selected and keeps its configured position, colour and settings while hidden.

  • Hidden targets remain visible in the target list.
  • Entity ordering is preserved.
  • Automatically assigned colours remain stable when hiding or showing entities.
  • Visibility state is retained in bookmarks, history and shared links.
  • Temporary visibility state is not incorrectly stored as a permanent editor override.
Screenshot 2026-07-23 at 10 04 44

Bookmark improvements

  • The Update action is now shown only for the bookmark that was actually loaded and subsequently edited.
  • Loading another bookmark resets bookmark ownership correctly.
  • Clearing the final target detaches the current chart from its bookmark.
  • Internal Energy synchronization and period restoration no longer mark bookmarks as edited.
  • Existing bookmarks can still be loaded and saved as new bookmarks.

Undo and redo improvements

  • Undo and redo are cleared when all targets are removed.
  • Loading a bookmark starts a new chart session with a clean undo/redo history.
  • Saved-period restoration no longer creates stale undo entries.
  • Undo state from a previous chart session is no longer shown after loading another bookmark.

Energy date synchronization

  • Saved date ranges and comparisons are restored more reliably.
  • The chart remains hidden behind the loading banner until Home Assistant confirms the restored Energy period.
  • Stale cached “today” data can no longer override a restored month or year.
  • The native picker, comparison banner and rendered graph now use the same confirmed period.
  • Fixed Energy comparisons being lost after editing chart settings.
  • Fixed date-picker synchronization when loading bookmarks and returning to the panel.

Other improvements

  • Renamed the More Info frontend module to reflect its expanded role.
  • Improved responsive More Info graph sizing and whitespace.
  • Improved state-timeline presentation and native colour matching.
  • Improved duplicate-name area handling through Statistics Graph Chart Card.
  • Fixed prerelease version badge handling.
  • Updated documentation and setup guidance.

Required dependency

Statistics Graph Chart Card v3.30 or newer is required.

Before installing Advanced History 0.7.0, update Statistics Graph Chart Card through HACS. The card remains a separate dependency and is not bundled with Advanced History.

Special thanks to cataseven for continuing to improve the card and for supporting its use by Advanced History.

v0.6.1-beta

v0.6.1-beta Pre-release
Pre-release

Choose a tag to compare

@andyblac andyblac released this 21 Jul 11:34

This release introduces an optional More Info graph replacement, allowing Statistics Graph Chart Card to replace Home Assistant’s native History graph inside entity dialogs.

⚠️ Important for existing installations

Existing installations must manually add the new More-Info service:

  1. Open Settings → Devices & services.
  2. Select Advanced History.
  3. Select Add service.
  4. Configure the More-Info service.

New installations automatically create both the main Advanced History service and the More-Info service.

The More Info graph replacement is enabled by default when this service is added. It can be disabled using its configuration cog.

New: More Info graph replacement

Advanced History can now replace Home Assistant’s native History graph inside entity More Info dialogs with Statistics Graph Chart Card.

The More Info graph has its own independent configuration, including:

  • Separate card defaults and YAML configuration
  • Statistics Graph Chart Card visual editor
  • Optional built-in chart calendar
  • Day view selected by default when the calendar is enabled
  • Independent enable/disable toggle
  • Automatic Statistics Graph Chart Card resource detection
  • Native Home Assistant timezone handling

Native Home Assistant styling

The More Info replacement now more closely matches Home Assistant’s native graphs:

  • Native graph series color
  • Native binary sensor state colors
  • Native active, inactive, unknown and unavailable colors
  • Native 12px x-axis and y-axis font sizes
  • Native axis text and date-marker colors
  • Native divider-colored grid lines
  • Native square state-timeline segments
  • Native-style line width, spacing and sizing
  • Redundant entity names are hidden on single state timelines
  • Compact state timelines use the available More Info dialog space more effectively

Tooltip and graph fill remain enabled because they provide useful additional detail.

All styling values are visible in the More Info YAML defaults and can be changed or removed through the config flow.

Reliability improvements

  • Improved detection of numeric and categorical entities
  • Numeric entities remain correctly classified while their current state is unknown or unavailable
  • Binary sensors use localized state names such as Open and Closed
  • Reduced layout clipping and excess whitespace
  • Prevented the disabled replacement from fighting with or repeatedly redrawing Home Assistant’s native graph
  • Added seamless loading while the replacement graph is prepared
  • Existing More Info services automatically receive the new defaults without overwriting user-defined values

Additional improvements

  • Added area names when duplicate entity friendly names are detected
  • Improved frontend resource sharing between the Advanced History and More Info services
  • Updated Home Assistant localization keys and removed redundant custom translations
  • Separate configuration cogs are available for the main panel and More Info service

Screenshots

Screenshot 2026-07-21 at 12 21 59 Screenshot 2026-07-21 at 11 22 10 Screenshot 2026-07-21 at 12 22 31

Requirements

Advanced History requires Statistics Graph Chart Card to be installed and registered as a Home Assistant dashboard resource.
For best results, update Statistics Graph Chart Card to its latest available version before installing this release.

Thanks

Special thanks to cataseven for creating Statistics Graph Chart Card and for allowing and supporting its use in Advanced History.

Advanced History 0.5.6 Beta

Pre-release

Choose a tag to compare

@andyblac andyblac released this 19 Jul 11:02

This release adds temporary target visibility controls and improves version handling throughout the integration.

New: Hide targets without removing them

You can now select the body of an existing Home Assistant target chip to temporarily hide it from the chart.

  • Select a target chip to hide its chart series.
  • Select the faded chip again to restore it.
  • Areas and devices hide all chart series contributed by that target.
  • The chip’s × button still removes the target normally.
  • Home Assistant’s expand control continues to work normally.
Screenshot 2026-07-19 at 11 32 31

Target visibility is saved as part of the chart, including:

  • Bookmarks
  • Chart History
  • Undo and Redo
  • The current chart between page loads

Improved version handling

manifest.json is now the single source of truth for the integration version.

The version is automatically used for:

  • Frontend cache-busting URLs
  • Redirect module cache-busting
  • The version displayed in the browser console
  • Home Assistant’s integration metadata

The README version badge now follows Git tags automatically.

Translations

Added translated show/hide target descriptions for all currently supported languages.

Documentation

The wiki has been updated with instructions for temporarily hiding and restoring targets.

Notes

This is a pre-release build. Please report any issues, especially problems involving target chips, restored bookmarks, or chart History.

Full changelog: v0.5.4-beta…0.5.6-beta

Advanced History 0.5.4 Beta

Pre-release

Choose a tag to compare

@andyblac andyblac released this 19 Jul 09:46

Advanced History 0.5.4 Beta

Initial pre-release of Advanced History, a Home Assistant-style History
panel powered by Statistics Graph Chart Card.

Highlights

  • Native area, device, and entity target picker
  • Numeric-history and state-timeline graphs
  • Energy-style date selection and comparisons
  • Visual current-chart editor and configurable Card Defaults
  • Cross-device, user-scoped bookmarks
  • Chart History with Undo and Redo
  • Saved date-range restoration with loading feedback
  • Optional entity-dialog Show more redirection
  • Responsive mobile interface
  • Guided Statistics Graph Chart Card installation

Required dependency

Statistics Graph Chart Card must be installed separately through HACS.

Documentation

See the project Wiki for installation, configuration, and usage guidance.

This is a pre-1.0 development release. Please report issues through GitHub.