Skip to main content

A library for parsing Renogy BLE data

Project description

Renogy BLE

Tests Release

A Python library for parsing Bluetooth Low Energy (BLE) data from Renogy devices.

Overview

Library for parsing raw BLE Modbus data from Renogy devices with BT-1 and BT-2 Bluetooth modules.

Currently supported devices:

  • Renogy charge controllers (such as Rover, Wanderer, Adventurer)

Future planned support:

  • Renogy batteries
  • Renogy inverters

Installation

pip install renogy-ble

Usage

Basic usage example:

from renogy_ble import RenogyParser

# Raw BLE data received from your Renogy device
raw_data = b"\xff\x03\x02\x00\x04\x90S"  # Example data

# Parse the data for a specific model and register
parsed_data = RenogyParser.parse(raw_data, type="controller", register=57348)

# Use the parsed data
print(parsed_data)
# Example output: {'battery_type': 'lithium'}

Features

  • Parses raw BLE Modbus data from Renogy devices
  • Extracts information about battery, solar input, load output, controller status, and energy statistics
  • Returns data in a flat dictionary structure
  • Returns raw values (no scaling or unit conversion)

Data Handling

Input Format

The library accepts raw BLE Modbus response bytes and requires you to specify:

  • The device type (e.g., type="controller")
  • The register number being parsed (e.g., register=256)

Output Format

Returns a flat dictionary of raw values:

{
    "battery_voltage": 129,
    "pv_power": 250,
    "charging_status": "mppt"  # Mapped from numeric values where applicable
}

Extending for Other Models

The library is designed to be easily extensible for other Renogy device types. To add support for a new type:

  1. Update the REGISTER_MAP in register_map.py with the new device type's register mapping
  2. Create a new type-specific parser class in parser.py (if needed)
  3. Update the RenogyParser.parse() method to route to your new parser

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

References

cyrils/renogy-bt

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

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

renogy_ble-0.2.2b2.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

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

renogy_ble-0.2.2b2-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file renogy_ble-0.2.2b2.tar.gz.

File metadata

  • Download URL: renogy_ble-0.2.2b2.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for renogy_ble-0.2.2b2.tar.gz
Algorithm Hash digest
SHA256 7e1dd1c619b4b626efffa8b937fc35b0adb3fd4931b591d627f2904d4a15e23f
MD5 314b68c102a8926073ba7c4c0ccbba01
BLAKE2b-256 22c9c565732e9b7685574886c106fab1af2878521c813b217b8c059823a3f043

See more details on using hashes here.

File details

Details for the file renogy_ble-0.2.2b2-py3-none-any.whl.

File metadata

  • Download URL: renogy_ble-0.2.2b2-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for renogy_ble-0.2.2b2-py3-none-any.whl
Algorithm Hash digest
SHA256 07c896aad322fb45953d0f6fe21cfd2c88b72378af91dbe2c906faf4b2cb6044
MD5 29e06134f990db5fc72fe81843618ccd
BLAKE2b-256 6ae96ca3a73352b83982af6beb56de8bbe8618299be70f047f3c05debfc590c8

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