Skip to main content

Python library for communicating with Victron Venus OS MQTT interface

Project description

🌟 Supercharge Your Victron Devices with victron_mqtt!

PyPI - Version PyPI - Python Version


🚀 Welcome to victron_mqtt!

Are you ready to unlock the full potential of your Victron devices? victron_mqtt is here to make your Venus OS experience smoother, faster, and way more fun! Whether you're a seasoned developer or just starting your journey, this library is your gateway to seamless communication with Victron's Venus OS devices like the CCGX, Cerbo GX, and Ekrano GX. This package is the backend for the Home Assistant Victron Venus MQTT custom integration.

If you just want to browse the Victron MQTT definitions, please go to the documentation page.
You can consume the Victron MQTT definitions here.

Disclaimer: This is a third-party library and is not affiliated with Victron Energy.

🌟 Features

  • ⚡ Asynchronous Communication: Built for modern Python applications, ensuring non-blocking operations.
  • 🔍 Device Metrics Viewer: A Tk-based viewer application to inspect metrics and devices.
  • 🛠️ Utility Tools: Includes utilities like dump_mqtt for exploring the MQTT structure.
  • 📈 Extensibility: Easily extendable to support additional metrics and configurations.
  • 🧮 Formula support: New formula metric support (e.g. FormulaMetric and helper utilities) allows composing, evaluating, and exposing derived metrics calculated from raw MQTT values — useful for unit conversions, computed power/energy values, or combining multiple sensors into a single derived metric.

📦 Installation

Getting started is as easy as pie! Just run:

pip install victron_mqtt

🧑‍💻 Usage

🎨 Viewer Application

Want to see your Victron devices in action? Fire up the viewer application written in Tk:

python3 -m victron_mqtt.utils.view_metrics

This viewer is not just functional—it's a great example of how to use the library in your own projects.

🕵️‍♂️ Dump MQTT Structure

Curious about the full MQTT structure from your device? Dive deep with the dump_mqtt utility:

# Dumps a full MQTT structure into fullvictrondump.txt
python3 -m victron_mqtt.utils.dump_mqtt > fullvictrondump.txt

# Command-line help for specifying connection details:
python3 -m victron_mqtt.utils.dump_mqtt --help

Help Needed!!

Please help with extending the library with more topics. See instructions here for how to contribute.

🐞 Logging Issues

Found a bug or need help? We're here for you! Log issues on GitHub.

To help us support your setup, you can attach the output of the dump_mqtt utility to your issue.

📜 License

victron_mqtt is distributed under the terms of the MIT license.

Acknowledgments

  • Thanks to Johan du Plessis johan@epicwin.co.za who started the original library this one is based on. It is not clear if the original library is still maintained, so I forked it and continue to make progress with it.
  • Thanks to Victron Energy for their excellent hardware and documentation

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

victron_mqtt-2026.4.4.tar.gz (132.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

victron_mqtt-2026.4.4-py3-none-any.whl (71.4 kB view details)

Uploaded Python 3

File details

Details for the file victron_mqtt-2026.4.4.tar.gz.

File metadata

  • Download URL: victron_mqtt-2026.4.4.tar.gz
  • Upload date:
  • Size: 132.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for victron_mqtt-2026.4.4.tar.gz
Algorithm Hash digest
SHA256 242a410023838a4ef0e20c0a551995b659a04b0d103fb441817e6c7ae10366c8
MD5 25b3690ad5c51eb2936264d32570bacf
BLAKE2b-256 d30a3bb0605141ff975037609403ba9af4c5d5bd56c8789411554abd9dfc62bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for victron_mqtt-2026.4.4.tar.gz:

Publisher: publish.yml on tomer-w/victron_mqtt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file victron_mqtt-2026.4.4-py3-none-any.whl.

File metadata

  • Download URL: victron_mqtt-2026.4.4-py3-none-any.whl
  • Upload date:
  • Size: 71.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for victron_mqtt-2026.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d557d35bbd3e56e17cd99fcfbcdab104ef821d920941fabb383d1fe9f6476ec4
MD5 7200f831ec5b546849d741a4556e5afa
BLAKE2b-256 173fa547bcef8061ef1e4cd4ef183c413074b9f9e30d471d82356e9dd01491a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for victron_mqtt-2026.4.4-py3-none-any.whl:

Publisher: publish.yml on tomer-w/victron_mqtt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page