HEMS: refactor handling of production/feedin limits (BC) (#27567)

This commit is contained in:
andig 2026-03-09 12:11:43 +01:00 • committed by GitHub
parent 86e2014532
commit 69db34e768
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 440 additions and 336 deletions

View file

@ -16,7 +16,6 @@ import (
"github.com/evcc-io/evcc/charger/ocpp"
"github.com/evcc-io/evcc/core"
"github.com/evcc-io/evcc/core/keys"
hemsapi "github.com/evcc-io/evcc/hems/hems"
"github.com/evcc-io/evcc/messenger"
"github.com/evcc-io/evcc/server"
"github.com/evcc-io/evcc/server/db"
@ -334,9 +333,8 @@ func runRoot(cmd *cobra.Command, args []string) {
}
// start HEMS server
var hems hemsapi.API
if err == nil {
hems, err = configureHEMS(&conf.HEMS, site)
_, err = configureHEMS(&conf.HEMS, site)
if err != nil {
err = wrapErrorWithClass(ClassHEMS, err)
}
@ -386,7 +384,6 @@ func runRoot(cmd *cobra.Command, args []string) {
valueChan <- util.Param{Key: keys.Hems, Val: globalconfig.ConfigStatus{
Config: conf.HEMS.Redacted(),
Status: hemsapi.GetStatus(hems),
YamlSource: yamlSource.hems,
}}
valueChan <- util.Param{Key: keys.Tariffs, Val: globalconfig.ConfigStatus{