MODBUS data from SMA Inverter

I have a lot of erros like this:

021-09-11 18:56:05 ERROR (SyncWorker_4) [pymodbus.client.sync] Connection to (192.168.1.22, 502) failed: timed out

2021-09-11 18:56:05 ERROR (SyncWorker_4) [homeassistant.components.modbus.modbus] Pymodbus: sma_hub: Modbus Error: [Connection] Failed to connect[ModbusTcpClient(192.168.1.22:502)]

2021-09-11 18:56:08 ERROR (SyncWorker_1) [pymodbus.client.sync] Connection to (192.168.1.22, 502) failed: timed out

2021-09-11 18:56:11 ERROR (SyncWorker_3) [pymodbus.client.sync] Connection to (192.168.1.22, 502) failed: timed out

2021-09-11 18:56:14 ERROR (SyncWorker_4) [pymodbus.client.sync] Connection to (192.168.1.22, 502) failed: timed out

2021-09-11 18:56:17 ERROR (SyncWorker_2) [pymodbus.client.sync] Connection to (192.168.1.22, 502) failed: timed out

2021-09-11 18:56:20 ERROR (SyncWorker_1) [pymodbus.client.sync] Connection to (192.168.1.22, 502) failed: timed out

2021-09-11 18:56:23 ERROR (SyncWorker_3) [pymodbus.client.sync] Connection to (192.168.1.22, 502) failed: timed out

Definitely some network connectivity problem. Can you ping the inverter IP from your HA computer? Also, are both your HA device and the SMA are the same network subnet?

1 Like

Yes, I can ping the Inverter from my HA. But when I do a portscan to the IP address of my inverter, port 502 or other ports aren’t recognized. HA and the inverter are in the same subnet.

No knowing what port scan tool you’re using, know that some only scan “common” ports and would not include port 502. Do you have any firewalls or hardware between your two devices? If they are connected to the same switch, then I suspect you have a problem with the network card in the inverter? Does the inverter report data to SMA? Is that working? Is your inverter a newer one or a few years old. Reason I ask is the newer ones have networking built in and have a web interface. If yours is new and you can’t reach it on port 80 then that’s a big sign somethings up with the network interface on the inverter. The older inverters, like mine, have an add-on network interface box and do not include a web interface. Sorry I’m not much help here. Maybe try powering down your system and restart it?

1 Like

The are both connected to the same switch. The Inverter is a newer one. Webconnect is Enabled from which I can see with Sunny Explorer. But can’t connect with IP and with a browser. SMA told me that Webconnect isn’t working anymore with SMA Tripower 15000. Strange! I just make a support ticket to SMA. Hopefully the can help me further. Thanks for your support and to give soms me tips what it can be.

Great. Since you have a new inverter, once you figure out the network problem, you should be able to use the SMA Solar Integration that’s available: SMA Solar - Home Assistant

I can’t use this Integration because it only works with the newer inverters with built in networking.

1 Like

First thank to Catman, I finaly got rid off the nonsense number when sun is down :slight_smile:
I was trying to use the SMA solar integration but Im always getting error. I have contacted SMA Australia and I have to say I was shocked as I got reply in 10min. I have STP 7000TL-20 and from their reply I cant use the SMA integration.

SMA response:
This model of inverter does not have an interface through the WEBUI which is accessed through the IP in the browser, but this is only for models ending in -40 or -41.

Awesome! Glad you got it working!

@rbusscher did you ever get some answers regarding your SMA Tripower 15000?

No. I spoke to someone from SMA. They tell me that you cannot read from the SMA Tripower Inverter because the inverter can only send data to 1 system (app, web or HA). So if you use the SMA App, you cannot read the data with HA :frowning: So stuppid this. So I ask why and If I can use the second UTP port in the inverter to read the data with HA. To be continue.

1 Like

Hello, it works, I’ve tried it, just great.
At the beginning I had the problem that I couldn’t reach the inverter.
Just restarted the inverter helped.

Have you ever tried to restart the inverter?
At the beginning I had the problem that I couldn’t reach the inverter.

This worked for me: Integration with SMA Solar STP 10000TL-20 via SBFspot

Hi, I have to tell you that you actually have an error in the total yield, which according to the original SMA document is 30513 and count 4.
Both work, but according to the document it is wrong.

I finaly got the modbus with SMA Inverter to work in Sweden. Many thanks to people in this thread and othere threads for all the work.

after restart you can reach sma with your web browser?

Hello, no, I can’t access the inverter via the browser if that’s what you mean.
Either via the Sunny Explorer or via the Sunnyportal and now also in Home Assistant.

I have an old SB 3000 TL-21, with a speedwire in it.
No matter what I try, the installation via integrations in HA, nor manually typing in the modbus things, nor via http: all things here named do simply ot work.
Integrations give an error, the others well simply show nothing or 0 for sensor readings.
Maybe scrape is the way to go, but what am I missing.
Maybe it is too ald to be read out, although via my speedwire software i can read it out and via the website of SMA too so it is sending for sure!

Have you switched on the Modbus interface in the inverter?
See contribution from jan. '20
See other posts above. If you haven’t done that, it won’t work. To switch on the communication you need the installer password.

Yes, it is switched on! I switched all protocols on in order to see if it was that which stopped it from working. Modbus was already on, I think it is to communicate with my sma software and with SMA Germany.
So yes all is on.