TapHome
Community Beta Energy & metering

SMA Sunny Tripower Smart Energy

SMA Sunny Tripower Smart Energy (STPx.0-3SE-40) hybrid inverter in TapHome over Modbus TCP, read-only: AC output power and total yield, power and energy drawn from and fed into the grid, battery state of charge with charging and discharging power, grid voltages, frequency and device condition.

Modbus TCP6 devicesRevision 1.1 Last updated: November 10, 2026

Submitted by Martin Keller

SMA Sunny Tripower Smart Energy

Import into the TapHome appHardware › Modbus › Add from template

Download Template
On this page

Network address

TapHome reaches this device at the address entered on import. Give the device a fixed address — an IP reservation in the router, or its mDNS name if it supports one — otherwise the integration stops working when the router changes the address.

Network Preparation

Integration guide

The SMA Sunny Tripower Smart Energy (STP5.0-3SE-40, STP6.0-3SE-40, STP8.0-3SE-40 and STP10.0-3SE-40) is a three-phase hybrid PV inverter with a DC connection for a battery. TapHome communicates with it over Modbus TCP in the local network, using the SMA Modbus profile.

The template is read-only. It shows the AC output power and total yield of the inverter, power and energy drawn from and fed into the grid, the battery state of charge with its charging and discharging power, and grid and device diagnostics. It does not write any parameters and does not control the battery.

Hardware connection

The network port of the inverter is located in the connection area at the bottom of the enclosure (position D, network ports with protective caps). The inverter has two network sockets: one connects to the local network, the second can be used for a communication product such as the SMA Energy Meter or the Sunny Home Manager.

Connection areas at the bottom of the SMA Sunny Tripower Smart Energy inverter: DC inputs, battery connector, network port, CAN and DIG-I/O, AC-BACKUP and AC-GRID sockets.

Network cable requirements

RequirementValue
Cable type100BaseTx
Cable categoryat least CAT5e
Plug typeRJ45 of Cat5, Cat5e or higher
ShieldingSF/UTP, S/UTP, SF/FTP or S/FTP
Conductor pairs and cross-sectionat least 2 × 2 × 0.22 mm²
Maximum length between two nodes50 m with patch cables, 100 m with installation cables
Outdoor installationUV-resistant cable

Connecting the network cable

Connecting the network cable is an activity for a qualified person according to the SMA operating manual.

  1. Disconnect the inverter from voltage sources as described in the SMA operating manual.
  2. Unscrew the protective cap from the network port.
  3. Press the cable support sleeve out of the threaded sleeve.
  4. Feed the network cable through the swivel nut and the threaded sleeve and attach the cable support sleeve to the cable.
Operating manual page showing how to unscrew the network port cap and prepare the network cable with the cable support sleeve.
  1. Press the cable support sleeve into the threaded sleeve.
  2. Insert the network plug into the network port of the inverter until it locks in place, then turn the threaded sleeve onto the thread of the network port.
  3. Screw the swivel nut onto the threaded sleeve.
  4. Connect the other end of the cable to the local network, for example to the router or switch that the TapHome Core is connected to.
Operating manual page showing how to insert the network plug into the inverter network port and tighten the threaded sleeve.

Overvoltages, for example from lightning, can be conducted over network cables into the building and to other devices in the same network. Integrate all devices in the network and the battery into the existing surge protection, and provide a surge protection device where a network cable is laid outdoors and enters the building. Always use the supplied RJ45 protective sleeve — moisture entering the network port can damage the inverter.

The inverter can alternatively join the local network over Wi-Fi. SMA recommends an Ethernet connection to the router when the Wi-Fi connection quality is poor.

Configuration

Network and IP address

In the local network, the inverter receives its IP address from the DHCP server (router), or the address is assigned manually. The current address is shown in the status bar of the inverter user interface and can be found in the network configuration of the router or with a network scanner. Because TapHome connects to a fixed IP address, assign a static address or create a DHCP reservation in the router.

The IP address range 192.168.12.0 to 192.168.12.255 is reserved for communication between SMA products and for direct access to them. Do not use this range in the local network, otherwise communication problems may occur.

