npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

iobroker.bluetti-battery

v0.1.1

Published

bluetti

Downloads

126

Readme

ioBroker.bluetti-battery

NPM version Downloads Number of Installations Current version in stable repository

NPM

Tests: Test and Release

Disclaimer: This is an independent, community-developed adapter. It is not affiliated with, endorsed by, or supported by Bluetti / PowerOak. "Bluetti" and all related names and logos are trademarks of their respective owners and are used here only to describe device compatibility. Use at your own risk — the authors are not responsible for any damage to your devices.

bluetti-battery adapter for ioBroker

Monitor and control Bluetti power stations / batteries over Bluetooth Low Energy (MODBUS-over-BLE). This is a Node.js/TypeScript port of the protocol from bluetti_mqtt, integrated directly into ioBroker so no extra Python service or MQTT broker is required.

Supported devices

One adapter instance talks to one device.

| Status | Devices | |--------|---------| | ✅ Confirmed on real hardware | AC300, AC500 (incl. pack polling and controls) | | ⚙️ Ported, needs a tester | AC200M, AC200L, AC240, AC60, EP500, EP500P, EP600, EB3A | | 🧪 Experimental (fork maps / unverified) | AC180, AC2A, AC70, Apex 300, V2 (encrypted) |

If your device is in the "needs a tester" or "experimental" row, please report how it behaves — see Testing & reporting.

Testing & reporting

This adapter is young and most device profiles have not been verified on real hardware. Reports are very welcome. Please open a Device report issue with:

  • your device model and the log line Using device profile: ...,
  • which values/controls are correct, and which are wrong or missing,
  • for wrong values, the value the adapter shows and the value in the Bluetti app (so scaling can be checked),
  • debug-level logs (especially MODBUS exception / rejected warnings, and the handshake lines for encrypted V2 devices).

Encrypted (v2) devices

Newer Bluetti units use an encrypted BLE handshake (AES-CBC + ECDH). Select the V2 device type, or set Encryption to on, to enable it. This support is a port of the nhurman fork and is experimental: the crypto primitives are unit-tested, but the full handshake has not been verified against real hardware. Feedback welcome.

The Apex 300 is a v2 device and auto-detects to the V2 profile. The generic V2 register map decodes the common values (state of charge, power, AC/DC switches, battery voltage); Apex-specific registers are not mapped yet. If the handshake completes (Encrypted handshake complete in the log), use the scanRange tooling to help map the rest.

Requirements

  • Linux host with BlueZ (the standard Linux Bluetooth stack). The adapter uses node-ble, which talks to BlueZ over D-Bus — it does not grab the HCI adapter exclusively, so it coexists with other BLE adapters and the system Bluetooth stack.
  • The user running ioBroker needs D-Bus permission to use BlueZ. If you get permission errors, add a D-Bus policy for the iobroker user (see the node-ble setup notes).

Configuration

| Setting | Description | |---------|-------------| | MAC address | Bluetooth MAC of the device, e.g. AA:BB:CC:DD:EE:FF. | | Device type | auto detects from the advertised BLE name, or pick the model manually. | | Polling interval | Seconds between reads (default 10). | | Poll per-pack data | Also read per-pack cell voltages etc. (slower). |

States that map to writable MODBUS registers (e.g. ac_output_on, dc_output_on, ups_mode) are created with write access; setting them sends a WriteSingleRegister command to the device.

Finding undocumented registers / controls

Some app settings (e.g. the AC charge-current limit) are newer than the register maps. The adapter exposes raw MODBUS access via sendTo so you can discover them the same way the original bluetti-discovery tool does: dump a register range, change the setting in the Bluetti app, dump again, and diff.

From the JavaScript adapter / a script (replace 0 with your instance):

// Read specific registers
sendTo('bluetti-battery.0', 'readRegisters', { address: 3019, quantity: 1 }, console.log);

// Scan a range (readable registers only)
sendTo('bluetti-battery.0', 'scanRange', { start: 3000, end: 3120 }, console.log);

// Write a register to test a control (use with care)
sendTo('bluetti-battery.0', 'writeRegister', { address: 3019, value: 10 }, console.log);

Workflow to find a setting: scanRange the likely control area (around 2200–2260 and 3000–3120 on AC/EP devices), note the values, change the setting in the app, scanRange again, and look for the register whose value matches the new setting. Then writeRegister to confirm it controls the setting before it gets a named state.

Changelog

0.1.1 (2026-06-23)

  • (Garfonso/Claude) add very experimental support for APEX 300.

0.1.0 (2026-06-19)

  • (Garfonso/Claude) tolerate issues in BLE connection better.
  • (Garfonso/Claude) add support for reverse engineering modbus registers via sendTo commands
  • (Garfonso/Claude) make modbus polling more robust.
  • (Garfonso/Claude) add experimental support for encrypted (v2) devices
  • (Garfonso/Claude) initial release

Older changelogs can be found there

License

MIT License

Copyright (c) 2026 Garfonso [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.