'Total cost saving chart' displays lines only back 10 days.
Describe the bug
The 'Total cost saving chart' displays lines only back 10 days.
Bizarrely, neither line starts at 10 days back.
I don't know when this behaviour started but previously I could see lines tracking back 29 days as in the yaml.
This is the current chart display.
If I change the graph span and offset to 10/9, the displayed chart starts 10 days ago but the start values are not zero. It is almost as if they are projecting back 30/29 days.
I have tried increasing the graph span and offset for the related 'Daily cost saving chart' and this also displays back for 10 days.
Is this a reflection of HA saved historical data?
Expected behavior Chart display going back 29/30 days as in yaml. The yaml code is copied directly from https://github.com/springfall2008/batpred/blob/main/templates/example_chart.yml
Predbat version v8.3.1 on predbat standalone (v1.1.8) with no appdaemon.
Environment details
- GE AC3.0 inverter to two 8.2 kWh batteries
- HAOS 2024.6.4 on Raspberry pi4 with ssd
- Chart display tested on Mac OSX 17.5 (Safari and Chrome) and HA app on iPad. Same behaviour on all.
Screenshots See above
Log file Predbat log predbat-2.log Predbat add-on log (gets repeated every 5 min) 2024-07-21 09:46:39.489670: Info: record_status Idle 2024-07-21 09:50:07.915617: Warn: Historical day 3 has 340 minutes of gap in the data, filled from 5.1 kWh to make new average 6.68 kWh (percent 76%) 2024-07-21 09:50:07.954086: Warn: Historical day 4 has 220 minutes of gap in the data, filled from 4.9 kWh to make new average 5.78 kWh (percent 85%) 2024-07-21 09:50:07.995322: Warn: Historical day 5 has 130 minutes of gap in the data, filled from 6.2 kWh to make new average 6.82 kWh (percent 91%) 2024-07-21 09:50:08.030018: Warn: Historical day 6 has 215 minutes of gap in the data, filled from 5.4 kWh to make new average 6.35 kWh (percent 85%) 2024-07-21 09:50:08.107070: Warn: Historical day 8 has 5 minutes of gap in the data, filled from 10.34 kWh to make new average 10.37 kWh (percent 100%) 2024-07-21 09:50:16.170734: Info: record_status Idle
I believe this is due to the homeassistant limitation on historical data.
This can be adjusted using: https://www.home-assistant.io/integrations/recorder/#purge_keep_days
I have mine set to a month and my chart shows the full month correctly.