Repository navigation
Commit 4f792c3
authored
Restore to Self Consumption after pre-period export, not TOU (#26)
When a pre-period headroom export ends (time elapsed or SOC floor hit),
the previous mode was TOU — which would immediately recharge the battery
from the grid during cheap-rate hours, undoing the headroom just created
and causing an export/recharge oscillation cycle.
TOU is a night-only charging mode and should never be the restore target
after any timed export. Extend the existing out-of-cheap-rate TOU guard
to cover the in-cheap-rate case too: whenever the saved restore mode is
TOU, switch the restore target to SELF_POWERED instead. This preserves
headroom from the time the export ends until cheap-rate stops at 08:00,
at which point normal daytime logic resumes.1 parent f57f2e1 commit 4f792c3
1 file changed
Lines changed: 12 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
308 | 314 | | |
309 | | - | |
310 | | - | |
| 315 | + | |
| 316 | + | |
311 | 317 | | |
312 | 318 | | |
313 | 319 | | |
| |||
0 commit comments