Opening the user interface

  • In the local network — enter the IP address of the inverter in a web browser. On Apple and Linux systems, https://SMA[serial number].local also works; on Windows and Android, https://SMA[serial number].
  • Direct Ethernet connection — connect a laptop directly to the inverter and open 169.254.12.3.
  • Direct Wi-Fi connection — connect to the network SMA[serial number] with the device-specific Wi-Fi password from the type label, then open https://smalogin.net or 192.168.12.3. The SMA 360° app can also open the user interface by scanning the QR code on the inverter.

The browser may warn that the connection is not secure — continue loading the page to reach the login page.

Logging in as Installer

On first access, the user interface asks for two passwords: one for the User group and one for the Installer group. If the inverter is registered in a communication product such as the Sunny Home Manager or in a Sunny Portal system, the installer password must match the system password of the plant. Changing the Modbus settings requires logging in with the user group Installer.

Enabling the Modbus TCP server

The Modbus TCP server is deactivated by default and must be enabled before TapHome can read the inverter:

  1. Log into the user interface as Installer.
  2. Select the Device Parameters tab and click Edit parameters.
  3. Open the parameter group External Communication.
  4. In the group Modbus > TCP Server, set Activated to Yes.
  5. Keep the port at the default value 502.
  6. Click Save all.
ParameterValue
ProtocolModbus TCP
Port502 (default)
Unit ID3 (default of the SMA Modbus profile, configurable from 3 to 123)
Register format16-bit registers; the measured values are 32-bit blocks of two registers, big-endian

If the Unit ID was changed in the inverter, enter the same value when importing the template.

Once the Modbus interface is active, all data points not protected by the SMA Grid Guard code can be read over Modbus without a password. SMA recommends a firewall, closing unnecessary network ports, remote access only over a VPN and no port forwarding to the Modbus port.

In TapHome, add a Modbus TCP interface, import the template and enter the IP address of the inverter and the Unit ID.

Device capabilities

Inverter output

  • PV Production — the AC output power of the inverter in kW (H:30775) and the total yield counter in kWh (H:30529). The power is measured on the AC side of the inverter, not on the individual PV strings.

Grid exchange

  • From Grid — power currently drawn from the grid in kW (H:30865) with the counter of energy drawn from the grid in kWh (H:30581).
  • To Grid — power currently fed into the grid in kW (H:30867) with the grid feed-in counter in kWh (H:30583).

The values at the grid connection point require an energy meter in the system. SMA permits the SMA Energy Meter (EMETER-20) or the Sunny Home Manager 2.0 (HM-20) with this inverter.

Battery

  • Battery (SOC) — battery state of charge in % (H:30845).
  • Battery charging power — present battery charging power in kW (H:31393).
  • Battery discharging power — present battery discharging power in kW (H:31395).

The service attribute Battery operating status (H:30955) shows Off, Standby, Charging, Discharging or Emergency charge.

Diagnostics

Service attributes of the module:

AttributeRegisterMeaning
Device conditionH:30201OK, Warning, Fault or Off
Grid voltage L1, L2, L3H:30783, H:30785, H:30787Phase voltages in V
Grid frequencyH:30803Grid frequency in Hz

When the inverter reports Fault, the module shows an error in TapHome; Warning raises a warning and Off an information message. The details are in the Events menu of the inverter user interface.

Troubleshooting

  • No response on port 502 — the Modbus TCP server is deactivated by default; enable it as described above. After the inverter is reset to default settings, check that the Modbus interface is still active.
  • The inverter cannot be reached after a while — the IP address assigned by DHCP has changed. Read the current address in the status bar of the user interface or in the router, and set a static address or DHCP reservation.
  • Communication problems in the network — check that the local network does not use the range 192.168.12.0 to 192.168.12.255, which is reserved for SMA products.
  • From Grid and To Grid do not change — check the energy meter. Event 7619 “Communication fault with meter unit” in the inverter means that the inverter receives no data from the energy meter; SMA advises integrating the energy meter into the same network as the inverter or connecting it directly to the second Ethernet port of the inverter.
  • Power values show 0 or attributes show “n/a” — SMA marks unavailable measured values with special codes (0x8000 0000 for signed and 0xFFFF FFFF for unsigned 32-bit values). The template shows 0 for power values and “n/a” for voltage and frequency in that case; the energy counters are not affected.
  • Slow or missing readings with other Modbus clients active — SMA asks for at least 1 second between Modbus data transfers and no more than five values transmitted at the same time. The template polls every 15 seconds; avoid shortening the poll intervals.
  • Device condition shows Warning or Fault — open the Events menu in the inverter user interface for the event message and the corrective measures.

