Skip to main content

Victron BLE HA Parser

Overview

This project exists solely to provide an interface to the excellent victron-ble project suitable for use with a Home Assistant integration. Thank you to Keshav Varma for maintaining the victron-ble project.

Installing the Home Assistant custom component

Currently the Home Assistant integration is only available as a custom component, for testing purposes and while we wait for certain PRs to merge into the upstream victron-ble project. The goal is to make this part of Home Assistant core.

If you'd like to test this, clone my fork on the HA project and checkout the victron-ble-custom-component branch:

git clone https://github.com/rajlaud/home-assistant.git --branch victron-ble-custom-component

Then, copy or symlink homeassistant/components/victron-ble into your config/custom_components folder.

Details

The parser module has one class, VictronBluetoothDeviceData, which parses Bleak advertisements and updates itself with the sensor data from the advertisement. Each instance of VictronBluetoothDeviceData should be fed advertisements from exactly one Victron device (based on the MAC address) and the instance needs to be initiated with the encryption key of the device that is going to be sending updates. If the encryption key is set correctly everything else will be figured out automatically.

There is a handy package from maintainers of the HA project called sensor-state-data to make it easy to automate ingesting sensor state updates like this. Unfortunately, we need to use a unit (amp-hours) not supported by the module and my PR to include amp-hours was rejected because they are not a common unit (https://github.com/Bluetooth-Devices/sensor-state-data/pull/47). For that reason, we need a custom extension of sensor-state-data, which is contained in the custom-sensor-state.py file.

Other notes

The upstream victron-ble has some un-merged pull requests that are necessary for this project. For now, it is set up to depend on my fork. Once a new release with the merged content is available on PyPI, I'll modify the package to point to the original project.

Download files

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

Source Distribution

victron_ble_ha_parser-0.4.2.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

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

victron_ble_ha_parser-0.4.2-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file victron_ble_ha_parser-0.4.2.tar.gz.

File metadata

  • Download URL: victron_ble_ha_parser-0.4.2.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for victron_ble_ha_parser-0.4.2.tar.gz
Algorithm Hash digest
SHA256 0c4f06bfb337ddfdb2a9b3ae65c5eaa17af6de82d037960d30c70497e0990e6f
MD5 69e839f7925c4a293bb54644c402343e
BLAKE2b-256 743ef31d9e00c432fdb86fda87d6fcd1512b8caec2d25bb82e694ff132dd92cb

See more details on using hashes here.

File details

Details for the file victron_ble_ha_parser-0.4.2-py3-none-any.whl.

File metadata

File hashes

Hashes for victron_ble_ha_parser-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8c838bc322f835c4a61fac1344c4817deb138fe55c4450e5c67fda987ef83b97
MD5 aa1b6eea10c6b6f8b8890e2ba691e8d5
BLAKE2b-256 ca3b9fa59bfeef7c9161cf7b6fd079327dd8be5f7b37740a84d7c47f754ed059

See more details on using hashes here.

Release history Release notifications | RSS feed

0.7.0

2 files

0.6.3

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.5.0

2 files

0.4.10

2 files

0.4.9

2 files

0.4.8

2 files

0.4.7

2 files

0.4.6

2 files

0.4.5

2 files

0.4.4

2 files

0.4.3

2 files

This release

0.4.2 This release

2 files

0.4.1

2 files

0.2.1

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page