Huawei SUN2000 Inverters

Moderator: leecollings

Post Reply
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Huawei SUN2000 Inverters

Post by sammyke007 »

Hi

Last week I've had solar panels installed with a Huawei SUN2000-4.6KTL-L1 inverter.
I have a (Belgium/Fluvius) smart meter installed so I can read everything with a Youless device from the P1 port of my smart meter.
There's one value however that I would like to see extra in my Domoticz: the actual provided output power from my PV (and maybe later the Yield Today en Yield Total).

Anyone that has this running already?

Data is provided in the cloud on https://eu5.fusionsolar.huawei.com/. This can be read from an app or using a web interface. There's also an API available.

I've found this: https://github.com/wlcrs/huawei_solar/tree/develop but I have no idea how to make this work with Domoticz.
JeroenG
Posts: 27
Joined: Monday 06 January 2020 20:57
Target OS: Raspberry Pi / ODroid
Domoticz version: 20231
Contact:

Re: Huawei SUN2000 Inverters

Post by JeroenG »

Hi Sammy,

this _can_ be done, but requires some work:

1. Try to get yourself a developers account for the data which is collecting. This request MUST be submitted by the company who installed your converter.

Send an email to "eu_inverter_support<at>huawei.com" with the following:

I hereby request an openAPI user account to access the data from my inverter through the new #FusionSolar API:
System name: XXXXXXXXXXXXXXXXXX (serial no)
Username: [email protected]
Plant Name: City and adress
SN Inverter: XXXXXXXXXXXXXXXXXXXX (serial no)

You will receive an excel form to be filled and submitted by your installer (if not from them, it will be refused)

2. When te account is created you can use a (bash) script to retreive the "real-time", hourly, daily and yearly data from their website which 1 updated every 5 minutes.

Real-time is updated every 5 minutes, so it's more "almost real time"

I collect this data every 5 minutes and write it to Domoticz (real time data) en and to influx (hour, day and year) to produce nice graphs.

My scripts need some cleanup before I can share it, it's still some work in progress.
domoticz.png
domoticz.png (19.59 KiB) Viewed 7217 times
2022-05-25 12_44_11-Zonnepanelen actueel - Grafana.png
2022-05-25 12_44_11-Zonnepanelen actueel - Grafana.png (69.88 KiB) Viewed 7217 times
2022-05-25 12_44_21-Zonnepanelen jaaroverzicht - Grafana.png
2022-05-25 12_44_21-Zonnepanelen jaaroverzicht - Grafana.png (133.26 KiB) Viewed 7217 times
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Huawei SUN2000 Inverters

Post by sammyke007 »

Tnx Jeroen! I've started running HASS (Home Assistant) next to Domoticz because they have a custom integration for these inverters. It reports almost everything available. It gets its data live from the inverter itself (by connecting to the inverters AP) and it's working perfectly fine over here. I use automations in HASS to send this data over MQTT to Domoticz.
hass.jpg
hass.jpg (82.31 KiB) Viewed 7172 times
domo1.jpg
domo1.jpg (16.63 KiB) Viewed 7172 times
domo2.jpg
domo2.jpg (98.12 KiB) Viewed 7172 times
MikeZ
Posts: 3
Joined: Tuesday 29 September 2020 20:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Huawei SUN2000 Inverters

Post by MikeZ »

Hi Jeroen

How does home assistant connect directly to the ap off the inverters ?
And were you able to push the data from HA to Domoticz?
MikeZ
Posts: 3
Joined: Tuesday 29 September 2020 20:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Huawei SUN2000 Inverters

Post by MikeZ »

Hi Jeroen,

Would like to use your script
I had it all working with the API version from beginning 2021

Are you able to share some?
JeroenG
Posts: 27
Joined: Monday 06 January 2020 20:57
Target OS: Raspberry Pi / ODroid
Domoticz version: 20231
Contact:

Re: Huawei SUN2000 Inverters

Post by JeroenG »

sammyke007 wrote: Sunday 05 June 2022 9:41 Tnx Jeroen! I've started running HASS (Home Assistant) next to Domoticz because they have a custom integration for these inverters. It reports almost everything available. It gets its data live from the inverter itself (by connecting to the inverters AP) and it's working perfectly fine over here. I use automations in HASS to send this data over MQTT to Domoticz.
Sammy,

how do you call the API from the inverter? I'm very interested in that :-). Can you share any documentation and or links?

Thanks a lot,
Jeroen
JeroenG
Posts: 27
Joined: Monday 06 January 2020 20:57
Target OS: Raspberry Pi / ODroid
Domoticz version: 20231
Contact:

