Article · Home Assistant · Photovoltaics

SMA in Home Assistant: Webconnect, ennexOS and Sunny Home Manager

Anyone who wants to see the data of their SMA system usually ends up in Sunny Portal. Home Assistant fetches it locally from the device, without the portal and without an account. The core integration for this has existed for years, but it only knows the older device family with Webconnect. ennexOS devices such as the Sunny Tripower X and the Sunny Home Manager 2.0 need a different route. Which one depends on the device first.

Route 1
SMA Solar core integration: local via Webconnect, read-only
Route 2
SMA Devices Plus (HACS): Webconnect, ennexOS, Energy Meter and Home Manager
Route 3
Modbus TCP: local, can write, has to be enabled on the device first
Not in core
ennexOS devices, SMA Energy Meter, Sunny Home Manager
Status
October 2026 · primary sources below, with check date
Author
Julian Haag, state-certified electrical engineering technician

The essentials in one minute

First: Webconnect or ennexOS?

SMA has two device families in the field, and Home Assistant treats them differently. The older one has a web interface SMA calls Webconnect; that is what the core integration uses. The newer one runs the ennexOS operating system. In its Technical Information on the ennexOS Modbus interface, SMA lists these devices, among others:

If your device is on this list, route 1 is closed and you continue with route 2 or 3. For inverters not on the list, the core integration is the first thing to try. Its documentation names a simple test: if you can reach the inverter's interface in a browser, the prerequisite is met.

The Sunny Home Manager 2.0 and the SMA Energy Meter are not inverters but meters at the grid connection point. They fall outside the core integration in both families; they are covered in the section Energy Meter and Sunny Home Manager.

Route 1: the SMA Solar core integration

Home Assistant ships the SMA Solar integration, since version 0.36. It is classified as “Local Polling”, meaning it queries the device on the home network, and it reads inverters, the energy meter values they pass on, and battery inverters. The work is done by the Python library pysma; its description puts it plainly: it uses Webconnect, Modbus is not supported.

Setup happens in the UI. Home Assistant often finds the device by itself, because the integration recognises SMA devices on the network by hostname and by the manufacturer prefix of the MAC address. Otherwise you add it under Settings › Devices & services. It asks for:

From then on the integration polls the device every 5 seconds. It only creates the sensors the device actually reports, so an inverter without a battery gets no battery values. Many values are disabled after setup, among them the per-phase voltages, currents and powers, the grid frequency and the battery values split into A, B and C. If you need them, enable them in the entity settings.

The sensor list is not complete. The documentation itself says that further values from the web interface first have to be added to the library before the integration shows them.

What reaches the energy dashboard

The energy dashboard needs meter readings in kWh, not instantaneous power. The core integration creates these energy sensors, all with an increasing total:

Energy sensors of the SMA Solar integration
SensorMeaning according to pysmaDashboard use
total_yieldtotal yield of the PV system, kWhsolar production
pv_gen_meterenergy generated to date, kWhsolar production (alternative)
metering_total_absorbedenergy drawn from the grid, measured by the energy meter, kWhgrid consumption
metering_total_yieldenergy fed into the grid, measured by the energy meter, kWhreturn to grid
battery_charge_totalbattery charge energy, kWhenergy into the battery
battery_discharge_totalbattery discharge energy, kWhenergy out of the battery

The two metering values are the catch. According to pysma they come from an energy meter the inverter evaluates; without a meter at the grid connection point the inverter does not report them, and the integration does not create them. Then grid consumption and feed-in are missing, and the dashboard only shows generation. The daily yield daily_yield sits alongside in watt-hours; for the dashboard the total counter is the better choice because it does not jump back to zero at midnight.

If the grid values are missing, there are two ways out: read the Energy Meter or Home Manager via one of the other routes, or install your own meter. What that looks like with a Shelly Pro 3EM, and which sensors the dashboard expects, is covered in Home Assistant Energy dashboard with the Shelly Pro 3EM. The SMA sensors carry a state class and therefore also end up in the long-term statistics; why that matters once the raw values are purged after ten days is explained in Home Assistant long-term data.

Energy Meter and Sunny Home Manager

The Home Assistant documentation is unambiguous here: all Energy Meters, explicitly the SMA Energy Meter and the Sunny Home Manager, are not supported by the core integration. Yet they are exactly the devices that measure consumption and feed-in at the grid connection point.

Both send their readings onto the local network via Speedwire, SMA's Ethernet technology, which sends UDP telegrams on port 9522. SMA has published the meter protocol: it defines channels per phase and in total for active, reactive and apparent power, with meter readings in both directions, plus current, voltage and power factor. The meter readings have a resolution of one watt-second. Whoever listens in gets exactly what the energy dashboard is missing.

Listening in requires a network that passes multicast through. The operating manual of the Sunny Home Manager 2.0 requires the router to forward multicast telegrams to all nodes and all network components to support IGMP version 3 or later. It also states that only one system with a Sunny Home Manager may be installed on the local network. The community project SMA-EM, whose decoder several solutions use, points out that on a computer with several network interfaces a route for the multicast range may be needed.

