All devices

SMA · Home battery

Sunny Boy Storage 2.5 / 3.7 / 5.0 / 6.0 Modbus register map

Download JSONSupplier documentationSuggest an edit

Default configuration

Protocol
Modbus TCP
Port
502
Unit ID
3
Addressing
0-based
Byte order
Big endian
Word order
High word first

Register map

AddressCountNameTypeUnitScaleAccess
300012
SMA Modbus profile version
UInt32-1R
300032
SUSy ID
UInt32-1R
300052
Serial number
UInt32-1R
307752
Active power, all line conductors (GridMs.TotW)
Positive means export to the grid.
Int32W1R
308432
Battery current (Bat.Amps)
Int32A0.001R
308452
Battery state of charge (Bat.ChaStt)
UInt32%1R
308472
Battery capacity (Bat.Cap)
UInt32%1R
308492
Battery temperature (Bat.TmpVal)
Int32°C1R
308512
Battery voltage (Bat.Vtg)
UInt32V0.01R
308532
Active battery charging mode (Bat.ChaMod)
UInt32-1R
308652
Power drawn from grid (Metering.GridMs.TotWIn)
Int32W1R
308672
Power fed to grid (Metering.GridMs.TotWOut)
Int32W1R
313932
Battery charge power (BatChrg.CurBatCha)
UInt32W1R
313952
Battery discharge power (BatDsch.CurBatDsch)
UInt32W1R

Notes

SMA Modbus profile registers, taken from the evcc templates https://raw.githubusercontent.com/evcc-io/evcc/master/templates/definition/meter/sma-sbs-modbus.yaml and https://raw.githubusercontent.com/evcc-io/evcc/master/templates/definition/meter/sma-hybrid.yaml and named the way the SMA Modbus profile document names them. Modbus TCP has to be enabled on the inverter (Communication -> Modbus -> TCP, slave = 3), port 502, unit ID 3. Measurement values live in the 30xxx area and are listed as input registers here, setpoints in the 40xxx area as holding registers - the same convention as the Sunny Boy/Tripower seed. Battery setpoints (CmpBMS) are 32-bit unsigned values in W; OpMod 2424 is the default operating mode, 2289 is 'battery charge'. The six CmpBMS holding registers (40236 and 40793-40801) are the only write registers in this map and are exactly what evcc writes for active battery control; every input register is read-only. The metering energy counters of this profile (Metering.TotWhIn/TotWhOut) are 64-bit values and are left out rather than split. Category changed from Battery inverter to Home battery (storage-centred).