Re: Huawei SUN2000 Inverters

Post by JeroenG »

MikeZ wrote: Saturday 02 July 2022 13:07 Hi Jeroen,

Would like to use your script
I had it all working with the API version from beginning 2021

Are you able to share some?
Hi Mike,

I will try to document my script the coming days and see if I can publish it somewhere (Github or so).

Jeroen
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Huawei SUN2000 Inverters

Post by sammyke007 »

JeroenG wrote: Saturday 02 July 2022 17:09
sammyke007 wrote: Sunday 05 June 2022 9:41 Tnx Jeroen! I've started running HASS (Home Assistant) next to Domoticz because they have a custom integration for these inverters. It reports almost everything available. It gets its data live from the inverter itself (by connecting to the inverters AP) and it's working perfectly fine over here. I use automations in HASS to send this data over MQTT to Domoticz.
Sammy,

how do you call the API from the inverter? I'm very interested in that :-). Can you share any documentation and or links?

Thanks a lot,
Jeroen
It's this Home Assistant integration that I'm running:
https://github.com/wlcrs/huawei_solar
MikeZ
Posts: 3
Joined: Tuesday 29 September 2020 20:11
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Huawei SUN2000 Inverters

Post by MikeZ »

Hi Sammy

Looks great!
Stupid question though: if HA is connected via WiFi, how do you enter the UI from HA ? Or do you use wired connection also to connect to your network and the internet?

Many thanks
sammyke007
Posts: 204
Joined: Monday 08 May 2017 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Belgium
Contact:

Re: Huawei SUN2000 Inverters

Post by sammyke007 »

My Home Assistant is connected thru LAN (ethernet) and my connection to the Huawei AP (192.168.200.1) is done via wifi. You can use a Pi or a homeserver with a wifi USB stick.

It is explained over here:
https://github.com/wlcrs/huawei_solar/w ... nverter-ap
JeroenG
Posts: 27
Joined: Monday 06 January 2020 20:57
Target OS: Raspberry Pi / ODroid
Domoticz version: 20231
Contact:

Re: Huawei SUN2000 Inverters

Post by JeroenG »

I just released my first version of the script to read the production details from the huawei website. It is required to have your inverter communication with Huawei of course :-)

https://github.com/GoumJer/Huawei_Sun2000
kurb77
Posts: 2
Joined: Tuesday 28 January 2014 17:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Melun(France)
Contact:

Re: Huawei SUN2000 Inverters

Post by kurb77 »

JeroenG wrote: Sunday 10 July 2022 15:45 I just released my first version of the script to read the production details from the huawei website. It is required to have your inverter communication with Huawei of course :-)

https://github.com/GoumJer/Huawei_Sun2000
hello, i looked your code, can you explain the config file, i don't understand all params, can you comment them?

thank you
JeroenG
Posts: 27
Joined: Monday 06 January 2020 20:57
Target OS: Raspberry Pi / ODroid
Domoticz version: 20231
Contact:

Re: Huawei SUN2000 Inverters

Post by JeroenG »

Hi,

Just uploaded a more detail readme and added some more info in the .env file.

More improvements to come :-)
ssk17051980
Posts: 112
Joined: Thursday 08 December 2022 22:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: ROMANIA
Contact:

Re: Huawei SUN2000 Inverters

Post by ssk17051980 »

is anyone willing to integrate a huawei 2000 inverter in domoticz?
I don't have the necessary skills. I can pay for this service
User avatar
waltervl
Posts: 5386
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Huawei SUN2000 Inverters

Post by waltervl »

Everything you need to know is here: https://github.com/GoumJer/Huawei_Sun2000
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
ssk17051980
Posts: 112
Joined: Thursday 08 December 2022 22:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: ROMANIA
Contact:

Re: Huawei SUN2000 Inverters

Post by ssk17051980 »

i made the admin user.
but if i try to login whit that new user, is not working.

in that link that i receive in the mail, from the foto atached, i can't login whit the main user and pass.
Attachments
link-login.jpg
link-login.jpg (77.53 KiB) Viewed 1476 times
huawei domoticz.jpg
huawei domoticz.jpg (79.12 KiB) Viewed 1476 times
ssk17051980
Posts: 112
Joined: Thursday 08 December 2022 22:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: ROMANIA
Contact:

Re: Huawei SUN2000 Inverters

Post by ssk17051980 »

what is that " domain name of the management " ?
Attachments
764a1a2b-8869-4580-88ef-e82931433607.jpeg
764a1a2b-8869-4580-88ef-e82931433607.jpeg (85.39 KiB) Viewed 1472 times
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests