Huawei SUN2000 Inverters
Moderator: leecollings
-
- Posts: 204
- Joined: Monday 08 May 2017 20:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: Belgium
- Contact:
Huawei SUN2000 Inverters
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.
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.
-
- Posts: 27
- Joined: Monday 06 January 2020 20:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 20231
- Contact:
Re: Huawei SUN2000 Inverters
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.
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.
-
- 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
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.
-
- Posts: 3
- Joined: Tuesday 29 September 2020 20:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Huawei SUN2000 Inverters
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?
How does home assistant connect directly to the ap off the inverters ?
And were you able to push the data from HA to Domoticz?
-
- Posts: 3
- Joined: Tuesday 29 September 2020 20:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Huawei SUN2000 Inverters
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?
Would like to use your script
I had it all working with the API version from beginning 2021
Are you able to share some?
-
- Posts: 27
- Joined: Monday 06 January 2020 20:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 20231
- Contact:
Re: Huawei SUN2000 Inverters
Sammy,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.
how do you call the API from the inverter? I'm very interested in that

Thanks a lot,
Jeroen
-
- 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
It's this Home Assistant integration that I'm running:JeroenG wrote: ↑Saturday 02 July 2022 17:09Sammy,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.
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
https://github.com/wlcrs/huawei_solar
-
- Posts: 3
- Joined: Tuesday 29 September 2020 20:11
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Huawei SUN2000 Inverters
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
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
-
- 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
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
It is explained over here:
https://github.com/wlcrs/huawei_solar/w ... nverter-ap
-
- Posts: 27
- Joined: Monday 06 January 2020 20:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 20231
- Contact:
Re: Huawei SUN2000 Inverters
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

https://github.com/GoumJer/Huawei_Sun2000
-
- Posts: 2
- Joined: Tuesday 28 January 2014 17:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Melun(France)
- Contact:
Re: Huawei SUN2000 Inverters
hello, i looked your code, can you explain the config file, i don't understand all params, can you comment them?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
thank you
-
- Posts: 27
- Joined: Monday 06 January 2020 20:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 20231
- Contact:
Re: Huawei SUN2000 Inverters
Hi,
Just uploaded a more detail readme and added some more info in the .env file.
More improvements to come
Just uploaded a more detail readme and added some more info in the .env file.
More improvements to come

-
- 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
is anyone willing to integrate a huawei 2000 inverter in domoticz?
I don't have the necessary skills. I can pay for this service
I don't have the necessary skills. I can pay for this service
- waltervl
- Posts: 5564
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Huawei SUN2000 Inverters
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
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- 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
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.
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 (77.53 KiB) Viewed 2238 times
-
- huawei domoticz.jpg (79.12 KiB) Viewed 2238 times
-
- 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
what is that " domain name of the management " ?
- Attachments
-
- 764a1a2b-8869-4580-88ef-e82931433607.jpeg (85.39 KiB) Viewed 2234 times
-
- Posts: 8
- Joined: Thursday 26 March 2020 22:53
- Target OS: Linux
- Domoticz version: 2024.2
- Contact:
Re: Huawei SUN2000 Inverters
Hi everyone!
After a year of operation, I have finally integrated my Huawei SUN2000 inverter
I found some Domoticz Python plugins, so I decided to develop the plugin created by JWGracht (thanks) a bit further. I implemented connection error handling and a polling time that can be adjusted from the plugin parameters. I tried to collect all the parameters I thought were useful via Modbus. The updated plugin also handles voltage, current, power, energy, status, error codes, alarms, and temperature data.
Although it is not new, I thought I would share it here as well, in case it is valuable to someone. Code on github:
https://github.com/csutihu/Domoticz-plu ... 0-Inverter
After a year of operation, I have finally integrated my Huawei SUN2000 inverter

