evcc icon indicating copy to clipboard operation
evcc copied to clipboard

Support for Solplanet AI-Dongle LAN (BA121T-30) local HTTP API

Open FuR1u5 opened this issue 5 months ago β€’ 3 comments

Hi,

I have been investigating the local HTTP API of the Solplanet AI-Dongle LAN (BA121T-30 / Hardware M11) and found that it appears to expose all information required by EVCC without requiring Modbus TCP.

Tested hardware Solplanet ASW10kH-T3 Hybrid Solplanet AI-Dongle LAN BA121T-30 (Hardware M11) Solplanet AI-HB G2 Battery

The inverter information can be retrieved using:

GET /getdev.cgi?device=2

Example response:

{ "inv": [ { "isn": "OE010K60Z2470036", "add": 3, "model": "ASW10kH-T3" } ], "num": 1 }

The inverter serial number (isn) can then be used for all subsequent data requests.

Important finding

On my firmware, the sn parameter is mandatory for all getdevdata.cgi requests.

Without the sn parameter, device=2 and device=3 do not return data.

Working endpoints Inverter GET /getdevdata.cgi?device=2&sn=

Example response:

{ "pac": 393, "etd": 41, "eto": 308, "tmp": 359, "vac": [2343, 2323, 2338], "iac": [8, 9, 9], "vpv": [3829, 3802, 0], "ipv": [52, 51, 0] }

Provides:

PV power Daily energy Total energy Temperature AC voltages and currents PV voltages and currents Grid meter GET /getdevdata.cgi?device=3&sn=

Example response:

{ "pac": -19, "iet": 1711, "oet": 208 }

Provides:

Grid power Imported energy Exported energy Battery GET /getdevdata.cgi?device=4&sn=

Example response:

{ "soc": 12, "pb": -25, "vb": 25680, "cb": -1, "tb": 227 }

Provides:

Battery SOC Battery power Battery voltage Battery current Battery temperature

Battery configuration can also be retrieved using:

GET /getdev.cgi?device=4&sn=

which returns values such as:

charge_max discharge_max mod_r

This suggests that battery control may also be possible through the existing HTTP API.

Summary

From my testing, the local HTTP API already provides the information EVCC typically needs:

PV power Grid power Battery power Battery SOC Daily and total energy Voltage and current values Temperatures

One important finding is that the requirement to include the inverter serial number (sn) for all getdevdata.cgi requests does not appear to be documented. This may explain why existing integrations fail with newer AI-Dongle firmware, even though the local HTTP API itself is fully functional.

I believe this should make it possible to implement native support for Solplanet AI-Dongle LAN devices using the local HTTP API instead of Modbus TCP.

I have direct access to the hardware and would be happy to help with testing, verify changes on different firmware versions, or provide additional API responses for different operating states (PV production, battery charging/discharging, grid import/export, idle) if needed.

FuR1u5 avatar Jul 03 '26 08:07 FuR1u5

Image

Update: Working local Solplanet AI-Dongle integration (Hybrid + AI-HB G2)

After a lot of testing I finally got a working local integration using the AI-Dongle HTTP API.

Tested hardware

  • Solplanet ASW10kH-T3 Hybrid Inverter
  • AI-Dongle LAN BA121T-30 (Hardware M11)
  • AI-HB G2 Battery

No Modbus TCP is required.


Grid Meter

Use device=3 and field pac:

power:
  source: http
  uri: http://<ip>:8484/getdevdata.cgi?device=3&sn=<serial>
  jq: .pac

PV Power

At first I used:

device=2 -> pac

Unfortunately this produced an incorrect energy balance in EVCC.

For my hardware combination the correct PV power is:

device=4 -> ppv
power:
  source: http
  uri: http://<ip>:8484/getdevdata.cgi?device=4&sn=<serial>
  jq: .ppv

Battery

Battery power:

device=4 -> pb

Battery SOC:

device=4 -> soc
capacity: 10.24

power:
  source: http
  uri: http://<ip>:8484/getdevdata.cgi?device=4&sn=<serial>
  jq: .pb

soc:
  source: http
  uri: http://<ip>:8484/getdevdata.cgi?device=4&sn=<serial>
  jq: .soc

Result

With this configuration I now get:

  • βœ… Correct grid power
  • βœ… Correct PV power
  • βœ… Correct battery charge/discharge power
  • βœ… Correct battery SOC
  • βœ… Correct EVCC energy balance
  • βœ… The unknown energy flow (?) disappeared completely

I originally assumed that device=2 -> pac was the correct PV value because it contains the inverter AC power.

However, after extensive testing and comparing the values with the official Solplanet app, I found that device=4 -> ppv is the value that produces the correct site energy balance on my system.


Note

This has only been tested on:

  • ASW10kH-T3 Hybrid
  • AI-Dongle BA121T-30 (M11)
  • AI-HB G2 Battery

Other Solplanet inverter models or firmware versions may expose different values.

FuR1u5 avatar Jul 03 '26 11:07 FuR1u5

Pls. feel free to open PR with template.

andig avatar Jul 04 '26 05:07 andig

Is integration for Solplanet coming? Would be great!

Don’t know if it helpt, but someone build an extensive integration for Solplanet inverters for HA (https://github.com/zbigniewmotyka/home-assistant-solplanet)

jjbolhuis avatar Jul 15 '26 08:07 jjbolhuis