Repository navigation
Add an optional external electricity price forecast sensor - #74
Draft
InventoCasa wants to merge 1 commit into
Draft
InventoCasa wants to merge 1 commit into
InventoCasa wants to merge 1 commit into
Conversation
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.
External forecasting services currently have no dedicated input, so their estimates cannot be inspected separately from confirmed tariffs. Add an optional electricity price forecast sensor to initial setup and options, with a diagnostic entity for accepted intervals, source and expiry information.
The versioned contract validates units, price basis, timestamps, continuity and empirical bounds, while preserving zero and negative prices. Missing, malformed or expired input clears the accepted snapshot. Forecasts remain outside tariff windows, planning and device-control authorization; version 1 accepts experimental observation data only. Large interval arrays are excluded from the diagnostic entity's Recorder history. English and German documentation and configuration labels are synchronized.
Validation: 1,334 tests passed on each pinned Home Assistant/Python stack, including 45 new parser, configuration, coordinator and sensor checks. Tracked-tree and commit-range checks reported no findings; the component package built successfully. Independent review and a producer/consumer compatibility check passed.