Skip to content

v4.13.1 - Sell reserve rounding fix

Choose a tag to compare

@gitcodebob gitcodebob released this 02 Aug 21:05
· 3 commits to main since this release
619fa22

4.13.1

  • Fix: Sell strategy no longer rounds down the energy reserve

    • The reserve threshold in the Sell strategy used a bitwise | instead of a logical ||, which silently truncated the configured value to a whole number of kWh.
    • A reserve of e.g. 2.5 kWh was applied as 2 kWh, and any reserve below 1 kWh was applied as 0 — so the battery discharged further than intended.
    • Fractional reserves are now honoured exactly; the fallback to 0 only applies when no value is configured.
  • Want to support this project?

    • Buy Me A Battery
  • Files Changed:

    • home assistant/dashboard.yaml
    • node-red/02 strategy-sell.json
    • node-red/all-flows-in-one-file.json