They're really annoying to pair though, so I've replaced most of them with Sonoff SNZB-02P which runs a CR2477 battery and I expect the battery life to be at least 3 years; with some luck maybe 4? Not as slim however, but the built-in magnet makes up for it.
What's your experience with Matter / Thread? Is it a case of buying a different USB dongle and devices?
I've tried a couple of times but just gave up because zigbee/zwave work well enough and I'm not sure I'll like where thread/matter end up in a decade.
Pair the HomePod with home assistant, install the matter service, and you're good to go.