Skip to main content

A parser for Victron BLE messages suitable for use with Home Assistant

Project description

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.

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.

Project details


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.1.0.tar.gz (8.6 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.1.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: victron_ble_ha_parser-0.1.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for victron_ble_ha_parser-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2190a7c51c0202d3ba0cbcde18bcfbab38d4981a3035312a1c2635c6f900accf
MD5 6a209ac090adfa3d6df01214f825e972
BLAKE2b-256 1d7ff3b192af6054eaa23d92bb6f3ed1369d16b9f70604190cea1b30d24ac9c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for victron_ble_ha_parser-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9de1c18520324a776509ed652f01c45e52696c2f83833b998be1a6c3bbb0065a
MD5 c6f66021aa8b220bf47ee6a02aeb02d1
BLAKE2b-256 14d8879a784cb072d3e0d4b4a2d3cd06dc0ea8747a5aab22283fc56483491f58

See more details on using hashes here.

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