This Software is used to fetch your MBUS-Data from a heat counter of your heating system and provide it via MQTT to any SmartHome-System (IoBroker, Home Assistant, FHEM, etc.).
I use a MBus-Hat for my Raspberry Pi 3B: https://www.hwhardsoft.de/deutsch/projekte/m-bus-rpi-hat/ (No Affiliate-Link )
(While using a USB-MBUS Adapter this step is obsolete!)
sudo raspi-config
goto '3 Interfacing Options'
goto 'I6 Serial Port'
'Would you like a login shell to be accessible over serial?' --> NO
'Would you like the serial port hardware to be enabled?' --> YES
Finish raspi-config
sudo echo "dtoverlay=disable-bt" | sudo tee -a /boot/config.txt
sudo systemctl disable hciuart
reboot
sudo apt install git libtool autoconf cmake build-essential
sudo apt-get install -y cmake
sudo git clone https://github.com/rscada/libmbus.git
cd libmbus
sudo ./build.sh
sudo make install
cd bin
sudo ln -s /usr/local/lib/libmbus.so.0 /usr/lib/libmbus.so.0
sudo apt-get install mosquitto-clients
sudo apt-get installlibxml2-utils
This repository contains files for demonstration purposes only. Use the files on your own risk. I am not responsible for any damage!
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.