Integration Solar inverter huawei 2000L

Thanks for the reply, I assumed that was the case, it was just strange that it broke immediately after I updated the integration.

The reason I was trying to make the utility sensors is I noticed in my energy dashboard that some of the numbers were showing thousands of KWH instead of what would be realistically generated/consumed in a day. For me daily stats would be of more value than overall stats.

The problem with the energy dashboard is that when the sensors just briefly go to “unavailable”, then the whole calculation in the energy dashboard is ruined. Therefore, I also made template sensors for the some of the variables in the energy dashboard which check if the value of the underlying sensor is not 0 and only update in this case. This is a real problem with the energy dashboard itself. It has not “auto-correction” which eliminates those kinds of data errors. Only way around this is to use template sensors (for now).

Hi all, I’m ordering the materials with my technician: inverter Sun 2000, panels, luna batteries. I’m not sure if order also Sdongle or not… It add functionality respect to internal wifi or it add only Lan capability? Do you suggest to buy it?

I think sdongle is already included with inverter.

Hello guys! Can you paste a configuration example with the sensor.daily_yield_xxxxyyyy working?
From time to time I have really weird values in the Energy tab, and I think is due to my old config, which is this one:

template:
 - sensor:
     - name: "Solar Production"
       state: >
         {{ states('sensor.total_yield_102140113280') | float }}
       device_class: "energy"
       unit_of_measurement: "kWh"
       state_class: "total_increasing"
       attributes:
         last_reset: "{{ state_attr('sensor.sun2000_5ktl_l1_102140113280', 'system_time').replace(hour=0,minute=0,second=0,microsecond=0) }}"

Can you help me with a working example? Thanks!

manages to install … any query I can help probably!

Thanks

Sorry guys for question, to install the component of wlcrs I need to remove the emily one´s?

Hi ligeza,

how to connect home assistant directly to the inverter AP ? they are not in the same network… how to do it?

It was described in this topic many times. If you are using raspberry pi then you can use lan to connect to home network and wireless to connect to inverter. You can also use another router to bridge inverter to home network.

My pi is very near the inversor so I connect with the wireless pi connection to the inverter. I do have a problem if I upgrade the inversor software above 115. My inversor IP is from my home network 192.168.1.88 e.g.

Also does anyone knows how to get the watts produced? I have a graph with the 2 strings and used to see the watts produced (emily). Currently with the wlcrs it was lost. see below

thanks a lot to all of us.

If I well understood (saw some post at the very begining of the post), I need to connect my raspberry to lan and then in Wifi to the inverter.

Will habe to seach

I don’t have raspberry but I saw few configs in this topic.

Go to configuration / (add on /backup /supervisor ) / System / Host / IP address change / WLAN

Hi all,
I have to ask for help also here because I’m getting answer nowhere so sorry if is not 100% in topic.
First, HA is on proxmox machine connected to my net via ethernet.
The inverter is on FW 117 and I can’t downgrade/change it (the inverter has an internal shortcircuit so in order to have a free replacement huawei request the last fw for theirs internal test).
I had try in 2 different the connection:

  1. TL-WN722N → usb wifi key with passthrough to my VM on proxmox. The key is perfectly seen from HA (configuration → add-ons… → System-> Hardware) and also from shell but there is no way to “enable” the wlan interface on HA and I can’t connect directly to SUNxxx (also with nmcli there is no wifi adapter)
  2. wr802n → wifi pocket AP/Client. I configure it in client mode so the wr802 is connected to the sunxxx via wifi and my main net via ethernet. If connect this device directly to my laptop I can ping 192.168.200.1 but when I connect it to my net the ping fails. I ask help also on Unifi forum (all my stuff are Unifi) and the configuration seems correct.
    Another strange thing related to this test: if I change try connect the wr802 to another wifi net but with same ip/net (192.168.200.1/24) I can ping without problem so seems not a problem with firewall/routing.

In both scenario I fail and I finish my idea and know how about HA/Net.
Is there any other way to connect to the wifi or any to hint in order to solve my problems?

Thanks

I know that this is probably not a solution you are looking for, but why not just get a Dongle? This makes life a lot easier. And considering the time needed to setup a direct connection in your case, it is probably even cheaper. I also have my HA running on a VM in Proxmox and tried to connect to the inverter directly using an old Wifi access point, but this was all so cumbersome and just didn’t work right.

Every solution is welcome (also dongle if my life will be easier) :slightly_smiling_face:
Just to be sure, is not this one the dogle that your talking about?


In this moment the inverter is already connected to my wifi and is also creating the SUNxxx net.

I only expose values which are directly available from the inverter. If you want to know the watts produced by each PV-string, you can deduce it yourself by computing the product of the voltage and amperage: W = V * A

1 Like

Hi @wlcrs I was using Emilyv2 and I switched to your integration and I’m missing “the current house consumption” in real time.

I don’t find in your integration “active_power” and “power_meter_active_power” to do the math. I’m missing something?

The current house consumption is active_power - power_meter_active_power But I don’t find the second one

I have one question which might sound a bit stupid, but I just can’t figure it out. How can I calculate my daily solar yield from the given sensors. I have 2 inverters and a Luna battery connected to one of the inverters. I have setup a template sensor which calculates the following value:

Daily yield inverter 1 + Daily yield inverter 2 + Battery Day Charge

The result is always a little bit too high. Not too far off, but it is slightly off. And this dispite the fact that the values from the sensors are identical to those in the Fusionsolar app (as they should be). Does anyone have an idea what is going on?

Edit: Found the solution myself. It has to be:

Daily yield inverter 1 + Daily yield inverter 2 + Battery Day Charge - Battery Day Discharge

1 Like

The current house consumption can be calculated by:

Input Power (from inverter(s)) - Active power (from Power Meter) - Charge/Discharge Power (from Battery)

If Active Power from Power Meter is positive then you are exporting to grid, if it’s negative you are importing.

1 Like

In v1.0.0a1, I’ve called the active power reported by the power meter “Grid Active Power” to better differentiate it from the active power reported by the inverter itself. In earlier versions, those sensors had identical names, resulting in the power meter active power entity being called sensor.active_power_2, which was not very helpful :-/

It’s a good idea to go through Configuration → Devices → click on the Huawei Solar tile to get an overview of the devices that I detected. You can then drill down into each device to find the entities that you need.

1 Like