Add EEG §9 curtailment api (#25887)

This commit is contained in:
andig 2025-12-29 17:29:27 +01:00 • committed by GitHub
parent cef1c78e86
commit e702924fe3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 65 additions and 5 deletions

View file

@ -192,12 +192,18 @@ type SocLimiter interface {
GetLimitSoc() (int64, error)
}
// Dimmer provides §14a dimming
// Dimmer provides EnWG §14a dimming
type Dimmer interface {
Dimmed() (bool, error)
Dim(bool) error
}
// Curtailer provides EEG §9 curtailment
type Curtailer interface {
Curtailed() (bool, error)
Curtail(bool) error
}
// ChargeController allows to start/stop the charging session on the vehicle side
type ChargeController interface {
ChargeEnable(bool) error
@ -272,9 +278,13 @@ type Circuit interface {
ValidateCurrent(old, new float64) float64
ValidatePower(old, new float64) float64
// §14a
// EnWG §14a - reduce demand/consumption
Dim(bool)
Dimmed() bool
// EEG §9 - reduce feed-in to the grid
Curtail(bool)
Curtailed() bool
}
// Redactor is an interface to redact sensitive data