Skip to content

Site: add smart feed-in disable (aka zero feed-in) #21839

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 60 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
13eb0d5
Add smart feedin feature
andig Jun 12, 2025
89fa060
Add feedin limit
andig Jun 12, 2025
44b326d
Update apis
andig Jun 12, 2025
cf8fca8
Implement PV mode disable
andig Jun 12, 2025
9b4fb0e
wip
andig Jun 12, 2025
214c197
wip
andig Jun 12, 2025
2273cd6
Update core/loadpoint.go
andig Jun 12, 2025
f15c60f
Update core/loadpoint.go
andig Jun 12, 2025
33fccd8
wip
andig Jun 12, 2025
292595c
wip
andig Jun 12, 2025
267d248
Merge branch 'master' into feat/smartfeedin
andig Jun 12, 2025
8e943ad
Revert rename
andig Jun 13, 2025
2a579ea
wip
andig Jun 13, 2025
a9bcf01
Move isDynamicTariff to backend
andig Jun 13, 2025
27f0ae1
wip
andig Jun 13, 2025
6968d3e
wip
andig Jun 13, 2025
85d9d51
wip
andig Jun 13, 2025
3944218
Merge branch 'feat/smartfeedin' into feat/zero-feedin
andig Jun 14, 2025
8844e35
Implement smart feed-in limit
andig Jun 14, 2025
defa184
Add shutdown hook
andig Jun 14, 2025
eb7831a
wip
andig Jun 14, 2025
1228dce
wip
andig Jun 14, 2025
67de209
wip
andig Jun 14, 2025
0b1c1eb
wip
andig Jun 14, 2025
48e865f
Merge branch 'feat/smartfeedin' into feat/zero-feedin
andig Jun 14, 2025
580043b
Merge branch 'master' into feat/zero-feedin
naltatis Jun 14, 2025
8f894d2
Merge branch 'master' into feat/smartfeedin
naltatis Jun 21, 2025
73de54a
replace ui logic with smartCostAvailable
naltatis Jun 21, 2025
97c727e
rename smartFeedin* to smartFeedinPriority*, introduce smartFeedinAva…
naltatis Jun 21, 2025
0a29468
Rename SmartFeedinPriorityAvailable
andig Jun 21, 2025
cd73358
Merge branch 'master' into feat/smartfeedin
andig Jun 21, 2025
083622c
Merge branch 'feat/smartfeedin' into feat/zero-feedin
andig Jun 21, 2025
58612a3
Merge branch 'feat/zero-feedin' of https://github.com/evcc-io/evcc in…
andig Jun 21, 2025
529e40b
smart cost limit ui refactoring; add smart feedin priority basics
naltatis Jun 21, 2025
e8f497c
adjust to rename smartFeedinPriorityAvailable
naltatis Jun 21, 2025
160ba55
Merge branch 'master' into feat/smartfeedin
naltatis Jun 21, 2025
2b97ad6
wip
andig Jun 21, 2025
51e455b
status (wip)
naltatis Jun 23, 2025
1c741c2
e2e (wip); modal refactor
naltatis Jun 23, 2025
8d11e03
clean
naltatis Jun 23, 2025
d84393a
add loadpoint status ui
naltatis Jun 24, 2025
57e1111
refactor status icons
naltatis Jun 25, 2025
cbf95b1
add e2e
naltatis Jun 25, 2025
08e3776
fix battery grid charge e2e
naltatis Jun 25, 2025
370cd0b
Merge branch 'master' into feat/smartfeedin
naltatis Jun 25, 2025
59cb98c
use playwright worker count auto
naltatis Jun 25, 2025
d6618bc
playwright: add html report
naltatis Jun 25, 2025
9eb5853
Use FeedIn as name, remove duplicated functions
andig Jun 25, 2025
81733d3
Merge branch 'master' into feat/smartfeedin
andig Jun 25, 2025
3e4ad7c
Follow ref changes
andig Jun 25, 2025
a9d0f1e
Merge branch 'master' into feat/zero-feedin
naltatis Jun 27, 2025
197d529
git case rename foo
naltatis Jun 27, 2025
a77635b
git case rename foo
naltatis Jun 27, 2025
b069b3b
git case rename foo
naltatis Jun 27, 2025
a30a780
git case rename foo
naltatis Jun 27, 2025
283d8d1
Fix conflict
andig Jun 28, 2025
4d1d7d2
wip
andig Jun 28, 2025
84ec766
wip
andig Jun 28, 2025
4499885
Merge branch 'master' into feat/zero-feedin
andig Jul 2, 2025
172ad72
Merge branch 'master' into feat/zero-feedin
naltatis Jul 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add shutdown hook
  • Loading branch information
andig committed Jun 14, 2025
commit defa1843e63cdf2abb56931ab81d064e9c068949
10 changes: 10 additions & 0 deletions core/site.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,16 @@ func (site *Site) Boot(log *util.Logger, loadpoints []*Loadpoint, tariffs *tarif
})
}

if site.smartFeedinDisableAvailable() {
shutdown.Register(func() {
if site.SmartFeedinDisableActive() {
if err := site.setFeedinDisable(false); err != nil {
site.log.ERROR.Printf("smart feed-in disable: %v", err)
}
}
})
}

tariff := site.GetTariff(api.TariffUsagePlanner)

// give loadpoints access to vehicles and database
Expand Down
4 changes: 2 additions & 2 deletions core/site_feedin.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (site *Site) UpdateSmartFeedinDisable(rate api.Rate) error {
return nil
}

err := site.enableSmartFeedinLimit(enable)
err := site.setFeedinDisable(enable)
if err == nil {
site.Lock()
site.smartFeedinDisableActive = enable
Expand All @@ -42,7 +42,7 @@ func (site *Site) UpdateSmartFeedinDisable(rate api.Rate) error {
return err
}

func (site *Site) enableSmartFeedinLimit(enable bool) error {
func (site *Site) setFeedinDisable(enable bool) error {
for _, dev := range site.pvMeters {
meter := dev.Instance()

Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy