For people who are interested in this, there is an esp32 component (and works awesome) https://esphome.io/components/sensor/dsmr/
There are also several cheap hardware sold with p1 port connection and home assistant integration.
There are also several cheap hardware sold with p1 port connection and home assistant integration.