Available devices 6

These devices appear in TapHome after import.

SMA Sunny Tripower Smart Energy Module
Service Attributes
Device condition
Battery operating status
Grid voltage L1
Grid voltage L2
Grid voltage L3
Grid frequency

SMA Sunny Tripower Smart Energy

Read (module)
VAR health := MODBUSR(H, 30201, UInt32);
IF(health = 35)
  ADDERROR(0, "Inverter reports a fault - check the event log in the inverter user interface");
END
IF(health = 455)
  ADDWARNING(1, "Inverter reports a warning - check the event log in the inverter user interface");
END
IF(health = 303)
  ADDINFO(2, "Inverter is off");
END
Service Attributes
Device condition
SWITCH(MODBUSR(H, 30201, UInt32), 35, "Fault", 303, "Off", 307, "OK", 455, "Warning", "Unknown")
Battery operating status
SWITCH(MODBUSR(H, 30955, UInt32), 303, "Off", 2291, "Standby", 3664, "Emergency charge", 2292, "Charging", 2293, "Discharging", 16777213, "Not available", "Unknown")
Grid voltage L1
IF(MODBUSR(H, 30783, UInt32) = 4294967295, "n/a", TOSTRING(MODBUSR(H, 30783, UInt32) / 100, "F1") + " V")
Grid voltage L2
IF(MODBUSR(H, 30785, UInt32) = 4294967295, "n/a", TOSTRING(MODBUSR(H, 30785, UInt32) / 100, "F1") + " V")
Grid voltage L3
IF(MODBUSR(H, 30787, UInt32) = 4294967295, "n/a", TOSTRING(MODBUSR(H, 30787, UInt32) / 100, "F1") + " V")
Grid frequency
IF(MODBUSR(H, 30803, UInt32) = 4294967295, "n/a", TOSTRING(MODBUSR(H, 30803, UInt32) / 100, "F2") + " Hz")
${deviceType_PVProduction} Electricity Meter

${deviceType_PVProduction}

Read total consumption
MODBUSR(H, 30529, UInt32) / 1000
Read demand
IF(MODBUSR(H, 30775, Int32) = -2147483648, 0, MODBUSR(H, 30775, Int32) / 1000)
${deviceType_PVFromGrid} Electricity Meter

${deviceType_PVFromGrid}

Read total consumption
MODBUSR(H, 30581, UInt32) / 1000
Read demand
IF(MODBUSR(H, 30865, Int32) = -2147483648, 0, MODBUSR(H, 30865, Int32) / 1000)
${deviceType_PVToGrid} Electricity Meter

${deviceType_PVToGrid}

Read total consumption
MODBUSR(H, 30583, UInt32) / 1000
Read demand
IF(MODBUSR(H, 30867, Int32) = -2147483648, 0, MODBUSR(H, 30867, Int32) / 1000)
${deviceType_BatterySOC} Analog Input

${deviceType_BatterySOC}

Read input level
IF(MODBUSR(H, 30845, UInt32) = 4294967295, 0, MODBUSR(H, 30845, UInt32) / 100)
Battery charging power Variable

Battery charging power

Read
IF(MODBUSR(H, 31393, UInt32) = 4294967295, 0, MODBUSR(H, 31393, UInt32) / 1000)
Battery discharging power Variable

Battery discharging power

Read
IF(MODBUSR(H, 31395, UInt32) = 4294967295, 0, MODBUSR(H, 31395, UInt32) / 1000)
Connection: Modbus TCP • Slave ID: $[SlaveId]

Import parameters

Enter these values when you import the XML.

Asked in the appDefault
IP address192.168.1.100
Unit ID (SMA Modbus profile)3

Found a problem with this device template?

Tell us what's wrong, what's missing, or how the template should behave. We rely on your feedback to keep the catalog accurate.

Template · TapHome portal SMA Sunny Tripower Smart Energy Open this template in the Customer Portal to apply it to one of your homes, or to draft a refinement and submit it back to the catalog. Modbus TCP View in TapHome portal