Describe the bug
Description:
There is a time alignment issue in both the Optimizer visualization (X-axis) and the data table. The time buckets shift depending on the exact time the query is executed (e.g., running it at the top of the hour vs. midway through the hour), which desynchronizes the data from real-world scheduled events.
Actual Behavior:
Time-dependent data points are shifting based on the current time rather than locking to absolute times. For example, my time-based grid charges are scheduled to change exactly at midnight (00:00). However, if the query is run midway through an hour, the UI reflects this change happening at 00:30 instead.
(See attached screenshots showing the misaligned step-down on the graph for the 00:00 - 00:15 and 00:15 - 00:30 intervals).
Expected Behavior:
The X-axis and table should display fixed time intervals that align properly with the data's absolute schedule. A price change configured for midnight should always appear at 00:00, regardless of when the user runs the optimizer.
Proposed Solution:
This appears to be a relative vs. absolute time handling issue. It might be easier to resolve this by updating the REST API so that the frontend submits explicit absolute timestamps (e.g., ISO 8601 strings) and receives explicit timestamps back, rather than relying on relative intervals.
NOTE: Was not able to check the nightly build.
Steps to reproduce
Steps to Reproduce
Configure time-based grid charges with a price change set to occur at a fixed, absolute time (e.g., exactly at midnight / 00:00).
Run the Optimizer query exactly at the top of an hour (e.g., 14:00).
Observe the visualization's X-axis and the data table. Note the timestamp where the price change occurs.
Wait and run the exact same Optimizer query midway through an hour (e.g., 14:30).
Observe the visualization and table again. The step-down/change in price will have shifted by 30 minutes (e.g., showing the midnight change occurring at 00:30 instead of 00:00).
Configuration details
Log details
What type of operating system or environment does evcc run on?
Docker container
External automation
Nightly build
Version
0.303.2
Describe the bug
Description:
There is a time alignment issue in both the Optimizer visualization (X-axis) and the data table. The time buckets shift depending on the exact time the query is executed (e.g., running it at the top of the hour vs. midway through the hour), which desynchronizes the data from real-world scheduled events.
Actual Behavior:
Time-dependent data points are shifting based on the current time rather than locking to absolute times. For example, my time-based grid charges are scheduled to change exactly at midnight (00:00). However, if the query is run midway through an hour, the UI reflects this change happening at 00:30 instead.
(See attached screenshots showing the misaligned step-down on the graph for the 00:00 - 00:15 and 00:15 - 00:30 intervals).
Expected Behavior:
The X-axis and table should display fixed time intervals that align properly with the data's absolute schedule. A price change configured for midnight should always appear at 00:00, regardless of when the user runs the optimizer.
Proposed Solution:
This appears to be a relative vs. absolute time handling issue. It might be easier to resolve this by updating the REST API so that the frontend submits explicit absolute timestamps (e.g., ISO 8601 strings) and receives explicit timestamps back, rather than relying on relative intervals.
NOTE: Was not able to check the nightly build.
Steps to reproduce
Steps to Reproduce
Configure time-based grid charges with a price change set to occur at a fixed, absolute time (e.g., exactly at midnight / 00:00).
Run the Optimizer query exactly at the top of an hour (e.g., 14:00).
Observe the visualization's X-axis and the data table. Note the timestamp where the price change occurs.
Wait and run the exact same Optimizer query midway through an hour (e.g., 14:30).
Observe the visualization and table again. The step-down/change in price will have shifted by 30 minutes (e.g., showing the midnight change occurring at 00:30 instead of 00:00).
Configuration details
Not relevant.Log details
What type of operating system or environment does evcc run on?
Docker container
External automation
Nightly build
Version
0.303.2