Skip to content
Renogy Bt Tree Main

Renogy Bt Tree Main

github.com • November 26, 2026

Cross-platform Python library to read Renogy¹ Solar Charge Controllers and Smart Batteries using BT-1 or BT-2 type (RS232 or RS485) bluetooth modules. Tested mainly with Renogy brand products, but it might also work with other "SRNE like" devices like Rich Solar, PowMr etc. See the list of compatible devices . It can also upload data to local MQTT broker, PVOutput cloud or your own custom server.

You will need Python 3.6 or above in your system. In some platforms you may have to create python virtual environment. Then install dependencies by running the command:

This library should work on any modern Linux/Windows/Mac platforms that supports Bleak .

Each device needs a separate config.ini file. Update config file with correct values for mac_addr , alias and type and run the following command:

How to get mac address?

The library will automatically list possible compatible devices discovered nearby, just run example.py . You can alternatively use apps like BLE Scanner .

Have multiple devices in Hub mode?

If you have multiple devices connected to a single BT-2 module (daisy chained or using Communication Hub ), you need to find out the individual device Id (aka address) of each of these devices. Below are some of the usual suspects:

If you receive no response or garbled data with above ids, connect a single device to the Hub at a time and use the default broadcast address of 255 in config.ini to find out the actual device_id from output log. Then use this device Id to connect in Hub mode.

*Experimental support for Smart Shunt and HF Inverter

Supports logging data to local MQTT brokers like Mosquitto or Assistant dashboards. You can also log it to third party cloud services like PVOutput . See config.ini for more details. Note that free PVOutput accounts have a cap of one request per minute.

Example config to add to your assistant configuration.yaml :

Should you choose to upload to your own server, the json data is posted as body of the HTTP POST call. The optional auth_header is sent as http header Authorization: Bearer

Example php code at the server:

How to get continues output?

The best way to get continues data is to schedule a cronjob by running crontab -e and insert the following command:

If you want to monitor real-time data, turn on polling in config.ini for continues streaming (default interval is 60 secs). You may also register it as a service for added reliability.

¹This is not an official library endorsed by the device manufacturer. Renogy and all other trademarks in this repo are the property of their respective owners and their use herein does not imply any sponsorship or endorsement.

Renogy modbus documentation

mavenius/renogy-bt-esphome - ESPHome port of this project

Extracted Entities

Platforms (3)