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

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

Download files

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

Source Distribution

bluetti_modbus_lib-0.0.3.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

bluetti_modbus_lib-0.0.3-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file bluetti_modbus_lib-0.0.3.tar.gz.

File metadata

  • Download URL: bluetti_modbus_lib-0.0.3.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for bluetti_modbus_lib-0.0.3.tar.gz
Algorithm Hash digest
SHA256 e89e055a523c9425b9b35e803fc52cde1d97355bab897bf581ba5b33f4d4843b
MD5 9da9ff93fe164509b6f7f06aa81e0a09
BLAKE2b-256 88dde5a28f81fe6b59c45e35a3fc9225920802d5655f7c9076e75a5ba4cd5f21

See more details on using hashes here.

File details

Details for the file bluetti_modbus_lib-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for bluetti_modbus_lib-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 59f396b121fffabad9fd023653d5a2cabd20f8041d722be87417a475d8862ae1
MD5 acf3cfcc94c5f9ff6fd0d8de78fa42bd
BLAKE2b-256 f58c1ed09889a4af60b20a18515f7b3415abd695b5f3929e2bfa69cff9854da4

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