You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When SOC init is lower than min SOC, MPC run optim status will be infeasible.
This night my automations did not work because of infeasible optim status. I checked the logs and i'm pretty sure it's because my min SOC is 15%, but whatever reason my real SOC went to 14%.
For now I made a workaround like this: "soc_init": {{ [((states('sensor.ss_battery_soc') | int(0)) / 100), 0.15] | max }}, To Reproduce
Set min SOC higher than your real SOC that you use as SOC init in MPC run
Expected behavior
I would expect optim status won't be infeasible in this scenario.
Screenshots
If applicable, add screenshots to help explain your problem.
Home Assistant installation type
Home Assistant Core
Your hardware
OS: Linux
Architecture: amd64
EMHASS installation type
Docker Standalone,
The text was updated successfully, but these errors were encountered:
Expected behavior
I would expect optim status won't be infeasible in this scenario.
I don't understand this issue.
If you pass a SOC init that is lower than the SOC min then I do expect that the outcome is infeasible.
How would you expect this to not be infeasible?
Maybe the constraint could be less strict; can it be adjusted to only prevent discharges below the soc_min instead of treating it as an invalid value in general?
That way EMHASS could recover by charging the battery first, after a deep discharge, beyond the usual levels.
(i.e. in winter, when the battery is not charged with solar and simple loses charge over time)
Describe the bug
When SOC init is lower than min SOC, MPC run optim status will be infeasible.
This night my automations did not work because of infeasible optim status. I checked the logs and i'm pretty sure it's because my min SOC is 15%, but whatever reason my real SOC went to 14%.
For now I made a workaround like this:
"soc_init": {{ [((states('sensor.ss_battery_soc') | int(0)) / 100), 0.15] | max }},
To Reproduce
Set min SOC higher than your real SOC that you use as SOC init in MPC run
Expected behavior
I would expect optim status won't be infeasible in this scenario.
Screenshots
If applicable, add screenshots to help explain your problem.
Home Assistant installation type
Your hardware
EMHASS installation type
The text was updated successfully, but these errors were encountered: