Tags: springfall2008/batpred
Tags
Fix bug around load ml calculation for car charging energy, Fix modif… …ications to history cache (#3386) * Fix bug around load ml calculation for car charging energy #3384 * Respect fill_load_from_power in ML model (#3379) The ML predictor will always use `load_power` to fill in `load_today`, but other code working similarly checks the `fill_load_from_power` arg. Modify the ML code to respect this argument. * Test fix bump ML model version * Add copy to manipulation of history * HA cache fixes (#3385) * HA cache fixes The HA cache stores data as mutable lists, and returns these lists when a cache hit occurs. However, this means that if a caller modifies the result directly, then these changes are passed back to the cache. Additionally, the cache only ever added new entries. If it was queried for a longer history (e.g. 7 days, then 8 days), it reported itself as having the longer length, but did not actually contain those values. Ensure that the cache always returns an independent copy of its own data, and populate entries older than the earliest entry in cache when updating. * [pre-commit.ci lite] apply automatic fixes --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> * Fix bug around load ml calculation for car charging energy #3384 * Test fix bump ML model version * Add copy to manipulation of history * [pre-commit.ci lite] apply automatic fixes * Remove deepcopy * Test fix * Missing copy --------- Co-authored-by: Daniel Evans <daniel.fred.evans@gmail.com> Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
[Fox] Publish various monthly and daily totals & statistics to HA (#3296 ) * Publish various monthly and daily totals to HA * Add staticstics for various energy, power, voltage and current entities * Add battery flow measurement * [pre-commit.ci lite] apply automatic fixes * Refresh metric totals every 15 minutes * [pre-commit.ci lite] apply automatic fixes --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
Savings total not updating (#3298) * Removing calc_percent_limit Adding inverter filter to Fox to Solax * [pre-commit.ci lite] apply automatic fixes * Catch potential solis mode crash: #3281 * Update apps/predbat/fox.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Delete apps/predbat/prediction_vectorized.py * Saving total not updating #3292 --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Code cleanup, add inverter filter for Fox/Solax, catch potential crash ( #3282) * Removing calc_percent_limit Adding inverter filter to Fox to Solax * [pre-commit.ci lite] apply automatic fixes * Catch potential solis mode crash: #3281 * Update apps/predbat/fox.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Delete apps/predbat/prediction_vectorized.py --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
PreviousNext