Vaillant: fix zone selection (#18326)

This commit is contained in:
andig 2025-01-21 15:50:59 +01:00 • committed by GitHub
parent d6c4c46b4c
commit 84b096d2eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 9 deletions

View file

@ -94,7 +94,7 @@ func NewVaillantFromConfig(ctx context.Context, other map[string]interface{}) (a
}
systemId := homes[0].SystemID
heating := cc.HeatingZone > 0 && cc.HeatingSetpoint > 0
heating := cc.HeatingSetpoint > 0
set := func(mode int64) error {
switch mode {
@ -105,9 +105,9 @@ func NewVaillantFromConfig(ctx context.Context, other map[string]interface{}) (a
return conn.StopHotWaterBoost(systemId, sensonet.HOTWATERINDEX_DEFAULT)
case Boost:
if heating {
return conn.StartZoneQuickVeto(systemId, cc.HeatingZone, cc.HeatingSetpoint, sensonet.ZONEVETODURATION_DEFAULT)
return conn.StartZoneQuickVeto(systemId, cc.HeatingZone, cc.HeatingSetpoint, 4) // hours
}
return conn.StartHotWaterBoost(systemId, sensonet.HOTWATERINDEX_DEFAULT)
return conn.StartHotWaterBoost(systemId, sensonet.HOTWATERINDEX_DEFAULT) // zone 255
default:
return api.ErrNotAvailable
}

View file

@ -7,21 +7,21 @@ group: heating
requirements:
# evcc: ["sponsorship"]
description:
de: Die Boost Funktion erwärmt Warmwasser und optional eine Boostzone. Die Boostzone wird durch die ID identifiziert. Die Boost Temperatur wird in Grad Celsius angegeben.
en: The boost function heats hot water and optionally a boost zone. The boost zone is identified by the ID. The boost temperature is specified in degrees Celsius.
de: Die Boost Funktion erwärmt Warmwasser oder eine Boostzone. Die Boostzone wird durch die ID identifiziert. Die Boost Temperatur wird in Grad Celsius angegeben. Ist eine Boost Temperatur angegeben, wird die Boostzone aktiviert, anderenfalls Warmwasser.
en: The boost function heats hot water or a boost zone. The boost zone is identified by the ID. The boost temperature is specified in degrees Celsius. If boost temperature is specified, the boost zone is activated, otherwise hot water.
params:
- name: user
- name: password
- name: zone
type: int
help:
de: Id der Boostzone (zusätzlich zu Warmwasser)
en: Boost zone id (in addition to hot water)
de: Id der Boostzone
en: Boost zone id
- name: setpoint
type: float
help:
de: Boost Temperatur (zusätzlich zu Warmwasser)
en: Boost temperature setpoint (in addition to hot water)
de: Boost Temperatur
en: Boost temperature setpoint
- name: phases
type: int
advanced: true