1.0 KiB
RS485 ModBus client to MQTT bridge
Scans the configured ModBus for Mees Electronics sensors and publishes the sensor data to the configured MQTT broker.
The Mees Electronics sensors are almost plug-and-play. You just have to set the sensor to a unique address and add this address to the config.yaml file. The description entry in the YAML file is only there for convenience.
Configuration
Edit config.yaml.
The file modbus_registers.yaml contains the Mees Electronics register definitions of the various sensors. The newest definition file can be downloaded from the git repository.
Requirements
- Python3
- minimalmodbus
- json
- time
- sys
- logging
- os
- pathlib
- paho.mqtt.client
- pyyaml
License
Copyright (C) 2025 M.T. Konstapel (https://meezenest.nl/mees)
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.