This has been a coding adventure.
My aim? Simple, really: Get Home Assistant talking to CBus, replacing 'MisterHouse', which on my network dates from ten years ago (and is a non-maintained pig). And now dead to me.
My stretch goals? Add MQTT discovery for Home Assistant, to eliminate any manual