I wanted to migrate from the built-in “DSMR Slimme Meter” integration to an MQTT-based solution, so I could run Home Assistant on a machine without physical access to the Smart Meter. I discovered that other people had already written programmes for this (most of them called “dsmr2mqtt”, confusingly enough), but found them all lacking in different ways. Most of them didn’t have MQTT over TLS (MQTTS) support, and some were difficult to set up or configure. So I made my own!
mqtt4dsmr is easily configurable, supports MQTTS out of the box and has Home Assistant auto-discovery. It relies on a widely-used pre-existing DSMR P1 parser - the same one that the built-in “DSMR Slimme Meter” integration uses. Consequently not only Dutch Smart Meters (versions 2.2 up to 5) are supported, but also Austrian, Swedish, Belgian and Hungarian DSMR variants, among others.
Here is what it looks like in Home Assistant:
Please let me know if you find it interesting or have improvement suggestions.