Fix: DPL settings: do not reset solar_passthrough_enabled

we must not reset the configuration switch value in this context. this
leads to solar passthrough being disabled once the DPL is disabled. when
re-enabling the DPL, solar passthrough is suddenly off, even though the
user configured it to be on.

the configuration switch can stay on. the DPL will still sanity-check
whether or not solar-passthrough can be used (checks if VE.Direct is
enabled) or it is irrelevant since the DPL is disabled.
This commit is contained in:
Bernhard Kirchen 2024-09-01 22:08:12 +02:00
parent babb24ab1f
commit 5ad63e6c44

View File

@ -501,11 +501,7 @@ export default defineComponent({
canUseSolarPassthrough() { canUseSolarPassthrough() {
const cfg = this.powerLimiterConfigList; const cfg = this.powerLimiterConfigList;
const meta = this.powerLimiterMetaData; const meta = this.powerLimiterMetaData;
const canUse = this.isEnabled() && meta.charge_controller_enabled && !cfg.is_inverter_solar_powered; return this.isEnabled() && meta.charge_controller_enabled && !cfg.is_inverter_solar_powered;
if (!canUse) {
cfg.solar_passthrough_enabled = false;
}
return canUse;
}, },
canUseSoCThresholds() { canUseSoCThresholds() {
const cfg = this.powerLimiterConfigList; const cfg = this.powerLimiterConfigList;