Monitors HUAWEI SUN2000 inverter, LUNA2000 battery, and Smart Power Sensor via Modbus TCP.
Overview
This ModbusCloud template reads live power and battery data from HUAWEI SUN2000 residential and commercial inverters, optional LUNA2000 battery storage, and Smart Power Sensor meters over Modbus TCP. Connection is made through the SmartDongle WiFi/FE, which can host up to ten inverters on separate Modbus addresses for multi-string and cascaded installations.
Key readings
Smart Power Sensor Power
LUNA2000 State of Charge
LUNA2000 Battery Power
DC Power
Use cases
Show PV production, battery state of charge, and grid import or export on a single customer dashboard with minute level resolution.
Send an email or push alert when the LUNA2000 state of charge drops below a threshold overnight, so you can diagnose standby drain.
Log DC power per MPPT input for performance comparisons between strings, especially useful for east-west roof setups.
Monitor Smart Power Sensor readings to verify that a HUAWEI installation is exporting to the grid correctly under net metering rules.
Aggregate multiple cascaded inverters on one dongle into a portfolio view for installers managing several sites.
Installation
1Update the SUN2000 inverter to firmware SPC123 or newer. On SPC124+, open the FusionSolar app and enable Modbus TCP on the dongle settings page.
2Connect the SmartDongle WiFi/FE to the same local network as your ModbusCloud gateway. Note its IP address or configure a DHCP reservation.
3In ModbusCloud, add a new device with protocol Modbus TCP, pointing at the dongle IP on port 502 and slave ID 1 (inverter 1).
4Import the HUAWEI SUN2000 template into the device. Readings appear within 30 seconds.
5For multi-inverter setups, repeat for slave IDs 2, 3, ... up to the number of inverters behind the dongle.
Things to watch for
01
Why do I get read errors when my polling interval is faster than 5 seconds?
The SmartDongle WiFi/FE is rate limited by HUAWEI. Any interval below 5 seconds triggers dropped packets or error responses. Keep ModbusCloud polling at 5 seconds or higher, which is the default for this template.
02
I can reach the dongle by ping but Modbus requests time out. What should I check?
On SPC124 and newer firmware, Modbus TCP is disabled by default. Open FusionSolar app, go to Commissioning, and enable Modbus TCP under the dongle settings. The port will open after a short reboot.
03
Which slave ID do I use for the battery and power sensor?
They share the slave ID of the inverter they are connected to. For a single inverter install, everything is on slave ID 1. The template maps dongle, inverter, battery, and sensor registers all at that address.
Registers (4)
4 read / 0 write
Name
Address
Function
Type
Unit
Access
SmartPowerSensor Power
37113
FC03
int32
kW
R
Luna SOC
37004
FC03
uint16
%
R
Luna Power
37001
FC03
int32
kW
R
DC Power
32064
FC03
int32
kW
R
Working with Modbus in your projects?
ModbusCloud is the hardware-plus-software platform that installers use to monitor, visualise and control Modbus devices from one portal. This template is one of hundreds you can use right away.