ModBus software works, MQTT bridge software added.

This commit is contained in:
marcel
2025-08-14 11:45:47 +02:00
parent 7604b79b9e
commit 9e21f6a011
18 changed files with 587 additions and 100 deletions

View File

@@ -0,0 +1,33 @@
# 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.