Repository navigation
v4.13.1 - Sell reserve rounding fix
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.5kWh was applied as2kWh, and any reserve below1kWh was applied as0— so the battery discharged further than intended. - Fractional reserves are now honoured exactly; the fallback to
0only applies when no value is configured.
- The reserve threshold in the Sell strategy used a bitwise
-
Want to support this project?
-
Files Changed:
home assistant/dashboard.yamlnode-red/02 strategy-sell.jsonnode-red/all-flows-in-one-file.json