Skip to main content

bluetti-modbus-lib

Inofficial Library for basic communication to bluetti powerstations via Modbus.

Based on official documentation https://github.com/bluetti-official/bluetti-modbus-tcp-slave

You have to enable Modbus TCP in the webinterface of your device first.

Disclaimer

This library is provided without any warranty or support by Bluetti. I do not take responsibility for any problems it may cause in all cases. Use it at your own risk.

Supported devices and data

TBD

Installation

pip install bluetti-modbus-lib

Sponsoring and Affiliate links (Anzeige / Ad)

If you want to support this project and buy a bluetti device, you can use the sponsors button on github:

[!NOTE] DE: Bei diesem Link handelt es sich um einen Affiliate-Link. Wenn du darüber kaufst, erhalte ich eine kleine Provision. Für dich entstehen keine Zusatzkosten.

EN: This is an affiliate link. If you make a purchase through it, I may earn a small commission at no extra cost to you.

Commands for testing

Commands included in this library should only be used for testing.

Read device data for supported devices

usage: bluetti-modread [-h] [-c HOST] [-p PORT] [-t TYPE]

Read bluetti devices via modbus

options:
  -h, --help            show this help message and exit
  -c HOST, --host HOST  IP-address of the device
  -p PORT, --port PORT  Port of the device
  -t TYPE, --type TYPE  Device type

Example:

bluetti-modread -c 10.2.1.60 -p 502 -t balco260

Example output:

num_inverters: 1 pcs
ac_load_power_total: 0 W
pv_power_total: 0 W
grid_power_total: 0 W
inverter_out_power_total: 0 W
pv_to_ac_power: 0 W
ac_load_energy_total: 0.1 kWh
pv_to_ac_load_energy_total: 0.1 kWh
pc_charging_energy_total: 0.0 kWh
grid_charging_energy_total: 0.0 kWh
grid_export_energy_total: 0.0 kWh
input_power_pv1: 0 W
input_voltage_pv1: 0.0 V
input_current_pv1: 0.0 A
input_power_pv2: 0 W
input_voltage_pv2: 0.0 V
input_current_pv2: 0.0 A
input_power_pv3: 0 W
input_voltage_pv3: 0.0 V
input_current_pv3: 0.0 A
input_power_pv4: 0 W
input_voltage_pv4: 0.0 V
input_current_pv4: 0.0 A
num_packs: 0 pcs
total_bat_voltage: 25.900000000000002 V
total_bat_current: 0.7000000000000001 A
total_bat_soc: 0 %
total_bat_soh: 0 %
total_bat_charge_time: 0 Min
total_bat_discharge_time: 0 Min
pack_voltage: 25.900000000000002 V
pack_current: 2999.3 A
pack_soc: 36 %
pack_soh: 100 %
pack_cycles: 0 times
pack_temp_avg: 0 °C
pack_cell_count: 8 pcs
pack_ntc_count: 4 pcs
pack_energy_charged: 2580 Wh
pack_energy_discharged: 2500 Wh

Release files for bluetti-modbus-lib 0.0.17

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bluetti-modbus-lib 0.0.17
File Size Uploaded
bluetti_modbus_lib-0.0.17.tar.gz 9.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bluetti-modbus-lib 0.0.17
File Interpreter ABI Platform
bluetti_modbus_lib-0.0.17-py3-none-any.whl Python 3 none any Details

Total release size: 22.5 kB

Release files / bluetti_modbus_lib-0.0.17.tar.gz

Download URL bluetti_modbus_lib-0.0.17.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c09f6ed4513b2ad3d215abc55998ffd4a8273dce2fb2e309781e2c6d6abc1dfe
BLAKE2b-256 checksum
How to use checksums
4084c4baf24166f9cc12294d66e61a286632c5bb7bfad4161a292ad45a4b2850
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / bluetti_modbus_lib-0.0.17-py3-none-any.whl

Download URL bluetti_modbus_lib-0.0.17-py3-none-any.whl
Size 13.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c069a08194debbc583725210d3e72aea6553c10e5cb5db3222f1b05d960cb98d
BLAKE2b-256 checksum
How to use checksums
3a215c768cb33e0c65c33625f88be5a18d8232117643778b7cc1d2a59c045763
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

0.0.19

2 release files

0.0.18

2 release files

This release

0.0.17 This release

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release 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