batpred icon indicating copy to clipboard operation
batpred copied to clipboard

Tariff comparison ignores input_number.predbat_set_reserve_min

Open TonyHoyle opened this issue 11 months ago • 1 comments

Describe the bug Tariff comparison ignore input_number.predbat_set_reserve_min

Fox inverters can't be set to allow discharge below 10%, so I have overridden the default 4% in the the config. This works for normal prediction but the tariff comparison doesn't take into account that value.

(this is minor, as the difference between tariffs are normally much greater than the error introduced by this).

Expected behaviour Similar behaviour to the standard prediction algorithm.

Predbat version

8.15.0

Environment details

  • Fox 6kw + 10kw battery -HAOS installer

Screenshots

Image

TonyHoyle avatar Feb 11 '25 22:02 TonyHoyle

I turned off predbat's readonly mode for the first time yesterday, and immediately had a problem with it trying to discharge below the allowable limit (Fox batteries are 90% DoD so the bottom 10% of the SoC range should never be touched). I'm not sure if any of these settings will help, I'll see tonight:

apps.yaml (this setting was commented out in Fox.yaml). Note that there are two, a number which can be used to set it, and a read-only sensor to read the pre-existing setting. I set it to 20%.

# Original was commented out .  reserve - sensor name for the reserve setting in %   
# This must never be set to less than 10% (to match 90% DoD), preferably a little higher to be safe
# Also see the predbat setting input_number.predbat_set_reserve_min which should be set to 10 minimum
  reserve:
    - number.min_soc_on_grid

Also the following might be relevant. Fox.yaml did not contain an entry for battery_min_soc.

# Original did not contain this line.  Needed since 90% DoD and we must never drop below 10%.
  battery_min_soc:
    - 10

Not entirely sure what the difference is between these two, or how they relate to input_number.predbat_set_reserve_min.

As an aside, I know some people use the number.min_soc_on_grid as a way to set the target SoC when charging (possibly using the 'backup' work-mode). I have never looked into 'backup' so I don't know what it does exactly.

WyndStryke avatar Mar 19 '25 12:03 WyndStryke