Skip to content

Modern Python bridge for connecting MBMD (Modbus Measurement Daemon from volkszaehler.org) devices to Victron Venus OS

License

Notifications You must be signed in to change notification settings

bjoernh/victron_mbmd_mqtt_bridge

Repository files navigation

MBMD to Victron D-Bus Bridge (Python)

Modern Python bridge for connecting MBMD (Modbus Measurement Daemon from volkszaehler.org) devices to Victron Venus OS using the official aiovelib async library. Supports various grid meters and power monitoring devices via MQTT.

Motivation

Victron has incorporated a new GUI (v2) for Venus OS starting with version v3.40~2. With the previous dbus-bridge the electricity meter is not available in the new GUI. I realised that GUI v2 requires the D-Bus service to have a GetItems() method that returns all paths and their values in one call. This is already supported in victrons velib/aiovelib, so this Implementation was made.

Overview of VenusOS with v2 Gui

Features

  • GUI v2 Compatible: Implements required GetItems() method automatically via aiovelib
  • Async Design: Modern asyncio-based architecture with aiomqtt
  • Auto-reconnect: Handles MQTT and D-Bus disconnections gracefully
  • Message Timeout: Watchdog exits if no MQTT messages received
  • Bulk Updates: Atomic D-Bus updates using context managers
  • Proper Logging: Integrates with Venus OS syslog
  • Configuration Handling: Simple config.ini is used for credentials and configuration values

Documentation

  • Getting Started: A comprehensive guide to installing, configuring, and troubleshooting the MBMD Bridge.
  • Development: A detailed guide for developers, covering architecture, development workflow, and contribution guidelines.

References

Support

For issues specific to this Python implementation, check:

  1. Logs: tail -f /var/log/messages |grep mbmd_bridge
  2. D-Bus service: dbus -y | grep mbmd
  3. MQTT connection: Test with mosquitto_sub
  4. MBMD server: Visit volkszaehler MBMD

For general Venus OS questions, visit Victron Community.

About

Modern Python bridge for connecting MBMD (Modbus Measurement Daemon from volkszaehler.org) devices to Victron Venus OS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published