Add per-consumer accepted import tolerance for wallboxes
With a 4.6kW inverter and 4kW WallboxB + ~450W house load, any PV dip causes brief grid import and would trigger shutdown/restart cycling. New config: wallbox_a_accepted_import_w / wallbox_b_accepted_import_w WallboxB set to 600W: engine skips shutdown if import <= 600W, keeping the car charging through short cloud shadows. WallboxA disabled (2kW leaves sufficient inverter headroom without needing tolerance). Logic: shutdownLastConsumer checks per-consumer tolerance before applying min-runtime and initiating turn-off. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -109,9 +109,11 @@ type PowerThresholds struct {
|
||||
|
||||
// ConsumersConfig holds per-consumer behavior thresholds.
|
||||
type ConsumersConfig struct {
|
||||
CompressorIdleW int `yaml:"compressor_idle_w"` // below this = heat pump compressor idle (W)
|
||||
WallboxMinChargeW int `yaml:"wallbox_min_charge_w"` // below this = car not charging (W)
|
||||
IdleCycles int `yaml:"idle_cycles"` // consecutive idle cycles before early release
|
||||
CompressorIdleW int `yaml:"compressor_idle_w"` // below this = heat pump compressor idle (W)
|
||||
WallboxMinChargeW int `yaml:"wallbox_min_charge_w"` // below this = car not charging (W)
|
||||
IdleCycles int `yaml:"idle_cycles"` // consecutive idle cycles before early release
|
||||
WallboxAAcceptedImportW float64 `yaml:"wallbox_a_accepted_import_w"` // tolerate this much grid import while WallboxA is running (0 = disabled)
|
||||
WallboxBAcceptedImportW float64 `yaml:"wallbox_b_accepted_import_w"` // tolerate this much grid import while WallboxB is running (0 = disabled)
|
||||
}
|
||||
|
||||
// StrategicConfig holds PV forecast based strategic settings.
|
||||
|
||||
Reference in New Issue
Block a user