SMA SMA Smart Energy Hybrid Inverter (grid) Modbus TCP template

SMA Smart Energy Hybrid Inverter (grid)

The SMA Smart Energy Hybrid Inverter is a residential and light-commercial hybrid PV inverter that manages solar generation, battery storage, and grid exchange in a single unit. This Modbus TCP template reads the inverter's grid metering registers: total grid import power, total grid export power, cumulative grid energy drawn, and per-phase currents and directional active power for all three phases. Each phase pair separates consumption from feed-in, enabling accurate signed power calculation without relying on a separate meter. The template gives installers and energy managers a complete picture of grid interaction directly in the ModbusCloud portal.

Protocol
Modbus TCP
Connection
Ethernet, Modbus TCP
Registers
12, read only
Brand
SMA
Last updated

Registers (12)

12 read, 0 write

NameUnitAccessAddress (Hidden until you enter your email)Function (hidden)Type (hidden)
power_aWRead
power_bWRead
energyWhRead
currents_aARead
currents_bARead
currents_cARead
powers_aWRead
powers_bWRead
powers_cWRead
powers_dWRead
powers_eWRead
powers_fWRead

Loading registers…

Send your device list

If a device is not in the library yet, we build the template for free as soon as we have the register data.

Number of installations (optional)

Use cases

  • Monitor total grid import and export power in real time to verify self-consumption performance across the site.
  • Track cumulative grid energy drawn over time to validate billing against the utility meter reading.
  • Compare per-phase grid consumption registers against feed-in registers to detect phase imbalances in three-phase installations.
  • Alert on sustained grid import above a threshold during expected solar peak hours to spot underperforming PV strings.
  • Report hourly directional phase power to support energy audits and grid-connection compliance documentation.

Installation

  1. Enable Modbus TCP on the SMA Smart Energy Hybrid Inverter: log into the inverter web interface, navigate to the communication or external communication section, and activate the Modbus TCP server on port 502.

  2. Connect the ModbusCloud Gateway to the same LAN as the inverter using a standard Ethernet cable, ensuring both devices are on the same IP subnet and port 502 is not blocked by a firewall.

  3. In the ModbusCloud portal, add a new device, import the SMA Smart Energy Hybrid Inverter (grid) template, and set the unit ID to match the value configured on the inverter (default is typically 3).

  4. Verify the connection by spot-checking register 30865 (total grid import power) in the portal's live register view and confirming the value matches the inverter's own web interface display.

Things to watch for

Register values show as very large numbers or -1. Why?

SMA uses proprietary NaN sentinel values on its Modbus profile. When the inverter's power stage is inactive, for example at night or in standby, registers return these sentinel values instead of zero. Treat any value matching the documented NaN pattern for int32 or uint32 as zero in your processing logic or alert rules.

The gateway connects but no register values appear. What now?

Check that Modbus TCP is actively enabled in the inverter web interface under the external communication section. The interface is disabled by default. Also confirm the unit ID configured on the inverter matches the unit ID set in the ModbusCloud portal. A unit ID mismatch returns error code 11 from the inverter and no data is delivered.

Per-phase power registers all read zero even though grid power is flowing.

Registers powers_a through powers_f (31259 to 31269) are directional and unsigned: each register is zero when power flows in the opposite direction on that phase. Grid consumption shows on the WIn registers and feed-in shows on the W registers. Subtract the feed-in register from the consumption register for each phase to obtain the signed net power per phase.

Phase current registers return the same positive value regardless of direction. Is this correct?

Yes, this is by design. Registers 31435, 31437, and 31439 report unsigned magnitude only, independent of whether the phase is consuming or feeding. To determine direction, compare the corresponding per-phase consumption and feed-in power registers and apply the sign to the current reading in your dashboard or alert configuration.

Want to see how it works?

Electrician working in an open distribution board