feat: order history & spending analytics sensors#64
Open
kwaczek wants to merge 11 commits intodvejsada:masterfrom
Open
feat: order history & spending analytics sensors#64kwaczek wants to merge 11 commits intodvejsada:masterfrom
kwaczek wants to merge 11 commits intodvejsada:masterfrom
Conversation
Adds yearly and all-time spending sensors with local JSON storage for order history. Phase 1 of the order analytics feature. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
7 bite-sized tasks: API pagination, OrderStore, sensors, service, translations, tests, deploy. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add opt-in spending analytics with category breakdown sensors (L0-L3) and per-item spending sensors. Users can configure analytics levels, top N items to display (default 10), and hide discontinued products via the config flow wizard and options flow. Full order history is fetched in the background when analytics is enabled. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Owner
|
@kwaczek Thank you for this PR. However, please kindly add to make this (i.e. total history fetching and analytics) optional in the config with default being off - I would presume that may people (and I am one of them) do not want this kind of details to be fetched and stored in HA, incl. all history. |
Author
|
@dvejsada It is optional during the wizard and turned off by default. Spin off a new HA in docker and check the wizard |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OrderStorewith paginated API fetch for full order history backfillTest plan
total_countattribute🤖 Generated with Claude Code