evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Vaillant (myVaillant/sensoNET): evcc DHW control leaves the weekly anti-legionella disinfection unable to run

Open Johannes-del opened this issue 5 months ago • 2 comments

Describe the bug

What happens

To let evcc take exclusive control of domestic hot water (DHW) for PV self-consumption, the Vaillant DHW operation mode is set to operationModeDhw: OFF in the myVaillant app. Otherwise the appliance's own DHW time program keeps charging the cylinder and competes with evcc. With DHW mode OFF, evcc does all DHW heating itself, on demand, via hot-water boosts (StartHotWaterBoost / StopHotWaterBoost in the vaillant charger).

The catch: the appliance still reports its native weekly thermal disinfection (anti-legionella) as scheduled. In my case isLegionallaProtectionActivated: "WEDNESDAY". But that setting is only a stored preference. With operationModeDhw: OFF the cylinder is never charged by the appliance's own logic, so the scheduled Wednesday disinfection has nothing to act on and never actually heats the tank to disinfection temperature. The device believes it is protected while, in the evcc-controlled state, it effectively is not.

evcc's hot-water boosts target the normal setpoint (60 °C here) and include no disinfection run, so the periodic high-temperature hold (65 °C or more) that Legionella control requires simply never happens. Nothing in evcc surfaces this. Observed on my system; I would appreciate confirmation of the appliance-side behavior.

To scope this precisely: it is specific to the myVaillant cloud / sensoNET integration (the vaillant charger). That is the only path that sets operationModeDhw: OFF; operationModeDhw and StartHotWaterBoost live only in charger/vaillant.go. The EEBUS integration never touches the DHW operation mode (it only writes load-control power limits), so EEBUS-controlled Vaillant appliances keep their native DHW schedule and the legionella cycle intact.

The reason this isn't just "use EEBUS instead": remote deployments have no choice. If evcc doesn't sit on the same LAN as the heat pump (e.g. a hosted/cloud VM), EEBUS isn't reachable and the myVaillant cloud path is the only option, which is exactly where this gap appears.

Why it matters

Users who let evcc manage Vaillant DHW for PV self-consumption must set operationModeDhw: OFF, and thereby silently lose the manufacturer's legionella protection even though the appliance still reports it as scheduled. This is a safety-relevant side effect with no warning and no built-in mitigation. I currently work around it with an external weekly systemd timer that forces a high-temperature boost (setpoint to 70 °C, hold 65 °C or more) and then restores evcc's normal mode, which shouldn't be necessary out of band.

Possible directions (open for discussion)

  1. Warn when evcc takes over Vaillant DHW with operationModeDhw: OFF, i.e. surface that native legionella protection can no longer execute.
  2. Built-in periodic disinfection: an optional scheduled high-temperature forced boost for heat-pump DHW loadpoints (config: weekday, target temp, min hold), so evcc owns the whole DHW lifecycle safely.
  3. Investigate whether DHW control can coexist with the appliance keeping its own disinfection schedule effective (a mode other than full OFF).

Happy to provide more detail on the observed myVaillant API behavior and to test any change on a real aroTHERM plus setup.

Steps to reproduce

  1. Integrate a Vaillant heat pump (aroTHERM plus, VRC720 controller / sensoNET) via the vaillant charger template.
  2. In the myVaillant app, set DHW operation mode to OFF so evcc has exclusive DHW control (required, otherwise the appliance's own DHW schedule fights evcc's boosts).
  3. Run DHW as an evcc loadpoint in mode: pv (evcc issues StartHotWaterBoost on surplus, StopHotWaterBoost otherwise).
  4. Leave the appliance's isLegionallaProtectionActivated at its default (e.g. WEDNESDAY).
  5. Observe for one week or more: on the scheduled disinfection day the cylinder is not heated to disinfection temperature. currentSpecialFunction stays REGULAR and currentDhwTemperature stays around the PV/tapping setpoint, because with operationModeDhw: OFF the native disinfection does not execute.

Configuration details

evcc (`evcc.yaml`, credentials redacted):

chargers:
  - name: vaillant_wp
    type: template
    template: vaillant
    user: <redacted>
    password: <redacted>
    realm: germany

loadpoints:
  - title: Warmwasser
    charger: vaillant_wp
    mode: pv
    enable:  { threshold: -1300, delay: 5m }
    disable: { threshold: 0,     delay: 5m }


Appliance side (set once in the myVaillant app, not in evcc):
- `operationModeDhw: OFF`   (required so evcc controls DHW exclusively)
- `tappingSetpoint: 60`
- `isLegionallaProtectionActivated: WEDNESDAY`  (native default, still shown as active)
- Controller: VRC720, firmware 404.x, sensoNET.

Log details

Produced per the evcc FAQ (https://docs.evcc.io/en/docs/faq, "How do I create a log file for error analysis"): either via the WebUI Logs view (filter area `vaillant`), or by adding to `evcc.yaml` and restarting:

levels:
  vaillant: trace


Redacted excerpt of the appliance state evcc reads each cycle (`GET .../v1/systems/<SYSTEM_ID>/tli`), trimmed to the DHW-relevant fields:

[vaillant] TRACE GET https://api.vaillant-group.com/.../v1/systems/<SYSTEM_ID>/tli
[vaillant] TRACE {
  "configuration": {
    "dhw": [ { "index": 255,
               "operationModeDhw": "OFF",
               "tappingSetpoint": 60.0 } ]
  },
  "properties": {
    "dhw": [ { "index": 255, "maxSetpoint": 70.0, "minSetpoint": 35.0 } ],
    "system": { "controllerType": "VRC720",
                "isLegionallaProtectionActivated": "WEDNESDAY" }
  },
  "state": {
    "dhw": [ { "index": 255,
               "currentDhwTemperature": 43.5,
               "currentSpecialFunction": "REGULAR" } ]
  }
}

Key point: `operationModeDhw: OFF` (evcc control) coexists with `isLegionallaProtectionActivated: WEDNESDAY`, while `currentSpecialFunction` never leaves `REGULAR` and the cylinder never reaches disinfection temperature.

What type of operating system or environment does evcc run on?

Docker container

External automation

  • [x] I have made sure that no external automation like HomeAssistant or Node-RED is active or accessing any of the mentioned devices when this issue occurs.

Nightly build

  • [x] I have verified that the issue is reproducible with the latest nightly build

Version

0.310.1

Johannes-del avatar Jul 01 '26 07:07 Johannes-del

/cc @wulfgarw

andig avatar Jul 01 '26 07:07 andig

@Johannes-del So you have set the opMode for the Dhw to 'off'. But evcc with the vaillant charger can only start (and stop) hotwater boosts. it does not initiate a legionalla protection routine. I would suggest, that you change the opMode to 'time-controlled' and set up a timer schedule, that only produces hotwater on Wednesdays between 12:00 and 14:00, no hotwater production on the other days. The time window from 12:00 to 14:00 is one, where you normally should have power from your PV, and 2 hours should be enough to reach the legionalla protection temperature. Give it a try and report back, if that solves your problem.

WulfgarW avatar Jul 01 '26 16:07 WulfgarW