Integration Solar inverter huawei 2000L

Hello
first thank you very much for the contribution, it is fantastic.

I need to know if this information can be extracted (in the image numbers 1, 2, 3). If possible, how should I do it or what are the parameters that I have to read

Thanks a lot

Hello

This is how my panel is right now with the data that I have taken, it is very simple since I am starting the total configuration of my HA. little by little I will improve it I have incorporated more information

You can’t read it. You can use:
https://www.home-assistant.io/integrations/utility_meter/ to have daily data.

  1. grid exported energy
  2. energy used by house:
- platform: template
  sensors:
    m_grid_exporterd_energy:
      friendly_name: "Prąd oddany do sieci"
      unit_of_measurement: 'kWh'
      icon_template: mdi:transmission-tower
      value_template: "{{ state_attr('sensor.sun2000_8ktl_m0', 'grid_exporterd_energy') }}"
 
    m_grid_accumulated_energy:
      friendly_name: "Prąd pobrany z sieci"
      unit_of_measurement: 'kWh'
      icon_template: mdi:transmission-tower
      value_template: "{{ state_attr('sensor.sun2000_8ktl_m0', 'grid_accumulated_energy') }}"

    total_yield:
      friendly_name: "Produkcja total"
      unit_of_measurement: 'kWh'
      icon_template: mdi:transmission-tower
      value_template: "{{ state_attr('sensor.sun2000_8ktl_m0', 'total_yield') }}"

   energy_used:
      friendly_name: "ZuĆŒycie prądu dom"
      unit_of_measurement: 'kWh'
      value_template: >
        {{ '%0.2f' | format(states('sensor.total_yield') | float - 
                            states('sensor.m_grid_exporterd_energy') | float + 
                            states('sensor.m_grid_accumulated_energy') | float) }}
  1. grid accumulated energy
1 Like

I’ve just started using Hass.io 5.10 and I find this error:

2021-01-18 05:36:02 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for huawei solar which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.

2021-01-18 05:36:02 ERROR (MainThread) [homeassistant.components.hassio] Platform error sensor.huawei solar - No module named ‘huawei_solar’

Any help would be apreciated!!

Iñaki

Did you copy this files?

Copy these files to custom_components/huawei_solar/

Yes, I did.

I’ve downloaded all the files in a zip file, extracted in a folder named huawei_solar_master and renamed it to huawei_solar.

I’ve created a folder (in windows with the samba add-on) called custom_components in the config folder and finally pasted the huawei_solar folder


Thank you

Suddenly it started to work.

Good job @ligeza!

1 Like

Hi Emilv,
first of all, thank you very much for this integration. I was slowly going crazy with the limitations of the Huawei app, and after discovering home assistant two months ago was overjoyed to find there is a solution to read the inverter data!

I was curious though how people coped with the inverter shutdown. At least my installation (Sun2000-15KTL) shuts completely down when there is no power from the solar panels, including the wifi. In the morning home assistant does not seem to recover the connection without a restart(I am running a supervised docker installation on an Intel NUC). I guess I could use an automation to restart 10 minutes after sunrise or so, but I was wondering if there is a more elegant solution.

Cheers, and thanks again for all the good work!

Glad that you like it!

I have a SUN2000L-3KTL and it doesn’t shutdown when there is no solar power, maybe that’s a difference between the 2000 and 2000L versions.

Could you show me what you see in the logs when it doesn’t reconnect after the power is back on?

1 Like

Hmm seems I was to hasty. For future reference, the 2000 series seems to enter a state when illumination is detected where the dongle starts to connect to the huawei servers, but the internal wifi either does not accept connections yet or will not report proper values. As illumination rises the inverter enters the state ‘grid-connected’, where it will report properly, and everything works from there. It’s only we have some snow right now, so it took a while for the panels to start producing :slightly_smiling_face:

Say, you don’t have a ‘buy me a beer’-button somewhere? I wouldn’t mind showing my appreciation for your work!
Cheers,
Boris

I have sun2000-8ktl, There is no problem with WiFi dongle or internal WiFi when no illumination. For me it’s always on and connected to huawei server and HA even at night. Maybe there is some setting in HomeFusion App to change behavior of the inverter.

Hi, I am very grateful for your work with the integration.

I have access to a SUN2000-5KTL-L1 (actually grid power limited) and a SUN2000L-5KTL (on-grid) and the behaviour is the same. For the moment, I can’t notice any difference.

Both inverters are directly connected to the carrier wifi router directly.

Hello Emilv2, how’s the progress with async?

I tried the patch and it works, HA doesn’t hang anymore.

Pymodbus doesn’t seem to be moving very fast so it’s probably going to take a while before 3.0 lands.

Ok, good to know!

I just updated to Home Assistant Core 2021.2.0 and I believe the following change has broken this custom component, can someone confirm?

[EDIT] - After a second restart, it looks like its working again


You scared me a bit, but I did the update and worked for me at the first try.

Hello and first thanks for the integration into Home asisstant .

im totaly new to this and cant understand how to set up all the values to sensors ??
Is there anyone that has a list of the sensors that the can send ??
now i can only se the values if i press the entity in the lovelace 


You can use:

Example:

1 Like

The thing is that i cant understand what name i should use to get it right 

Where do i find the list of names to use to get the right data out from the inverter ??
like these u named above (pv_01_voltage) .
Is there any complete list to use ??