[APP][Pro] SMA Energy - My home. My energy. Our climate

There are a few ways to debug an app, best is to install the app via CLI - then you can see all log outputs on your laptop. There are multiple guides out there on how to install an app via CLI, I wrote one for one of my other apps here.

There is also a file in the test folder which you can run on your laptop and see if the general discovery code works there.

Again, essentially the only issues so far with the Energy device is due to the lack of UDP multicast support in the local network.

I figured out the issue - my energy device was installed to talk directly to the inverter (via single ethernet cross cable) and SMA’s web portal collects the data fine and reports it. The device wasn’t actually on the network and so the UDP traffic wasn’t available or accessible using Modbus.

Something perhaps to consider documenting, as apparently wiring up the energy meter in that was a fairly common thing according to the SMA tech who helped troubleshoot why it wasn’t working. He was surprised Modbus protocol was being used, as he’s never seen that in home installations before. Fair call considering Modbus was more commonly used in larger enterprise or grid monitoring systems apparently.

1 Like

Dear, First of all many thanks for the work put in the app.

I’ve just been able to add my 2 SMA inverters and home manager 2 as energy meter. One is a STP 3.0-3AV-40 which works and registers perfectly. My other one is a hybrid SMA STP 6.0-3SE-40. I added this as a normal inverter first, but everytime it is loading the battery the PV power parameter (netvermogen) gets a strange value which gives an undefined message in the energy tab.

I then tried to add it as a sunny boy storage but this adds it as an extra device (user) in the energy tab without giving any solar production.
Maybe I’m overlooking something :slightly_smiling_face:

Any help would be greatly appreciated.

Kind regards

Hello,

The SMA app was running smoothly until somewhere in September.
Suddenly it could not find the inverter anymore so we rebooted the app, rebooted homey, rebooted our network, but nothing helped.
We decided to unstinstall and reinstall the SMA app but now we are unable to add the inverter.
We have web access to the inverter with the IP we used in Homey.
We use gate 502.
We have a Unifi network.

The error message we receive:

Any ideas please? Thanks in advance!

Kind regards

Just a quick question, what does the slider do? Doesn’t seem to do anything on my STP 8.0-3SE-40
I did slide it down, but it went up again.

RPReplay_Final1696965992

And sliding to the battery-page crashes the homey-app

Slow reply, but yes you should use the inverter type. “Netvermogen” - This is “grid power” in English, and the modbus register read is 30775, which for the hybrid inverters have the description “AC Side > Grid measurements > Power”. This is the same description as for non hybrid inverters.
Such a larger number maybe is supposed to mean null, ie 0. Will see what I can find, I have since long a value I’m checking for which is supposed to be “null” (parseInt(‘0x8000 0000’, 16)).

When it is not possible to connect to an inverter it is either Modbus that is not enabled in the inverter, by default it is turned off. Or, network connectivity, segmented networks where Homey and the inverter are not in the same network.

The slider is mentioned previously in this thread, but it controls the max output of your inverter. The homey app doesn’t allow to tell units or any message on the view so not possible to clarify what it is.
I can observe the same behaviour as you describe, which is odd since this worked before on my inverter and I haven’t upgraded the firmware of it (I see my Home Manager 2 got a new firmware on the 31st of August). No error message when writing to the modbus register, but the value doesn’t seem to be persisted any longer. Will do some more digging …

This I can’t verify since I don’t have a hybrid inverter. Does it work in the Homey web app?

The slider is mentioned previously in this thread, but it controls the max output of your inverter. The homey app doesn’t allow to tell units or any message on the view so not possible to clarify what it is.

Ah, thanks… I did mis that.

This I can’t verify since I don’t have a hybrid inverter. Does it work in the Homey web app?

The webinterface does show a empty battery which is correct since i haven’t installed/connected one yet.
(How) Can i help?

I’ve been getting this error message since Wednesday. restarted the app and inverter, but no results.

2023-11-03T11:32:14.889Z
Error: Failed to set Device Type!
at /lib/sma.js:173:29

I have it working on STL9000-20.

Important is to ENABLE the TCP server in Sunny Explorer. Mine was set default to NO, but has to be YES.

After changing this setting it works like a dream. Thanks for making this app!!

1 Like

Upon startup the app tries to determine the device type in order to know which modbus registries are available. Different inverter models have different modbus registries available.
You could try and send me a manual diagnostic report.

I uninstalled the device and reinstalled it and it worked again. thanks anyway.

Hi, does your app support the SolPlanet/Aiswei convertors too?
cfr About Us | Solplanet

Hi all!

I’ve recently connected my SMA inverter to Homey and I get correct data into Homey.
The problem I now face is that I no longer get any data in my SMA energy app. It looks like every day is without any solar power. Also, I dont get any production data into my electricity company app (Tibber) like I did before I connected the inverter to Homey. Has anyone experienced the same and how can I fix this? Please take a look at my screenshots.


Only SMA inverters in this app

I saw your comment in the Homey Homies facebook group and that your sorted it out :+1:

@Richard_B

Hi,

I’am trying to connect the sunnyboy 4.0 but it cannot find the inverter, When i enter manual the ip adres , the aswer is that the inverter is not found or the wrong port.
SB4.0-1AV-41 014
Firmwareversie: 4.0.75.R
I can login the inverter, see the picture, what’s going wrong ?

Any ideas please? Thanks in advance!

Kind regards

Hi!
Nee here translates to No I guess? Meaning TCP Modbus is not enabled in the inverter - i.e. it wont work. Check the first post in the thread for how to enable Modbus.

@Richard_B ,Thx for your reply

I cannot log in with “installer” because i don’t have password, the installer did not answer my request for the password.

With “user” , in dutch “gebruiker” is it not possible to enable the Modbus.

Is there a “how to enable” discription ? or simply click on … are there value’s to fill in ?

Sorry, no workaround that I know of. You need to get the password from the installer - or have the installer login and change the value. It is a simple radio button where you change no to yes and save.
I know some installers use the same password for all inverters of a certain type (mine did), and might not want to disclose it. Thus give them the option to enable Modbus as well.

@Richard_B

After some phonecalls with the installer, he also didn’t know the password.

But !

There is a option to reset the installer password, :grinning:

Now i have the full controll :star_struck:

1 Like

Hello,

If you have this homey app, is there any point in having/buying a “sunny home manager 2.0” if you have for example the “Sunny Tripower Smart Energy” inverter? What would be the additional benefits? Or is it needed to be able to talk to the inverter?
Thanks!