I found some Domoticz Python plugins, so I decided to develop the plugin created by JWGracht (thanks) a bit further. I implemented connection error handling and a polling time that can be adjusted from the plugin parameters. I tried to collect all the parameters I thought were useful via Modbus. The updated plugin also handles voltage, current, power, energy, status, error codes, alarms, and temperature data.
Although it is not new, I thought I would share it here as well, in case it is valuable to someone. Code on github:
https://github.com/csutihu/Domoticz-plu ... 0-Inverter
-
- Posts: 4
- Joined: Thursday 06 March 2025 6:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2024.4
- Contact:
Re: Huawei SUN2000 Inverters
Csuti, can u help me, what the problem with your plugin?
I installed it
pip3 install huawei-solar
cd ~/domoticz/plugins
git clone https://github.com/csutihu/Domoticz-plu ... verter.git
sudo systemctl restart domoticz
After that I create Hardware in Domoticz and in log i can see this:
2025-03-04 23:28:34.434 Status: Huawei Inverter Plugin: Entering work loop.
2025-03-04 23:28:34.434 Status: Huawei Inverter Plugin: Started.
2025-03-04 23:28:34.735 Error: Huawei Inverter Plugin: (Domoticz-Huawei-Inverter) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Domoticz-plugin-for-Huawei-SUN2000-Inverter/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.
2025-03-04 23:28:34.735 Error: Huawei Inverter Plugin: Traceback (most recent call last):
2025-03-04 23:28:34.735 Error: Huawei Inverter Plugin: File "/home/pi/domoticz/plugins/Domoticz-plugin-for-Huawei-SUN2000-Inverter/plugin.py", line 26, in <module>
2025-03-04 23:28:34.735 Error: Huawei Inverter Plugin: from huawei_solar import HuaweiSolarBridge
2025-03-04 23:28:34.735 Error: Huawei Inverter Plugin: ImportError: cannot import name 'HuaweiSolarBridge' from 'huawei_solar' (/usr/local/lib/python3.7/dist-packages/huawei_solar/__init__.py)
2025-03-04 23:28:42.153 RPI-sensors: General/Percentage (CPU_Usage)
2025-03-04 23:29:02.158 RPI-sensors: General/Percentage (Memory Usage)
2025-03-04 23:29:02.164 RPI-sensors: General/Custom Sensor (Process Usage)
2025-03-04 23:29:12.160 RPI-sensors: General/Percentage (CPU_Usage)
2025-03-04 23:29:22.188 RPI-sensors: General/Percentage (HDD /boot)
2025-03-04 23:29:22.192 RPI-sensors: General/Percentage (HDD /)
2025-03-04 23:29:32.221 RPI-sensors: Temp (RPI-Temp)
2025-03-04 23:29:42.223 RPI-sensors: General/Percentage (CPU_Usage)
2025-03-04 23:29:42.357 Error: Huawei Inverter Plugin hardware (6) thread seems to have ended unexpectedly
2025-03-04 23:29:56.360 Error: Huawei Inverter Plugin hardware (6) thread seems to have ended unexpectedly
2025-03-04 23:30:10.419 Error: Huawei Inverter Plugin hardware (6) thread seems to have ended unexpectedly
Raspbian GNU/Linux 10 (buster) | Raspberry Pi 4 Model B Rev 1.1 | Domoticz v2024.4
I installed it
pip3 install huawei-solar
cd ~/domoticz/plugins
git clone https://github.com/csutihu/Domoticz-plu ... verter.git
sudo systemctl restart domoticz
After that I create Hardware in Domoticz and in log i can see this:
2025-03-04 23:28:34.434 Status: Huawei Inverter Plugin: Entering work loop.
2025-03-04 23:28:34.434 Status: Huawei Inverter Plugin: Started.
2025-03-04 23:28:34.735 Error: Huawei Inverter Plugin: (Domoticz-Huawei-Inverter) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Domoticz-plugin-for-Huawei-SUN2000-Inverter/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.7/dist-packages'.
2025-03-04 23:28:34.735 Error: Huawei Inverter Plugin: Traceback (most recent call last):
2025-03-04 23:28:34.735 Error: Huawei Inverter Plugin: File "/home/pi/domoticz/plugins/Domoticz-plugin-for-Huawei-SUN2000-Inverter/plugin.py", line 26, in <module>
2025-03-04 23:28:34.735 Error: Huawei Inverter Plugin: from huawei_solar import HuaweiSolarBridge
2025-03-04 23:28:34.735 Error: Huawei Inverter Plugin: ImportError: cannot import name 'HuaweiSolarBridge' from 'huawei_solar' (/usr/local/lib/python3.7/dist-packages/huawei_solar/__init__.py)
2025-03-04 23:28:42.153 RPI-sensors: General/Percentage (CPU_Usage)
2025-03-04 23:29:02.158 RPI-sensors: General/Percentage (Memory Usage)
2025-03-04 23:29:02.164 RPI-sensors: General/Custom Sensor (Process Usage)
2025-03-04 23:29:12.160 RPI-sensors: General/Percentage (CPU_Usage)
2025-03-04 23:29:22.188 RPI-sensors: General/Percentage (HDD /boot)
2025-03-04 23:29:22.192 RPI-sensors: General/Percentage (HDD /)
2025-03-04 23:29:32.221 RPI-sensors: Temp (RPI-Temp)
2025-03-04 23:29:42.223 RPI-sensors: General/Percentage (CPU_Usage)
2025-03-04 23:29:42.357 Error: Huawei Inverter Plugin hardware (6) thread seems to have ended unexpectedly
2025-03-04 23:29:56.360 Error: Huawei Inverter Plugin hardware (6) thread seems to have ended unexpectedly
2025-03-04 23:30:10.419 Error: Huawei Inverter Plugin hardware (6) thread seems to have ended unexpectedly
Raspbian GNU/Linux 10 (buster) | Raspberry Pi 4 Model B Rev 1.1 | Domoticz v2024.4
- waltervl
- Posts: 5564
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Huawei SUN2000 Inverters
Perhaps run
sudo pip3 install huawei-solar
sudo pip3 install huawei-solar
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Who is online
Users browsing this forum: No registered users and 0 guests