You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Weishaupt / Kromschröder WCM on ebusd: what the bus shows, and three generic proposals (computed checksum, composite reads, longer IDs)
#1835
I own a Weishaupt heating system (two WTC-GB condensing boilers in cascade, a WCM-KA system
manager, two WCM-EM heating modules, WCM-FS room units) and have spent the last weeks
documenting how these devices talk on eBUS, writing definitions for them and testing them on my
installation. I would like to share what I found, show what is already usable, and ask for
your opinion on three changes to ebusd before I write them, since I would much rather build
something you would accept than something that stays in a fork.
Short version
The Kromschröder devices of Weishaupt systems (they scan as MF=Kromschroeder, ID=W) are
read and written through registers with a vendor CRC-8 in the first data byte (50 22 / 50 23), and the boiler automats through memory reads (50 00). The same family as the Wolf
devices of Add support for crc8 checksum fields in messages #167.
Definitions for 9 devices (1 073 messages) are written in TypeSpec and published as compiled
CSV releases; reads work with a stock ebusd today.
Two things are hard with ebusd as it is: a checksum that depends on the value, and the fact
that a definition is at once a telegram and a name (MQTT topic, Home Assistant entity).
I propose three generic features, none of them Weishaupt-specific: computed checksum
bytes (attribute crc), composite reads (attribute fills), and IDs longer than 7
bytes. A full specification is linked below.
1. How these devices talk
Everything here was seen on my bus and tested there; details and the telegrams are in docs/ebus-protocol.md.
Register read50 22: <crc> <reg lo> <reg hi> [more registers], answer two bytes per
register, low byte first; 0x8000 means "no value". Up to 4 registers per telegram on
every WCM device (5 and 6 give an empty answer, 8 no answer); a boiler automat takes 8.
Register write50 23: <crc> <reg lo> <reg hi> <val lo> <val hi>, one register per
telegram. A 50 23 carrying two pairs is acknowledged but only the last pair is taken.
The checksum: CRC-8, polynomial 0x5C, over all data bytes after it: the very algorithm
ebusd uses for the frame (SymbolString::updateCrc), with another polynomial. For a read it is
fixed and can be written into the definition's ID; for a write it depends on the value. It is
the checksum of Add support for crc8 checksum fields in messages #167 (the Wolf write quoted there, d8 42 01 04 00 5d 01 00 00, checks out).
Who checks it: the WCM system manager, room units and heating modules do not check it on
a write: a 50 23 with the checksum inverted is taken like a correct one. Consequently a stock
ebusd, which sends the checksum of the address alone, writes their settings: I tried it end to
end with the stock add-on and my definitions. The boiler automats were not tested (I never write
to them); Add support for crc8 checksum fields in messages #167 reports a Wolf boiler setting that is refused with a wrong checksum.
09 02 / 09 03: the same read and write without checksum, used by the room units towards
their modules. 09 03 writes the WCM registers with the same effect as 50 23.
Source address: most settings are acknowledged from any master but taken only from ff (the vendor's service tool's address); a few also from ebusd's own address. The rule
follows the register, not the method. An acknowledgement does not mean the value was taken:
only a read-back shows it.
Memory reads50 00 (boiler automats): items <n><area> <low address>, with 06 <high>
setting the high byte; up to 16 bytes per item and several items per telegram. Areas 1 (RAM),
2 (EEPROM) and 3 (XRAM) answer.
A Home Assistant integration (aghulas/ha-weishaupt)
talks to ebusd over its TCP port and reads the metadata: a panel organised like the vendor's
controllers, guarded writes, weekly programs. It is one client among others: MQTT stays the
common ground, and nothing in it requires giving up ebusd's MQTT.
Everything is checked on one installation only; I am looking for others (section 6).
A telegram is a name. In ebusd, a definition is the telegram, the MQTT topic and, through
discovery, the Home Assistant entity. Reading three registers in one telegram (a date, for instance: day, month and a third register) means a new message, a new topic and new entities; the grouped
telegram does not update the single messages and the reverse (I checked it with a stock
ebusd, a local broker and injected telegrams). So the way values are fetched cannot improve
without renaming them, and renaming breaks every MQTT user.
IDs longer than 7 bytes: a 4-register read has 9 ID bytes. A running ebusd uses it, but --checkconfig reports "max message ID length exceeded", and in the message key a 9-byte ID
shares its length code with a 1-byte one.
A. Computed checksum bytes (message attribute crc). A definition says which master-data
byte is a checksum, over which bytes, with which polynomial and initial value; ebusd computes it
when sending and checks it when receiving (strict by default, ignore for masters that send a
fixed byte, the case raised in #167). Default polynomial: the eBUS one. The Weishaupt case is crc=crc8;poly=5c; the Wolf one the same. [WCRC] would stay as an alias in my fork only.
B. Composite reads (field attribute fills). A field of one message's answer names another,
existing message; when the composite telegram is answered, ebusd stores in each target what a
read of it would have stored, so the targets' cache, MQTT topics, HTTP and Home Assistant
entities are updated exactly as if each had been read:
The composite ("carrier") is not published itself, so each value keeps one name; the poller may
send the carrier when a target is due, so grouping on the bus needs no change from users. A
stock ebusd treats fills as an unknown attribute and never sends the carrier: it degrades to
today's behaviour.
C. IDs longer than 7 bytes: the key keeps a length code of min(length, 7) and the check
compares every byte; --checkconfig stops refusing them. Small and independent.
Each would be its own pull request, with tests and a ChangeLog line, worded generically, the
Weishaupt case as one example among others. A would supersede #1825.
5. Questions
Would you accept these three as described, or would you shape them differently (names,
attribute vs. data type for the checksum, where composite reads belong)?
For B, is "the carrier is not published" right for ebusd, or should it be optional?
Shall I open them as separate pull requests once written, or first as a draft for review?
6. Safety, and a call for testers
These are gas heating appliances. Reading changes nothing. Writing a setting should be done only
by someone who understands it, after noting its value, never while the vendor's service tool is
connected (it uses ff too), and always followed by a read-back from the device.
If you own a Weishaupt WTC with WCM controllers, or a Wolf system of the same family, a ebusctl scan result and a few reads with the released definitions would tell me whether they
hold beyond my installation. Issues are welcome at aghulas/weishaupt-ebus.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I own a Weishaupt heating system (two WTC-GB condensing boilers in cascade, a WCM-KA system
manager, two WCM-EM heating modules, WCM-FS room units) and have spent the last weeks
documenting how these devices talk on eBUS, writing definitions for them and testing them on my
installation. I would like to share what I found, show what is already usable, and ask for
your opinion on three changes to ebusd before I write them, since I would much rather build
something you would accept than something that stays in a fork.
Short version
MF=Kromschroeder,ID=W) areread and written through registers with a vendor CRC-8 in the first data byte (
50 22/50 23), and the boiler automats through memory reads (50 00). The same family as the Wolfdevices of Add support for crc8 checksum fields in messages #167.
CSV releases; reads work with a stock ebusd today.
that a definition is at once a telegram and a name (MQTT topic, Home Assistant entity).
bytes (attribute
crc), composite reads (attributefills), and IDs longer than 7bytes. A full specification is linked below.
1. How these devices talk
Everything here was seen on my bus and tested there; details and the telegrams are in
docs/ebus-protocol.md.
50 22:<crc> <reg lo> <reg hi> [more registers], answer two bytes perregister, low byte first;
0x8000means "no value". Up to 4 registers per telegram onevery WCM device (5 and 6 give an empty answer, 8 no answer); a boiler automat takes 8.
50 23:<crc> <reg lo> <reg hi> <val lo> <val hi>, one register pertelegram. A
50 23carrying two pairs is acknowledged but only the last pair is taken.0x5C, over all data bytes after it: the very algorithmebusd uses for the frame (
SymbolString::updateCrc), with another polynomial. For a read it isfixed and can be written into the definition's ID; for a write it depends on the value. It is
the checksum of Add support for crc8 checksum fields in messages #167 (the Wolf write quoted there,
d8 42 01 04 00 5d 01 00 00, checks out).a write: a
50 23with the checksum inverted is taken like a correct one. Consequently a stockebusd, which sends the checksum of the address alone, writes their settings: I tried it end to
end with the stock add-on and my definitions. The boiler automats were not tested (I never write
to them); Add support for crc8 checksum fields in messages #167 reports a Wolf boiler setting that is refused with a wrong checksum.
09 02/09 03: the same read and write without checksum, used by the room units towardstheir modules.
09 03writes the WCM registers with the same effect as50 23.ff(the vendor's service tool's address); a few also from ebusd's own address. The rulefollows the register, not the method. An acknowledgement does not mean the value was taken:
only a read-back shows it.
50 00(boiler automats): items<n><area> <low address>, with06 <high>setting the high byte; up to 16 bytes per item and several items per telegram. Areas 1 (RAM),
2 (EEPROM) and 3 (XRAM) answer.
2. What is usable today
(latest
weishaupt-0.6.2), English and French comments, an installation notice, plus ametadata file (labels, menus, write conditions) and fixtures (captured telegrams with their
decoded values, checked with a real ebusd). Written in TypeSpec on top of the existing
src/wolffolder. The first lot is Add Kromschröder/Weishaupt WTC read definitions to src/wolf ebusd-configuration#717.[WCRC]messages; my build of ebusd computes the checksum(Add CRC calculated at runtime for Weishaupt memory and register messages (refs #167) #1825), and ebus-typespec got
@crc/@wcrcdecorators (Add @crc and @wcrc decorators for message IDs with a leading CRC-8 ebus-typespec#8). Given thefinding above, the WCM devices also take them from a stock ebusd.
talks to ebusd over its TCP port and reads the metadata: a panel organised like the vendor's
controllers, guarded writes, weekly programs. It is one client among others: MQTT stays the
common ground, and nothing in it requires giving up ebusd's MQTT.
Everything is checked on one installation only; I am looking for others (section 6).
3. What is hard with ebusd as it is
bytes". Add CRC calculated at runtime for Weishaupt memory and register messages (refs #167) #1825 solved it for one polynomial with a vendor-named marker; Add support for crc8 checksum fields in messages #167 has asked for a
general form since 2018, and you wrote then that you would take a data type with its tests.
discovery, the Home Assistant entity. Reading three registers in one telegram (a date, for instance: day, month and a third register) means a new message, a new topic and new entities; the grouped
telegram does not update the single messages and the reverse (I checked it with a stock
ebusd, a local broker and injected telegrams). So the way values are fetched cannot improve
without renaming them, and renaming breaks every MQTT user.
--checkconfigreports "max message ID length exceeded", and in the message key a 9-byte IDshares its length code with a 1-byte one.
4. Proposals
The full specification, checked against current
master, is indocs/ebusd-extension-spec.md.
In short:
A. Computed checksum bytes (message attribute
crc). A definition says which master-databyte is a checksum, over which bytes, with which polynomial and initial value; ebusd computes it
when sending and checks it when receiving (
strictby default,ignorefor masters that send afixed byte, the case raised in #167). Default polynomial: the eBUS one. The Weishaupt case is
crc=crc8;poly=5c; the Wolf one the same.[WCRC]would stay as an alias in my fork only.B. Composite reads (field attribute
fills). A field of one message's answer names another,existing message; when the composite telegram is answered, ebusd stores in each target what a
read of it would have stored, so the targets' cache, MQTT topics, HTTP and Home Assistant
entities are updated exactly as if each had been read:
The composite ("carrier") is not published itself, so each value keeps one name; the poller may
send the carrier when a target is due, so grouping on the bus needs no change from users. A
stock ebusd treats
fillsas an unknown attribute and never sends the carrier: it degrades totoday's behaviour.
C. IDs longer than 7 bytes: the key keeps a length code of
min(length, 7)and the checkcompares every byte;
--checkconfigstops refusing them. Small and independent.Each would be its own pull request, with tests and a ChangeLog line, worded generically, the
Weishaupt case as one example among others. A would supersede #1825.
5. Questions
attribute vs. data type for the checksum, where composite reads belong)?
6. Safety, and a call for testers
These are gas heating appliances. Reading changes nothing. Writing a setting should be done only
by someone who understands it, after noting its value, never while the vendor's service tool is
connected (it uses
fftoo), and always followed by a read-back from the device.If you own a Weishaupt WTC with WCM controllers, or a Wolf system of the same family, a
ebusctl scan resultand a few reads with the released definitions would tell me whether theyhold beyond my installation. Issues are welcome at
aghulas/weishaupt-ebus.
Thank you for ebusd, and for reading this.
All reactions