Reading Energy-Meter via (wired) M-Bus

Hi all,

I’m looking for someone who has already used HomeAssistant to read data from M-Bus.

earlier this week I’ve reactivated one of my Raspberry Pi3 and installed HomeAssistant. My primary focus is to read my meters and temperature in the house.

So far I’ve setup my utility meter with an IR-SML interface and four Gosund SP112, all of them via tasmota / mqtt integration.

My next step is to read two meters which are available via M-Bus for which I still have some equipment. I could also get a M-Bus MQTT Gateway but those are approx 230€.

Best
Mircsicz

As a reply to myself here’s how I’ve currently set it up:

I found that Blog post which described how to send the data to MQTT. With some additional step’s I could read the data from my old PiiGab MBus810 Mbus-Ethernet Gateway

But to have it working through reboots I also had to add a Systemd unit to my 2nd respberry Pi4 (8GB) which is running my MQTT-Broker (mosquitto) that unit File looks like this:
´´´

/etc/systemd/system/mbus-ip-socat.service

[Unit]
Description=MBus IP Gateway SerialPort
After=timesyncd.service
Requires=networking.service

[Service]
Type=simple
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=mbus-ip-socat

ExecStart=socat -d -d pty,group-late=tty,mode=660,rawer,echo=0,b2400 tcp:10.10.190.62:10001
Restart=always

[Install]
WantedBy=multi-user.target
´´´

What I’ve not yet working is reading it from wmbusmeters HA Addon.