-
Notifications
You must be signed in to change notification settings - Fork 106
Document forecast data formats and usage examples #603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Added detailed explanation of forecast data formats, including list and dictionary formats, their requirements, examples, and when to use each format. Included practical examples for Home Assistant integration.
Reviewer's GuideThis PR extends the forecasts.md documentation by appending a comprehensive section comparing list and dictionary forecast data formats, detailing their requirements, usage examples (including Home Assistant curl and shell_command snippets), internal processing steps for the dictionary format, guidance on timing and timezones, and a concise recommendation table for choosing the appropriate format in common scenarios. Flow diagram for internal processing of dictionary forecast formatflowchart TD
A["User sends dictionary forecast data with timestamps"] --> B["EMHASS parses ISO8601 timestamps"]
B --> C["Resample data to match optimization_time_step"]
C --> D["Align values with forecast horizon using nearest-neighbor interpolation"]
D --> E["Fill missing values (forward-fill, backward-fill)"]
E --> F["Convert result to list for optimizer"]
Flow diagram for mixing list and dictionary formats in a single API callflowchart TD
A["User prepares API call"] --> B["pv_power_forecast as list"]
A --> C["load_cost_forecast as dictionary"]
B --> D["EMHASS processes list format: checks length, order"]
C --> E["EMHASS processes dictionary format: parses timestamps, resamples"]
D --> F["Combine processed forecasts for optimization"]
E --> F
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
|
Great work here, anything that simplifies the payload is greatly welcome. It might also be good to include a definitive list of which payloads accept the dict format:
What about some of the other time series payload data: thermal_config
How are now/current values handled with dict format? Do alpha/ beta values still function? |
|
If this is finished upgrade the draft status to a normal PR |
|
Just to be clear, I had nothing to do with this code change, I just discovered it by accident and was annoyed enough to have Claude change the documentation (as I now realise I wasted too much time working on yaml templates in HA to generate lists with the recent change to 15min price timesteps). Changes are from a commit by @Gruek way back in May c64f5fe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey there - I've reviewed your changes - here's some feedback:
- Consider removing or consolidating redundant list-format examples to reduce duplication and keep the documentation concise.
- This section is very comprehensive but could benefit from a brief table of contents or clearer subsection headings for easier navigation.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Consider removing or consolidating redundant list-format examples to reduce duplication and keep the documentation concise.
- This section is very comprehensive but could benefit from a brief table of contents or clearer subsection headings for easier navigation.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.



Added detailed explanation of forecast data formats, including list and dictionary formats, their requirements, examples, and when to use each format. Included practical examples for Home Assistant integration.
Might be better to remove some of the old examples...
Summary by Sourcery
Document the supported forecast data formats and provide usage guidance with practical examples for Home Assistant integrations.
Documentation: