Dsmr (p1)

For as far as I know the dsmr binding doesn’t support an ethernet connection like the OTGW does.

As suggested here you could look into using an Arduino or ESP and publish to MQTT:

I Googled and found this: GitHub - sandervandegeijn/P1-Meter-ESP8266-MQTT: Software for the ESP8266 that sends P1 smart meter data to MQTT (without CRC checking)