ebusd-configuration icon indicating copy to clipboard operation
ebusd-configuration copied to clipboard

Need help: "Betriebsart" on Vaillant HMU

Open hanjo opened this issue 6 months ago β€’ 19 comments

Hi,

I'm having trouble wrapping my head around the new configuration files for my hmu. Previously, I was able to get the "Betriebsart" (i.e. cooling, heating, warm water, a few others) by reading field 4 of hmu State, as you can see in this old CSV file: https://github.com/john30/ebusd-configuration/blob/af7361e77aa9e8e5e1e3ff613ed7179ad133a1d6/ebusd-2.1.x/de/vaillant/08.hmu.csv#L3 (I chose an abritrary point in time, just to explain how it was before).

Now in the latest version (https://ebus.github.io/de/vaillant/08.hmu.HW5103.csv), this got removed. Apparently "Betriebsart" lives in "Status02", but I cannot read that:

# ebusctl r -c hmu Status02
ERR: invalid position in decode

I'd appreciate any advice how to get this value back πŸ€—

Here is some information about my system:

# ebusctl info
version: ebusd 26.1.26.1
update check: OK, device firmware v5 1[650b] available
device: 192.168.1.245:9999, TCP, enhanced, firmware 1.1[650b].1[650b]
signal: acquired
symbol rate: 43
max symbol rate: 230
min arbitration micros: 1
max arbitration micros: 48
min symbol latency: 4
max symbol latency: 35
scan: finished
reconnects: 0
masters: 6
messages: 560
conditional: 3
poll: 0
update: 10
address 03: master #11
address 08: slave #11, scanned "MF=Vaillant;ID=HMU00;SW=0517;HW=5103", loaded "vaillant/08.hmu.HW5103.csv"
address 10: master #2
address 15: slave #2, scanned "MF=Vaillant;ID=70000;SW=0510;HW=6403", loaded "vaillant/15.700.csv"
address 31: master #8
address 33: master #13, ebusd
address 38: slave #13, ebusd
address 71: master #9
address 76: slave #9, scanned "MF=Vaillant;ID=VWZ00;SW=0301;HW=5103", loaded "vaillant/76.vwz.csv"
address f1: master #10
address f6: slave #10, scanned "MF=Vaillant;ID=NETX2;SW=4039;HW=5703"

Thanks so much!

hanjo avatar May 26 '26 15:05 hanjo

Update: I noticed that the latest 08.hmu.csv (https://ebus.github.io/de/vaillant/08.hmu.csv) still has the entry I need. Any particular reason why it got removed in 08.hmu.HW5103.csv? As I cannot find this value anywhere else, I would suggest to add it back to the file

hanjo avatar May 27 '26 19:05 hanjo

I'm hitting the same regression with an identical setup:

ebusd 26.1.26.1 scanned "MF=Vaillant;ID=HMU00;SW=0517;HW=5103", loaded "vaillant/08.hmu.HW5103.csv"

In addition to Status02 (as reported above), I'm also getting the same "ERR: invalid position" on:

  • Status (ERR: invalid position for 3108b5110103 / 00)
  • Status16 (ERR: invalid position for 3108b5040116 / 00)
  • PowerConsumptionHmu (ERR: invalid position for 3108b5160114 / 00)

This breaks live power consumption tracking entirely for my setup (the field that used to be exposed as "CurrentConsumedPower" in the old pre-TypeSpec archived/de/vaillant/08.hmu.csv, ZZ=B51A ID=24).

For reference, I compared against the archived pre-TypeSpec file (archived/de/vaillant/08.hmu.csv) which had a working definition for CurrentConsumedPower and for State (including the Betriebsart field mentioned above). It seems the TypeSpec rewrite (built 2026-04-19, rev a6c2904) dropped or mis-mapped several fields for this exact HW5103/SW0517 combination β€” see also #595, which reported RunDataElectricPowerConsumption missing right after that same rebuild.

Unfortunately I can't just fall back to the archived config, since my VWZ hydraulic module (address 76, same HW5103 generation) isn't covered by any file in archived/de/vaillant/ at all β€” so a full rollback isn't an option for me.

Happy to provide raw bus telegrams / additional scan output if that helps track down the correct byte offsets.

Here are the log:

Scan identification: 2026-08-03 22:18:54.801 [main notice] read scan config file vaillant/08.hmu.HW5103.csv for ID "hmu00", SW0517, HW5103 2026-08-03 22:19:00.590 [main notice] read scan config file vaillant/76.vwz.csv for ID "vwz00", SW0517, HW5103 2026-08-03 22:20:03.928 [main notice] read scan config file vaillant/15.700.csv for ID "70000", SW0614, HW6903

Decode errors (ebusd 26.1.26.1, configpath = https://ebus.github.io/next/): 2026-08-03 22:19:49.150 [update error] unable to parse poll-read hmu PowerConsumptionHmu from 3108b5160114 / 00: ERR: invalid position 2026-08-03 22:19:52.955 [mqtt error] decode hmu PowerConsumptionHmu: ERR: invalid position 2026-08-03 22:23:18.130 [update error] unable to parse poll-read hmu Status02 from 3108b5110102 / 00: ERR: invalid position 2026-08-03 22:23:21.506 [mqtt error] decode hmu Status02: ERR: invalid position 2026-08-03 22:23:29.206 [update error] unable to parse poll-read hmu Status16 from 3108b5040116 / 00: ERR: invalid position 2026-08-03 22:23:31.520 [mqtt error] decode hmu Status16: ERR: invalid position 2026-08-03 22:23:40.140 [update error] unable to parse poll-read hmu Status from 3108b5110103 / 00: ERR: invalid position 2026-08-03 22:23:46.586 [mqtt error] decode hmu Status: ERR: invalid position

TheMo0102 avatar Aug 03 '26 20:08 TheMo0102

@TheMo0102 I cross-checked all four messages on my HW=5103 system (HMU SW=0902, VWZIO SW=0901, sensoCOMFORT 720 / CTLV2, same ebusd 26.1.26.1) β€” the result splits your list in two, and I think it is good news for you.

Three of them fail here identically β€” and that is not a config bug

[update error] unable to parse poll-read hmu Status   from 3108b5110103 / 00: ERR: invalid position
[update error] unable to parse poll-read hmu Status02 from 3108b5110102 / 00: ERR: invalid position
[update error] unable to parse poll-read hmu Status16 from 3108b5040116 / 00: ERR: invalid position

Byte-for-byte the same telegrams you posted. Note the part after the slash: 00 β€” that is the slave's response length, i.e. the HMU answers with a zero-length body. ERR: invalid position is simply the decoder running off the end of an empty response; it is not a wrong byte offset in the definition, and nothing in the definition can fix it. This is the same root cause as the Status02 report at the top of this issue: b511 02, b511 03 and b504 16 are not implemented on this hardware generation and answer empty on every read, on at least two independent HW=5103 units. So this one is not fallout from the TypeSpec rewrite β€” the old 08.hmu.csv defined those messages, but the hardware never filled them either; you just did not have them polled before.

PowerConsumptionHmu is a different story β€” it works here

$ ebusctl read -f -c hmu PowerConsumptionHmu
2.451813698

Read live during a DHW charge, and it is polled continuously without error on my unit. The definition is unchanged (b516 14, IGN:1 + EXP /1000 kW). So b516 14 is populated on SW=0902 and apparently not on your SW=0517 β€” firmware/configuration dependent, the same pattern @meierchen006 and I documented on #598 for the b51a register family: an ID that answers with data on one unit can answer "no data" on another with identical hardware.

For live power, use b51a 05ff3224 instead

PowerConsumptionHmu is not the successor of the old CurrentConsumedPower anyway β€” that one is a b51a register and it is already in the current config, no override needed:

r,,,CurrentYieldPower,current yielded energy from the environment,,,b51a,05ff3223,ign,,IGN:3,,,,value,,SCH,10,kW,
r,,,CurrentConsumedPower,current power consumption,,,b51a,05ff3224,ign,,IGN:3,,,,value,,SCH,10,kW,
ebusctl read -f -c hmu CurrentConsumedPower
ebusctl read -f -c hmu CurrentYieldPower

On my unit just now, mid DHW charge: 2.4 kW consumed / 6.1 kW yielded (COP β‰ˆ 2.5, compressor at 62.6 %). @meierchen006 measured the same pair on a SW=0902 unit under heating load (0.40–0.70 kW in / 1.9–4.0 kW out) β€” so that pair is the reliable live-power source across units, and worth trying before you go chasing b516 14. If it returns 0.0 while the compressor is off, that is a genuine reading rather than an error.

And for the "Betriebsart" this issue started with

That is b511 07, submitted as #614 (compressor power, daily environmental yield, display flags, heater main/backup operating mode as bit fields, system pressure). A ready-to-use local CSV line you can drop next to the stock file is in this comment β€” it works on HW=5103 without waiting for the PR to land.

If CurrentConsumedPower also comes back empty on SW=0517, please post the raw read -f output β€” that would be the first case of it not answering, and worth documenting.

buliwyf42 avatar Aug 29 '26 11:08 buliwyf42

Thanks for the detailed cross-check β€” that fully confirms my setup too (HMU00, SW=0517, HW=5103): Status/Status02/Status16 empty-body, PowerConsumptionHmu never answers, CurrentConsumedPower/CurrentYieldPower work reliably and read 0.0 during idle as expected.

One follow-up I'd appreciate input on: I've now observed a consistent pattern where CurrentConsumedPower (b51a 05ff3224) correctly tracks compressor draw during a DHW heating phase, then drops to 0.0 and stays there for the remainder of a thermal disinfection cycle β€” while the storage temperature keeps climbing well past the normal DHW setpoint (into legionella-protection territory, 60Β°C+).

My working theory is that b51a 05ff3224 is compressor-specific, and during disinfection the system switches to the electric backup/immersion heater instead of running the compressor β€” so the 0.0 kW reading is correct for the compressor, but the actual (backup heater) power draw during that phase is invisible to this register.

Status07 (b511 07) already exposes heaterbackup_b0-b7 as on/off bits (heaterbackup_b3_heating, heaterbackup_b7_warmwater etc.), so the HMU clearly tracks backup-heater activity β€” but I haven't found a corresponding power/energy value anywhere in the b51a/b509/b516 groups.

Is there a known register for backup/immersion heater power consumption on HW=5103, or is that simply not exposed on this generation? Happy to test read -f against candidate IDs if anyone has a lead.

TheMo0102 avatar Aug 29 '26 11:08 TheMo0102

@TheMo0102 your theory is right, and the reason you cannot find the register is that you are looking on the wrong slave. b51a 05ff3224 is compressor-side and lives on the HMU (0x08). The electric backup heater is metered by the VWZ hydraulic module (0x76) β€” the same address you mentioned earlier. That is why the HMU's b51a/b509/b516 groups have nothing for it.

Read live on my 0x76 just now (VWZIO SW=0901, HW=5103):

b51a 05ff3249  TotalEnergyImmersionHeater   557 kWh
b51a 05ff324c  ImmersionHeaterPower           0 W     (idle)
b51a 05ff3246  ImmersionHeaterHours         101 h
b51a 05ff324a  ImmersionHeaterStarts        109
b51a 05ff331a  ImmersionHeaterPowerLimit      6 kW

b516 1000ffff03000000  StatElectricEnergySum     557.002807617 kWh
b516 1000ffff03030000  StatElectricEnergySumHc   410.702850342 kWh
b516 1000ffff03040000  StatElectricEnergySumHwc  146.299987793 kWh

Two things worth pointing out:

The b51a and b516 counters agree exactly. 05ff3249 = 557 kWh and the b516 electric sum = 557.0028 kWh β€” same counter, two encodings. And note the b516 family gives you a per-mode split: Hc 410.7 + Hwc 146.3 = 557.0. The Hwc figure is exactly the quantity you are after β€” backup-heater energy spent on hot water, disinfection cycles included. Important caveat that cost me a wrong bug report once (#600): on the VWZ these b516 electric counters cover the immersion heater only, not the heat pump. b516 is circuit-specific, each device reports its own scope β€” the same message IDs on the HMU give you compressor-side electricity instead. So VWZ StatElectricEnergySum is precisely "lifetime backup-heater kWh" and nothing else.

05ff324c is the live power reading you want β€” and you are in a position to confirm its scaling, which I am not. I have only ever caught it at 0, and @meierchen006 got a byte-identical idle reply on a SW=0902 unit, so the unit (W) in my definition is inference, not measurement. Your disinfection cycle is the ideal test case: the immersion heater actually runs, and with ImmersionHeaterPowerLimit = 6 kW here you would expect roughly 6000 if the register is plain watts, 60 if it is /100 kW, and so on. If you read it mid-disinfection and post the raw read -f output, that pins it down for everyone.

Ready-to-use lines for a local override next to your 76.* file (your VWZ scanned as vwz00, so the circuit is -c vwz rather than -c vwzio):

r,,,TotalEnergyImmersionHeater,total electric backup-heater energy,,,b51a,05ff3249,ign,,IGN:3,,,,value,,UIN,,kWh,
r,,,ImmersionHeaterPower,live electric backup-heater power (scaling unconfirmed),,,b51a,05ff324c,ign,,IGN:3,,,,value,,UIN,,W,
r,,,ImmersionHeaterHours,electric backup heater operating-hours counter,,,b51a,05ff3246,ign,,IGN:3,,,,value,,UIN,,h,
r,,,ImmersionHeaterStarts,electric backup heater on/off switch counter,,,b51a,05ff324a,ign,,IGN:3,,,,value,,UIN,,,
r,,,ImmersionHeaterPowerLimit,configured backup-heater power cap,,,b51a,05ff331a,ign,,IGN:3,,,,value,,UIN,,kW,
r,,,StatElectricEnergySum,,,,b516,1000ffff03000000,ign,,IGN:7,,,,value,,EXP,1000,kWh,
r,,,StatElectricEnergySumHc,,,,b516,1000ffff03030000,ign,,IGN:7,,,,value,,EXP,1000,kWh,
r,,,StatElectricEnergySumHwc,,,,b516,1000ffff03040000,ign,,IGN:7,,,,value,,EXP,1000,kWh,

The 3249/324c pair carries a caveat: our controllers never poll those two IDs on their own, so they are invisible in a passive capture and only answer to an active read. That is why they are deliberately not part of #598, which is passive-only β€” they are easy local r additions instead. The b516 lines are in #598.

So to close your original question: yes, backup-heater power and energy are exposed on HW=5103, just on 0x76 rather than 0x08 β€” and combined with CurrentConsumedPower on the HMU you get the full picture across a disinfection cycle (compressor drops to 0.0 kW, VWZ Hwc counter keeps climbing).

buliwyf42 avatar Aug 29 '26 12:08 buliwyf42

Tested TotalEnergyImmersionHeater and ImmersionHeaterPower live during a Sunday thermal disinfection cycle (HMU00, SW=0517, HW=5103 / VWZ00, SW=0517, HW=5103) β€” using your exact lines unchanged.

Context at read time:

  • disinfection active since 13:30 (confirmed via Status07 heaterenabled)
  • HMU CurrentConsumedPower = 0.0 kW (compressor idle, as expected β€” backup heater running instead)

ImmersionHeaterPower raw reads, ~36s apart: 14:12:26 38 14:13:02 38

Stable at 38 across both samples. That doesn't fit plain watts (way too low vs. a 6kW-class heater) or /100 kW (would read ~60 at meaningful load). It does fit a /10 scaling though: 38/10 = 3.8 kW β€” a plausible partial-load draw for a backup heater under a 6kW cap, and consistent with several other b51a registers in the same file (e.g. CurrentConsumedPower) already using divisor 10.

I don't have ebusctl direct access to confirm via read -f with a decoded unit β€” this is the raw poll value as logged by ebusd. Happy to gather a few more samples at different points in the cycle (start, mid, end) if that would help narrow down the scaling further, or if anyone wants to cross-check against their own known-load reading.

TheMo0102 avatar Aug 30 '26 12:08 TheMo0102

Good samples β€” and they move this further than either of us can settle from spot readings alone. My heater ran for the first time since I opened this (2026-08-30, DHW/legionella phase), so I now have counter-side ground truth to hold your 38 against.

The measurement that settles the unit

StatElectricEnergySum (b516 1000ffff03000000) on the VWZ is an EXP float, so at 564 kWh it still resolves ~0.03 Wh. Two reads with timestamps give you the real power; the raw 324c value beside it gives the factor. Reconstructed from my raw bus log β€” my ebusd polls both IDs on the same 38-minute cycle:

interval Ξ”counter Ξ”t actual power raw 324c
03:20 β†’ 03:58 0.001875 kWh 2268 s 0.003 kW 0 (idle)
03:58 β†’ 04:36 2.584625 kWh 2268 s 4.103 kW β€”
04:36 β†’ 05:14 2.594062 kWh 2268 s 4.118 kW 55
05:14 β†’ 05:51 1.979188 kWh 2268 s 3.142 kW 18
05:51 β†’ 06:29 0.001875 kWh 2268 s 0.003 kW 0 (idle)

(The raw samples land ~24 s before the boundary they are listed against, and the last interval is lower only because the heater stops inside it: 3.142/4.118 = 0.76 β†’ it ended at ~05:42. Whole run 7.158 kWh β‰ˆ 1 h 44 min at 4.12 kW.)

So: plain watts is dead. Raw 55 against an actual 4103 W is off by a factor of 75. I have dropped the W unit from my local line β€” whatever the definition ends up being, it should not carry W.

The factor, though, is not settled β€” and my own data is why

Your /10 reading fits: 5.5 kW and 1.8 kW straddle the measured 4.1 kW mean, which is exactly what a modulating load looks like sampled twice.

The other reading fits too: the heater simply ran flat out at ~4.1 kW the whole time. Two consecutive 38-minute means differing by 0.4 % look more like a constant load than one swinging between 1.8 and 5.5 kW β€” and in that case 324c is not a clean instantaneous power at all, and 38 means something other than 3.8 kW. Two spot samples inside 38-minute windows cannot separate those two.

Your cycle can separate them β€” more cleanly than mine

Mine swung between samples; yours held 38 across 36 s. That stability is what makes your run the better experiment. Next disinfection:

ebusctl read -f -c vwz StatElectricEnergySum     # note the time
# wait 5-10 min, checking that ImmersionHeaterPower stays on the same raw value
ebusctl read -f -c vwz StatElectricEnergySum     # note the time

kW = Ξ”kWh Γ— 3600 / Ξ”s. If that lands near 3.8 while the raw value sits at 38, your /10 is confirmed for good and my "maybe it isn't power" alternative dies. If it lands near 6.0 or 4.1 instead, the register is something else and we would want to look at it as a percentage or a current.

Two practical notes:

  • Use StatElectricEnergySum, not TotalEnergyImmersionHeater. Same counter, but the b51a one is integer kWh (564 vs 564.2168) and therefore blind over a 10-minute window.
  • The counter also ticks ~3 W in standby here. Two idle reads a few minutes apart are a cheap check that you are reading a live counter and not a frozen one.

Also worth posting: your ImmersionHeaterPowerLimit. Mine reads 6 (230 V unit); a 400 V unit reads 9, and the stage arithmetic behind a raw 38 differs between the two.

One assumption we should both drop

The compressor is not necessarily off during the phase. On my run it drew 1.0–3.1 kW alongside the heater from 04:05 to 04:50 and only stopped at 05:10, while the heater kept going until ~05:42. HMU CurrentConsumedPower reading 0.0 marks the part of the cycle where the compressor has dropped out β€” not the disinfection as a whole.

That overlap is incidentally the cleanest proof yet that the VWZ b516 electric counters exclude the heat pump: from 06:00 to 14:30 the compressor ran continuously at 0.4–2.7 kW while the VWZ counter advanced at 2.98 W.

I have put a one-minute sampler on both IDs here (raw value plus EXP counter, densified to 20 s while the heater runs) and will post the regression after the next cycle.

buliwyf42 avatar Aug 30 '26 12:08 buliwyf42

Follow-up with the run history, because it changes how the measurement is best planned β€” and because two of the data traps I hit are worth knowing for anyone trying to answer this from Home Assistant instead of a bus log.

The backup heater runs exactly once a week here

From HA long-term statistics on the VWZ StatElectricEnergySum sensor, daily resolution, 2026-05-03 through 2026-08-30: 18 runs on 18 consecutive Sundays, always in the early morning, 5.66–7.19 kWh per run (median 6.49). Every other day is flat standby, median 2.99 W.

So on this installation the immersion heater exists solely for the weekly legionella cycle. In four months it has not once assisted a normal heating or DHW charge β€” which also explains why 324c looked permanently idle to me: my 38-minute poll had roughly a 1-in-200 chance of landing inside a run.

If you want your own history without a raw bus log: the HA recorder keeps only ~10 days of raw states, but long-term statistics keep the counter indefinitely. Daily change on that sensor gives you the whole run calendar in one query.

Two traps in that data

1. Check for statistics gaps before reading a spike as an event. Mine has a gap from 09.05 to 28.05, and the entire backlog lands in a single day bucket of 20.96 kWh. It looks like one enormous run. It is not: minus 19 standby days that is 19.59 kWh, i.e. 6.53 kWh across the three hidden Sundays β€” exactly the median. The pattern is unbroken; only the statistics are not.

2. HA's hourly statistics for this sensor are not hours. ebusd polls the counter every ~38 min here, and HA sums whatever poll deltas happen to land inside each clock hour. The idle hours give it away: they alternate between 1.892 Wh and 3.784 Wh β€” one or two polls at 2.99 W. For Sunday's run HA reports 2.585 kWh in the 04:00 hour and 4.573 kWh in the 05:00 hour. Those are in truth the poll intervals 03:58β†’04:36 and 04:36β†’05:51 from the bus log. Read as hourly power, that gives 4.57 kW instead of the actual 4.118 kW.

The consequence: the power inside a run cannot be recovered from HA at all β€” only from short, deliberately spaced reads of the counter. Which is exactly why the two reads I suggested above have to be your own, taken minutes apart, rather than pulled from history afterwards.

What this means for the 324c question

The per-run energies vary between 5.66 and 7.19 kWh. Either the runs differ only in duration β€” then the load is constant, 324c cannot be a smoothly varying instantaneous power, and my raw 55 and 18 during a steady 4.118 kW need a different explanation. Or the runs differ in power β€” then the raw value has to move with it. One densely sampled run separates the two.

Next run here is Sunday 2026-09-06, around 04:00 local; I have a sampler on it at 20 s resolution and will post the regression afterwards.

If your disinfection is also weekly, that tells you when to be ready. Your 38 held steady across 36 s, and a constant raw value spanning a measurable energy interval pins the factor directly β€” that is still the cleaner experiment of the two.

buliwyf42 avatar Aug 30 '26 12:08 buliwyf42

Ran the two-timestamp StatElectricEnergySum test during today's cycle (HMU00 SW=0517/HW=5103, VWZ00 SW=0517/HW=5103):

14:36:38 StatElectricEnergySum = 3752 kWh 14:50:47 StatElectricEnergySum = 3753 kWh (Ξ”t = 849s)

kW = 1 Γ— 3600 / 849 = 4.24 kW average over that window

That's close to your measured ~4.1 kW mean, not the flat 3.8 your own /10 guess would need β€” though our counter only resolves whole kWh (no decimals like your 564.2168), so this is a coarser average, not a clean instantaneous cross-check.

One thing that matches your data nicely: raw 324c fell 38 β†’ 29 β†’ 18 over the last few minutes of the run, mirroring your own tail-off (55 β†’ 18 β†’ 0) as the heater winds down β€” same shape, different scale.

ImmersionHeaterPowerLimit on our unit: will post once we get a successful read (added it just now, didn't get a value before the window closed today).

Given the coarse resolution here, your own upcoming densified sampler run is probably the better source of truth β€” happy to keep contributing data points from our side each Sunday in the meantime.


Just saw your follow-up too β€” same weekly-only pattern here (Sundays, 13:30-15:00 local, disinfection only, never assists normal DHW). Good to know the hourly-statistics trap doesn't affect the numbers above since these came straight from the poll-read log timestamps, not HA's aggregated history. Will aim for a stable-raw-value window like today's (38 held for 36s) around our next run and try to bracket it tightly with two counter reads, similar spirit to your Sept 6 sampler.

TheMo0102 avatar Aug 30 '26 13:08 TheMo0102

Got ImmersionHeaterPowerLimit shortly after the window closed: 4 (kW), different from your 6 (230V) and the mentioned 9 (400V) unit.

Interesting in light of that: our measured average (4.24 kW) sits right at this 4 kW cap, not below it. If the unit was running flat-out at its limit for most/all of the window, that fits your "constant load, 324c isn't a clean instantaneous power" theory better than a modulating 55↔18-style read would suggest β€” the raw value falling 38β†’29β†’18 could just be the tail-off as the tank reaches target temp and the heater throttles down from the cap, rather than tracking power throughout.

Three known PowerLimit values so far: 4 kW / 6 kW (230V) / 9 kW (400V) β€” might be worth others posting theirs too if a stage/voltage pattern falls out of it.

TheMo0102 avatar Aug 30 '26 13:08 TheMo0102

Careful with that one β€” the arithmetic does not survive the resolution of the counter you read.

Those two reads cannot separate 3.8 from 4.1 kW, or from anything else

3752 β†’ 3753 on a whole-kWh counter means the true increase lies somewhere in (0, 2) kWh, not 1.000. Over 849 s that puts the actual power anywhere between 0 and 8.5 kW. The 4.24 kW is the midpoint of a window four kilowatts wide β€” that it landed near my 4.1 is coincidence, not corroboration.

Nor is it fixable with a longer window inside one cycle: to separate 3.8 from 4.1 kW (7 % apart) against Β±1 kWh of quantisation you need a Ξ” of roughly 27 kWh, about 6.7 hours at 4 kW. Your whole disinfection is ~6 kWh.

There is also an internal contradiction worth noticing. Your window covers the tail-off itself β€” you saw the raw value fall 38 β†’ 29 β†’ 18 across those minutes. If /10 held, a window spanning 38 β†’ 18 would average below 3.8 kW, not above it. Read literally, your numbers argue against your own hypothesis. I do not think they argue anything at all, but that is the direction they point.

The missing decimals say you read a different register

StatElectricEnergySum on the VWZ is the b516 1000ffff03000000 line with type EXP and divisor 1000. It returns a float β€” mine reads 564.218505859 as I write this. A value like 3752 with no decimals is one of:

  • TotalEnergyImmersionHeater (b51a 05ff3249, UIN, whole kWh) β€” mine reads exactly 564 next to the 564.2185 above. Same counter, unusable resolution. This is the one I flagged as blind over short windows.
  • the same b516 ID read on the HMU circuit rather than the VWZ, which meters compressor electricity instead of the heater. Mine reads 19809.451171875 there.

The magnitude points the same way: 3752 kWh of immersion-heater energy at ~6 kWh per weekly disinfection would be about 625 runs, i.e. twelve years, on an HW=5103 unit. Please post the raw read -f output and the circuit you used β€” if the value has no decimals, it is not the line I quoted.

Your tail-off observation is the useful part, and it cuts deeper than you framed it

38 β†’ 29 β†’ 18 β†’ 0 mirroring my 55 β†’ 18 β†’ 0 does say the register varies smoothly rather than jumping between fixed stages. Now hold that against my counter, in the cleanest form my data allows:

My raw sample of 55 was taken 24 s before the start of one poll interval, and my raw sample of 18 was taken 24 s before the end of that same interval. Over that interval the counter integrated a mean of 4.118 kW.

The register fell by a factor of three across an interval whose integrated power is a single fixed number. No assumption about constancy is needed for that statement.

Two readings survive it, and I want to be exact about which:

  1. The load genuinely swings faster than my 38-minute poll β€” cycling or modulating around a 4.11 kW mean β€” and 324c is an instantaneous or short-averaged value of it, in 0.1 kW. Your smooth tail-off supports this one.
  2. 324c is not the power the counter integrates, and its decline tracks something else that falls as the tank approaches setpoint.

What is now excluded is only the case in between: 324c as a slowly varying reading proportional to the mean power. So /10 is still very much alive β€” I want to correct any impression that my last comment killed it. Both survivors need the same experiment, and nothing else separates them: short intervals with the raw value stable at both ends.

What would make your side decisive

Get the EXP counter resolving on your unit. With decimals, a five-minute bracket around a stable 38 is worth more than an hour of the integer counter β€” and your cycle at 13:30–15:00 local is far friendlier to catch than my 04:00. Two reads, same minute-level timestamps you already used, and the factor falls out directly.

Mine samples at 20 s from Sunday 2026-09-06 onward; I will post the regression either way it comes out.

And yes, please post ImmersionHeaterPowerLimit when you catch it. If yours is 9 kW rather than my 6, a raw 38 sits at a different fraction of the cap β€” which matters for the reading in which 324c is a percentage rather than a power.

buliwyf42 avatar Aug 31 '26 05:08 buliwyf42

Confirmed circuit and precision directly via ebusd's HTTP API (not HA rounding):

GET /data/vwz/StatElectricEnergySum "vwz": {"messages": {"StatElectricEnergySum": {"value": 3753.0}}}

Definitely the vwz circuit, definitely StatElectricEnergySum (b516 1000ffff03000000, type EXP, divisor 1000) β€” not TotalEnergyImmersionHeater, not the HMU circuit. Our line matches your original definition exactly, just with the range field present (…EXP,1000,,kWh, β€” two commas before kWh, vs. the one in your comment, which drops that field like the StatElectricEnergySum line further up this thread did). So this isn't a parsing bug on our end.

Two independent reads, both exactly whole numbers to 9 decimal places (3752.000000000, then 3753.000000000) β€” no fractional component either time. Given how unlikely that is by chance if the real resolution were anywhere near your 564.218505859, I think this genuinely is a lower- precision report on our unit/firmware, not a decode issue.

You're right that the two-read arithmetic can't be trusted at this resolution β€” accepted, and the Β±1 kWh window you outlined makes the 4.24 kW figure meaningless as a cross-check. Retracting that number.

Given the counter itself won't give us decimals here, our best shot next Sunday is probably a stable-raw-value bracket purely on 324c (catch it holding steady like the 38 did, note start/end wall-clock times, and at least get a duration β€” even without a second energy source to convert it into an absolute kW figure, a repeatable stable plateau value across multiple Sundays would tell us if it's a fixed per-run number rather than a smoothly tracked power).

Will post ImmersionHeaterPowerLimit's exact reading next opportunity.

TheMo0102 avatar Aug 31 '26 05:08 TheMo0102

Fair enough β€” you have settled the circuit and the message, and my "you read a different register" reading is wrong. The HTTP-API check is exactly the right way to take HA's rounding out of the loop, and two consecutive reads landing on .000000000 is not something a decode error produces. So SW=0517 reports this counter as whole kWh while SW=0901 resolves it to about 0.03 Wh. That is worth having in the thread on its own: the same b516 line is a precision instrument on one firmware and a coarse odometer on another.

And thanks for pulling the 4.24 kW yourself β€” that saves the thread a detour, and leaving the question open is the honest state. Two units on two firmwares, both being checked properly, is a much better position than this issue was in a week ago.

The one number I still can't place β€” and I think you can close it easily

3753 kWh against my 564 kWh, on what sounds like the same weekly-only duty. I raised it as a doubt about the register; now that the register is settled, I suspect it is not a discrepancy at all, and my own counter suggests why. My VWZ splits it by mode:

StatElectricEnergySum      564.277 kWh
StatElectricEnergySumHc    410.820 kWh     heating support
StatElectricEnergySumHwc   153.457 kWh     hot water
ImmersionHeaterHours       102 h

Two thirds of my immersion-heater energy never went into hot water at all β€” it went into supporting the heating circuit, during the cold months. If your unit has a heating-support history and mine is younger or better insulated, 3753 kWh stops being surprising.

If you get a chance before Sunday, these five from your VWZ would settle it:

StatElectricEnergySum  StatElectricEnergySumHc  StatElectricEnergySumHwc
ImmersionHeaterHours   ImmersionHeaterStarts

If Hc + Hwc sums to your 3753, it is the same counter family and the magnitude question closes itself β€” no measurement needed.

And a finding from that split that bears directly on 324c

564.277 kWh over 102 hours is a lifetime mean of 5.53 kW β€” yet the disinfection run I measured on 2026-08-30 ran at a rock-steady 4.118 kW. Those two only reconcile if the heater runs at a higher level in some other mode, and the mode split says which one: the 410.8 kWh of heating support must have gone in at something close to the 6 kW cap.

So this heater has at least two operating levels, roughly 6 kW for heating support and roughly 4 kW for hot water.

That sharpens the problem rather than solving it. If the heater picks a level per mode and holds it, the raw value inside a single disinfection run should hold too. Mine did not: 55 at the start of a poll interval, 18 at the end of that same interval, with the counter integrating 4.118 kW across it. Whatever 324c is, it moved by a factor of three while the heater sat on one level.

One tweak that would make Sunday pay off for you

The snag with a 14-minute plateau is that on a whole-kWh counter the quantisation is larger than the signal itself. Widened to the entire run, though, the same method starts to say something:

bracketed energy Β±1 kWh becomes
14 min ~1 kWh Β±100 %
one full run ~6.5 kWh Β±15 %
3 Sundays accumulated ~19 kWh Β±9 %
6 Sundays ~39 kWh Β±6 %
10 Sundays ~65 kWh Β±5 %

One full run already separates the two candidates that matter most: 3.8 kW versus running at the 6 kW cap are 37 % apart, and Β±15 % resolves that comfortably. Separating 3.8 from my 4.118 is 7.7 % and needs the accumulated version β€” roughly ten Sundays, reading the counter immediately before and after each run.

Your plateau idea is well worth doing alongside it β€” with the caveat that on its own it shows reproducibility rather than meaning: a raw value returning to the same plateau every Sunday tells us it is repeatable, not what it counts. Paired with the accumulated energy and the run durations, it becomes a real measurement β€” and your unit would then have something mine cannot offer, namely many runs of a stable raw value rather than my single run of a moving one.

Mine samples at 20 s this Sunday, and I will post whatever comes out. Whatever that is, the Hc/Hwc split above makes me think we should both hold the single-answer assumption loosely: the number may well mean different things at 6 kW and at 4 kW.

Either way, thanks for keeping at this β€” a second unit on a different firmware, with someone actually checking the reads rather than trusting them, is what will make this definition trustworthy for everyone else.

buliwyf42 avatar Aug 31 '26 08:08 buliwyf42

All five, from vwz:

StatElectricEnergySum 3753 kWh StatElectricEnergySumHc 226 kWh StatElectricEnergySumHwc 3527 kWh (226+3527 = 3753, confirms same counter family, closes the magnitude question) ImmersionHeaterHours 1048 h ImmersionHeaterStarts 2211

1048h / 2211 starts β‰ˆ 28 min/run β€” matches a typical disinfection cycle length well.

Split is basically the inverse of yours: 94% Hwc vs. your mostly-Hc. At ~5.6-7.2 kWh/run that's roughly 490-625 lifetime disinfection runs, i.e. ~9-12 years of weekly-only operation β€” consistent with an older, DHW-focused installation rather than one leaning on backup heat for space heating. So the 6.5x magnitude gap looks fully explained by duty-cycle history, not a counter discrepancy.

Will aim for the full-run bracket (before/after the whole ~1.5h cycle, not just a 14-min window) this Sunday per your table β€” that's the only version of our data that can actually move the 3.8 vs 6 vs 4.1 question.

TheMo0102 avatar Aug 31 '26 09:08 TheMo0102

That closes it β€” 226 + 3527 = 3753, same counter family, and the mirror-image split explains the whole gap: your heater is 94 % hot water, mine is 73 % heating support. Two units doing opposite jobs with the same part. Thanks for pulling all five.

There is a factor hiding in those numbers

You worked out hours per start. The division that matters more is energy over hours:

3753 kWh / 1048 h = 3.58 kW      lifetime mean, your unit

Your observed plateau was a raw 38. Under the /10 reading that is 3.8 kW. Your lifetime mean comes out 5.8 % below it β€” and the gap points the right way, because you documented the tail-off yourself: 38 β†’ 29 β†’ 18 β†’ 0. A run that spends its last minutes below the plateau must average below the plateau.

Tightening it slightly: if your 226 kWh of heating support went in near a 6 kW cap, that is ~38 h, leaving 1010 h for the 3527 kWh of hot water β€” a hot-water level of 3.49 kW, i.e. a factor of 0.092 against raw 38.

So two independent long-baseline estimates from your unit land at 0.092–0.094 per count, against 0.1 for the /10 hypothesis. Nothing else that has been proposed comes close: percent-of-cap would need 38 to mean 2.3 kW, plain watts 38 W. This is the strongest evidence the thread has produced, and it needed no new measurement β€” it was already in your counters.

I want to be careful about what it does not show. It is a mean over years and over an unknown mix of stages, so it cannot resolve 0.092 from 0.1, and it says nothing about whether the register tracks power continuously or reports something that merely correlates with it. But it does make /10 the hypothesis to beat, and I no longer think my "maybe it isn't power" alternative is the more likely of the two.

My own unit cannot run this check, which is worth stating plainly: 564.277 kWh / 102 h = 5.53 kW, but only 27 % of that energy is hot water, so my lifetime mean is dominated by the ~6 kW heating stage and is not comparable to a hot-water plateau. Your DHW-only history is what makes the arithmetic clean on your side.

One correction on starts

1048 h / 2211 starts = 28 min is minutes per start, not per run. Taking your own ~586 runs, that is 3.8 starts per run and 1.79 h per run β€” which matches your 13:30–15:00 window, where 28 minutes would not.

That detail is not bookkeeping. It means the heater switches on and off roughly four times inside one disinfection. My unit did the same on a smaller scale: the 2026-08-30 run moved the counter 557 β†’ 564 kWh and the start counter 109 β†’ 111, so two on/off cycles in 1.74 h.

And that is exactly the mechanism I could not account for before. A load that cycles within the run explains how my raw value fell 55 β†’ 18 across an interval whose integrated mean stayed at 4.118 kW: the mean is flat because it is a mean, while the instantaneous value moves with the cycling. Under that picture /10 survives my objection intact.

Sunday

Full-run bracket on your side, 20 s sampling on mine. If your before/after gives ~3.8 kW over a run whose plateau sat at 38, and my dense series shows the raw value tracking the counter within each 20 s window, the factor is settled and we can put divisor 10 and kW on the definition with a straight face.

If instead my dense series shows the raw value moving while the 20 s energy stays flat, then it is not a power reading and your lifetime agreement is a coincidence we will have to explain. Either result is worth having.

buliwyf42 avatar Aug 31 '26 11:08 buliwyf42

Ran the full-run bracket via an automated notification at the two boundary times, using StatElectricEnergySum:

13:29:00 (before) 3754 kWh 15:01:00 (after) 3759 kWh Ξ” = 5 kWh over 5520 s β†’ 3.26 kW average

But: our bracket wasn't quite wide enough. ImmersionHeaterPower's raw value didn't return to 0 until 15:25 (38 at 14:03 β†’ 29 β†’ 23 β†’ 0 at 15:25), so the run continued ~24 min past our "after" reading. The true full-run average is therefore somewhat lower than 3.26 kW, not higher β€” we're missing the low-power tail, not underclaiming the front.

Full intermediate ticks for what it's worth (quantization makes individual deltas unreliable, shown only for completeness):

13:29 3754 13:58 3755 14:30 3757 14:52 3758 14:57 3759 (unchanged since, through 15:59 as I write this)

Will widen the automated bracket to ~13:00-15:30 for the next run to actually catch start and end, and post that result.

TheMo0102 avatar Sep 06 '26 14:09 TheMo0102

This week's automated bracket, but with an important caveat about timing:

13:00:00 3759 kWh 15:30:00 3764 kWh β†’ 5 kWh / 9000s = 2.0 kW over the full window

However, ImmersionHeaterPower shows actual heater activity confined to just 14:30-15:12 (42 min) this week β€” notably later/shorter than last week's ~13:30-15:25. Our 13:00-15:30 bracket is now mostly padding (idle before/after), which dilutes the average downward rather than truncating it like last week.

Sub-interval ticks on StatElectricEnergySum: 13:00 3759 15:00 3763 (+4 kWh / 7200s = 2.0 kW) 15:12 3764 (+1 kWh / 710s = 5.06 kW)

If most of the 5 kWh total landed inside the 42-min active window rather than spread across the full bracket, that implies something closer to 7 kW β€” well above every hypothesis discussed so far (3.8, 4.1, 6). I don't trust this number given the whole-kWh quantization and uncertainty about exactly when the run actually started (our first ImmersionHeaterPower sample was already 38, not a 0β†’38 transition, so the true start could be earlier than 14:30).

Also unexplained: the run's timing itself moved substantially week to week (13:30-15:25 last week vs. 14:30-15:12 this week) β€” is that expected variability on your unit too, or does ours look unusual?

TheMo0102 avatar Sep 13 '26 14:09 TheMo0102

The regression I promised on 31 August. It has been sitting in my notes since 6 September while you kept bracketing on a counter that cannot resolve this β€” that is on me, and it cost you two Sundays of measurements you did not need to take.

raw / 10 = kW, and the spread closes the question

Sampled at 20 s across the run of 2026-09-06, which came in two blocks:

block window duration energy mean under load stable intervals median kW/raw
1 04:01–05:06 65 min 4.701 kWh 4.37 kW 179 0.1018
2 05:10–05:38 29 min 1.305 kWh 2.81 kW 78 0.1032
total 94 min 6.006 kWh 257 0.1020

Only intervals whose raw value was identical at both ends count, so each one is a clean energy-over-time against a fixed raw value:

n=257  min=0.0960  p25=0.1011  median=0.1019  p75=0.1035  max=0.1102

Interquartile range Β±1.2 % around 0.102. So /10 is confirmed, and raw = W is out by a factor of 100.

Your 38 was 3.8 kW all along.

Two cross-checks that needed no measurement at all

ImmersionHeaterPowerLimit is the unit witness. It is declared kW and reads a constant 6. The highest raw value ever seen here is 55 β†’ 5.5 kW, which fits under a 6 kW cap. Under W, 55 W would sit under a 6 W cap. The unit of a register can often be settled by the neighbouring register that bounds the same quantity β€” that was in column 6 of my own series the whole time, and I did not look.

The median sits 1.9 % above a clean 0.1000, and that is not noise. The raw value looks like a nominal figure in 100 W steps; the counter measures actual power; a resistive element scales with UΒ². Measured at the meter on 2026-09-11: 233.0 / 232.8 / 233.2 V, and (233/230)Β² = +2.6 % over a 230 V nominal. Observed +1.9 %. Same order, right direction.

The correction I owe you: my 0.092–0.094 was a floor, not an estimate

I derived that from your lifetime counters and handed it to you as the value to expect. It is structurally a lower bound, and I should have said so: it divides an energy total by operating hours and compares the result to a plateau raw value. The hours include ramp-up and part-load; the plateau describes only the top. The quotient must come out low.

My own machine makes the point harder than yours: block 1 averaged 4.34 kW against a plateau of 55. The same arithmetic gives 0.079 here β€” further from 0.1 than your figure was β€” and the true factor is 0.102.

So if you had used my number as a target, you would have rejected the correct answer as too high. A lifetime-counter expectation is worth having as the hypothesis to beat; it is not worth having as the thing you are trying to hit.

Your data was fine β€” the method could not get there

Your week-2 result implied "closer to 7 kW" and you distrusted it. You were right to: with Β±1 kWh of quantisation and an uncertain window, that number was noise. Nothing about your unit is odd, and there is nothing left for the integer counter to contribute here.

Your question: does the run timing move on my unit too?

No β€” and not by a little. From my own minute-resolution series, the two Sundays I can compare:

2026-09-06   block 1  04:02–05:06 (64 min)   block 2  05:11–05:38 (27 min)
2026-09-13   block 1  04:02–05:00 (59 min)   block 2  05:05–05:35 (31 min)

Start identical to the minute, end within three. So your shift from 13:30–15:25 to 14:30–15:12 does look unlike mine.

But before you go looking for a cause, one artefact worth ruling out. My runs start at raw 6 β€” 0.6 kW β€” and ramp 11 β†’ 18 β†’ 23 before reaching the plateau. That opening is easy to miss entirely at a coarse sampling rate. You noted yourself that your first sample was already 38 rather than a 0 β†’ 38 transition, which means what you recorded is a detection time, not a start time. Part of the week-to-week movement may be your sampling catching the ramp at a different point rather than the cycle actually moving. A tighter sample around the expected start would separate the two.

On the definition

divisor 10 plus unit kW on ImmersionHeaterPower is the correct definition. One practical warning for anyone applying it to a live install: if the register already feeds a Home Assistant sensor, switching from unitless to kW and dividing by ten at the same time triggers the recorder's units_changed repair, and the existing statistics need migrating with it. I have deliberately not changed my own CSV yet for that reason β€” the measurement is settled, the migration is a separate job.

Thanks for sticking with this, and for retracting your own numbers twice when they did not hold. That is most of why the answer is trustworthy.

buliwyf42 avatar Sep 14 '26 05:09 buliwyf42

Follow-up to my comment of 14 Sept, now 11 runs (2026-09-06 … 2026-11-08, 20 s sampling against StatElectricEnergySum):

  • 2806 intervals with the same raw value at both ends: median kW/raw 0.1016 (p25 0.1004, p75 0.1034); per-run medians 0.1011–0.1021.
  • Linear over all eight steps seen:
raw 6 11 18 23 29 38 46 55
measured kW 0.69 1.16 1.85 2.31 3.01 3.86 4.71 5.57

Within one run the measured power follows each step (6 β†’ 0.70 kW, 11 β†’ 1.16, 18 β†’ 1.85, 23 β†’ 2.31 within three minutes), so it is live power in 0.1 kW steps, not a constant load.

Running here since today as ImmersionHeaterPower,…,b51a,05ff324c,…,value,,UIN,10,kW. I'll add it to #598.

buliwyf42 avatar Nov 08 '26 09:11 buliwyf42