8000 Vaillant: re-boost hot water every 15m by andig · Pull Request #20752 · evcc-io/evcc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Vaillant: re-boost hot water every 15m #20752

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

Merged
merged 1 commit into from
Apr 21, 2025
Merged
Changes from all commits
Commits
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
30 changes: 29 additions & 1 deletion charger/vaillant.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,46 @@ func NewVaillantFromConfig(ctx context.Context, other map[string]interface{}) (a
systemId := homes[0].SystemID
heating := cc.HeatingSetpoint > 0

wwCancel := func() {}

set := func(mode int64) error {
switch mode {
case Normal:
if heating {
return conn.StopZoneQuickVeto(systemId, cc.HeatingZone)
}

wwCancel()
return conn.StopHotWaterBoost(systemId, sensonet.HOTWATERINDEX_DEFAULT)

case Boost:
if heating {
return conn.StartZoneQuickVeto(systemId, cc.HeatingZone, cc.HeatingSetpoint, 4) // hours
}
return conn.StartHotWaterBoost(systemId, sensonet.HOTWATERINDEX_DEFAULT) // zone 255

if err := conn.StartHotWaterBoost(systemId, sensonet.HOTWATERINDEX_DEFAULT); err != nil {
return err
}

var wwCtx context.Context
wwCtx, wwCancel = context.WithCancel(ctx)

// re-boost every 15m
go func() {
for {
select {
case <-wwCtx.Done():
return
case <-time.After(15 * time.Minute):
if err := conn.StartHotWaterBoost(systemId, sensonet.HOTWATERINDEX_DEFAULT); err != nil {
log.ERROR.Println("hot water boost:", err)
}
}
}
}()

return nil

default:
return api.ErrNotAvailable
}
Expand Down
Loading
0