Two tools read the meter for Home Assistant:

How the Sunny Home Manager 2.0 also implements the grid operator's limits under section 14a EnWG is covered in SMA and section 14a EnWG.

Route 2: SMA Devices Plus

The SMA Devices Plus integration is a community project and is installed via HACS. It builds on pysma-plus, an offshoot of pysma that is explicitly unofficial and unaffiliated with SMA. Its starting point is stated in the description: the core integration only supports devices with Webconnect. SMA Devices Plus offers four access methods during setup:

For inverters the project recommends Webconnect or ennexOS. As with the core integration, not all entities are enabled from the start. The project keeps a list of successfully tested devices; a look at it before setup saves searching. It is a project by individuals, and what applies to every HACS integration applies here: after a Home Assistant update there is no guarantee it keeps running straight away.

Route 3: Modbus TCP

Modbus TCP is the route SMA documents itself, and the only one of the three that writes. In Home Assistant it runs through the Modbus integration, where you enter the registers yourself. SMA describes the interface as designed for industrial use, for example a grid operator's control system, and the notices show it.

Turning it on

In both device families the Modbus interface is disabled by default. For the Sunny Boy and Sunny Tripower models in SMA's Technical Information on SunSpec Modbus, it is enabled in the installation assistant of the web interface, in the network configuration step under Modbus, with TCP port 502. On ennexOS devices the parameter is called “Modbus TCP server on” and sits at device level. Which registers a device has is not in the general Technical Information but in a device-specific register list on SMA's product or Modbus page. After a reset to factory settings the interface is off again.

What SMA warns about

For Home Assistant this leads to a clear rule: an automation that rewrites a setpoint every few minutes belongs only on registers SMA releases for that. Everything else is set once and then left alone. Anyone who wants to build zero export or a charging control with the inverter or battery will find the basics in Zero export with Home Assistant and Controlling a home battery with Home Assistant.

The routes compared

SMA in Home Assistant
SMA Solar (core)SMA Devices PlusModbus TCP
Webconnect devicesyesyesyes, once enabled
ennexOS devicesnoyesyes, once enabled
Energy Meter, Home Managernoyes, via Speedwire—
Local, no portalyesyesyes
Writingno—yes, with SMA's warnings
SetupUI, device passwordHACS, then UIenter registers yourself
Maintained byHome Assistant projectcommunitySMA (register list), Home Assistant project (integration)

A dash means the sources say nothing about it. According to SMA the Energy Meter speaks its own meter protocol over Speedwire, not Modbus; for SMA Devices Plus the project describes no write functions.

That gives a simple order. If you have a Webconnect inverter and only want to see data, take the core integration; it is set up in minutes and maintained with Home Assistant. If you have an ennexOS inverter or need the Home Manager's grid values, take SMA Devices Plus. Modbus only comes into play when Home Assistant is meant to change something, and then with care.

Frequently asked questions

Do I need Sunny Portal to see SMA data in Home Assistant?

No. The SMA Solar core integration queries the device directly on the home network, through its web interface Webconnect. It needs the device's IP address and the password of the user group, not a portal account. The same applies to the local routes for ennexOS devices.

Does the SMA integration work with the Sunny Tripower X?

No. According to the Home Assistant documentation, devices with the ennexOS operating system, such as the Tripower X series, are not supported. For them there is the community integration SMA Devices Plus via HACS, or Modbus TCP, which first has to be enabled on the device.

Can Home Assistant read the Sunny Home Manager 2.0 or the SMA Energy Meter?

Not with the core integration, which explicitly excludes all Energy Meters including the Sunny Home Manager. Both send their readings onto the local network via Speedwire, though. The community integration SMA Devices Plus reads the Energy Meter and the Sunny Home Manager 2 this way, and for the Energy Meter there is also an app that passes the values on via MQTT.

Can I control the SMA inverter from Home Assistant?

Not with the core integration, which only creates sensors. Writing works via Modbus TCP. SMA warns that cyclically changing device parameters destroys the flash memory; the only exception is the grid management parameters SMA marks for that purpose. On ennexOS devices, control via Modbus can also throw SMA's own energy management off.

Which SMA values can I use in the energy dashboard?

The core integration creates meter readings in kWh: total yield of the PV system, grid feed-in and grid consumption if the inverter evaluates a meter, and charge and discharge energy for battery inverters. They are only created, however, if the device actually reports the value.

Sources

The details on the core integration come from the documentation and source code of Home Assistant and the pysma library, those on Modbus, Speedwire and the Home Manager from SMA's Technical Information and manuals, and those on the community solutions from their project descriptions. No first-hand experience with SMA devices is included; this article is a sourced overview.

Haag Automation has no business relationship with SMA or the projects mentioned. Writing via Modbus changes parameters of a grid-connected device; if in doubt, agree it with the qualified electrician who installed the system.

Want to bring your SMA system into Home Assistant locally, including grid consumption and feed-in in the energy dashboard? I can set it up with you – the first conversation is free.