Integration Solar inverter huawei 2000L

Indeed, the button is missing with me…
I have a dongle but use the SUN2000-XXX access point from the inverter (192.168.200.1)

Will try it with the dongle unplugged…

Which version of the app are you running ? Android or Iphone ?

Just to clarify:

I had followed all the instructions as in the description.
But it was still not possible to enable the modbus TCP.

The helpdesk informed me that next week it would be possible to enable this option from the fusionsolar cloud. If this is still not possible in the second week of January, I will contact them again.

Has anyone managed to do it with the SUN2000 17KTL M0?

I can confirm that :

  • the ‘Manual select’ button is only available with Android, not iOS. (FusionSolar 7.0)
  • the Software Version SPC117 has the Port 502 closed on the AP Inverter.
  • the Version SPC115 allows Modbus TCP Port 502 on the AP Inverter.

This is my setup :

image

1 Like

FYI to all - Huawei updated their software this week and they changed (again) their kiosk integration. As a result both the configuration script-based curl integration and the HACS component stopped working. I hope their brilliant authors will give us some updated version…

How do you guys get the firmware ? Just send a mail to Huawei? I’m not allowed to download it from the site.

Just thinking out loud here: How does the fusionSolar app communicates with the inverter? So there should be an authentication endpoint / port open for this? If I have time I will take a look at this. When I tried before wireshark was not showing any communications between the emulated app on bluestacks and the inverter.

I also did some basic Wiresharking before out of curiosity and all communication appears to go over the modbus port (502). I didn’t check the authentication process to be honest.

Well the weird part is that even if the port is closed, the app still can communicate and read out the values. The biggest issue IMO that I have is that Huawei just closes the modbus port without any warning. Can anyone confirm this latest update also closes the port if you are using the smartdongle? So using modbus over your local home network?
Things what I going to try the next weeks (I do not have a lot of spare time but will do my best):

Wiresharking, burp suite the communication between the app and the inverter.

Reverse engineer the fusionsolar app to see if I can find some relevant information

And a happy new year all!

EDIT

Just found an open port on the inverter: 6607/tcp. Still investigating what this port function is.

Hi,

On my kiosksetup, the url has changed from https://eu5.fusionsolar.huawei.com to https://region03eu5.fusionsolar.huawei.com

I suspect this may be unique to each region (I am UK).

To fix, I changed a line in sensor.py found in custom_components\fusion_solar_kiosk (on my setup)

Line 36 should read…

api = FusionSolarKioksApi(‘https://region03eu5.fusionsolar.huawei.com’)

1 Like

AFAIK the port is only open on the access point of the inverter itself. It is closed on the connected network. It was also stated in the release notes that the modbus connection is only allowed for the fusionsolar app.

Since V200R001C00SPC117 this port is also closed on the inverter AP. Also I’m trying to get the firmware for the SDongleA to see if modbus is open from my local network. But I only can download the V100R001C00SPC110. I’m currently on V100R001C00SPC117. I think I’m going to send a mail to [email protected] asking them what is the supported way in locally monitoring the inverter…

Hello everyone!

First, thank you for the lot of information I found here.
During the FusionSolar downtime last week I managed out connecting to my SUN2000-5KTL-M1 directly using Emilv2/huawei_solar custom component. Thanks for the great work @Emilv2 !

Please note, that my inverter is connected to my wifi router, and has internal network IP address.

Here is the steps I made:

  1. Update SUN2000 App to V 3.2.00.15 (3.2.00.13 does not have the Modbus TCP config)
  2. Update inverter to version: SUN2000MAV100R001C00SPC140 (minimum required: SUN2000MAV100R001C00SPC139)
  3. Update SDongle: V100R001C00SPC124 (this is the minimum version is required)
  4. Get inverter IP address from SUN 2000 App. (not the one you are using to connect directly)
  5. Enable Modbus TCP under connection configuration. (I use “unrestricted”)
  6. Used Emillv2/huawei_solar configuration instruction to get connected from HA.

I created a dashboard to monitor solar production.

2 Likes

Hi @K4resz thanks for the information! Question where did you find the firmware for the SDongle? Do you need an installer account to activate the modbus and install the sdongle software? Thanks! :smiley:

Forgot to mention, that @manio has already posted the link to the guide I folowed to enable Modbus TCP:

As far I know, if you write to huawei support with your inverter and sdongle type, they will send it to you.
Actually I found it here. I take no responsibility at all. :slight_smile:
https://www.elektroda.pl/rtvforum/topic3721385-300.html#19703833

I dont know if it is needed, but I was loged in as Installer, yes. You can reset passwords (if you don’t know) by resetting the Inverter, it is in the inverter manual.

Hi @K4resz thanks for the information. I just have one quick question: Which IP address do you use? The IP address of the Dongle? I followed your steps and was able to enable Modbus TCP via the Solar2000 app, but when I try to setup the intergration in Home Assistant it always says “failed to connect to device, is the host correct?”. So no connection is made. Any help would be highly appreciated. Thanks!
(Additional information: I’m connected over Ethernet to the dongle. Don’t know if this is important).

I just found one possible problem: My Dongle is only on version 119. How can I upgrade the fimware of the dongle?

Hi @ffm777, I use the internal network IP, like 192.168.x.x.

SDongle must be updated to SPC124. Remove SDongle from inverter, wait 10s, then insert again. For 3 minutes after startup, the dongle’s internal WiFi AP will work, you will see it on your phone’s nearby wifi list. Connect to it with the SUN2000 App just like you did with the inverter AP, but now you have to connect to the dongle, not the inverter. Now you can update the dongle firmware with the SUN2000 App.

Please note that it takes a while to reboot the dongle after the update, so be patient.

Thanks for the quick reply. I managed to update the dongle but now the dongle keeps blinking red and doesn’t connect. I already unplugged and replugged it, but it is not working. When I access the dongle via its access point, I can see that the dongle successfully upgraded to V124. But it doesn’t seem to connect to the inverter anymore. Does anyone have an idea what’s wrong or what I can do about it?

It takes time the dongle to reboot, you have to wait until it finishes. Its about 8-10 min.

Edit: The connection problems are fixed. Was a router problem on my end.

The Modbus TCP interface seems to be working now. But I only see one of my 2 inverters. What do I have to change in the config to also see my second inverter? With the integration I only see my slave inverter and not the main on. I tried setting all kinds of values for the “slave” parameter, but it is not working. If someone with multiple inverters was successful settings this up, then I would appreciate a hint. Thanks!

Does anyone know something about that?

Do you have smart power meter? To visualize instantaneous solar PRODUCTION you can use history graph. It is the value of sun2000 entiny. If you only connect one device to solar panels then checking if value sun2000 > 2000 should be enough, but if solar panels are connected also to home then you will also need energy exported to grid. Other problem is that you can’t predict if the production will be constant. If it will be cloudy then in one second you will have production 3kW and one second later 1kW.