Integration Solar inverter huawei 2000L

Hello!

I have 2 inverters, a 10 kW and a 6 kW. Both inverters are connected to 2 x 5 kWh batteries, so each inverter has its own dedicated battery. The 10 kW inverter controls the system, and battery charging is prioritized. When the house is consuming power, it is supplied via the battery. However, until the battery is fully charged, the solar energy production is not displayed, and the minus value appears twice on the energy panel, but only there. What can I do to fix this? Also, solar production appears at night too. :)))
Needless to say, the houseā€™s consumption is also displayed incorrectly because of this. It only shows the real consumption correctly around midnight.


KeĢpernyoĢ‹fotoĢ 2024-09-26 - 20.28.54

I have a problem with the values coming from the smart meter. In particular, the house consumption shows the energy used. I would have expected to see power used. Is it possible to get that info?

And another question - the values for the power meter updates very slowly, sometimes more than an hour between updates. Is it possible to improve that somehow? Iā€™m currently connected through the Sdongle, as I could not get the connection to the Inverterā€™s AP to work. I can connect, and port 6607 is open, but I do not get any data.

Any help i highly appreciated.

It looks like this template solved the problem. I looked up an example for this earlier.
I love this forum, you can always find alternative solutions here :slight_smile:

template:
  - sensor:
# 6PV  second battery pack
      - name: 6KTL Total PV
        #friendly_name: "PV Energy"
        unique_id: "PV Energy 6"
        state: "{{ (states('sensor.sun2000_6ktl_total_yield') | float) - (states('sensor.luna2000_battery_2_total_discharge') | float) + (states('sensor.luna2000_battery_2_total_charge') | float)}}"
        device_class: energy      
        state_class: total
        unit_of_measurement: kWh
      - name: 6KTL Daily PV
        #friendly_name: "PV Energy daily"
        unique_id: "PV Energy daily 6"
        state: "{{ (states('sensor.sun2000_6ktl_daily_yield') | float) - (states('sensor.luna2000_battery_2_day_discharge') | float) + (states('sensor.luna2000_battery_2_day_charge') | float)}}"
        device_class: energy
        state_class: total
        unit_of_measurement: kWh
# 10PV first battery pack
      - name: 10KTL Total PV
        #friendly_name: "PV Energy"
        unique_id: "PV Energy 10"
        state: "{{ (states('sensor.sun2000_10ktl_total_yield') | float) - (states('sensor.luna2000_battery_total_discharge') | float) + (states('sensor.luna2000_battery_total_charge') | float)}}"
        device_class: energy      
        state_class: total
        unit_of_measurement: kWh
      - name: 10KTL Daily PV
        #friendly_name: "PV Energy daily"
        unique_id: "PV Energy daily 10"
        state: "{{ (states('sensor.sun2000_10ktl_daily_yield') | float) - (states('sensor.luna2000_battery_day_discharge') | float) + (states('sensor.luna2000_battery_day_charge') | float)}}"
        device_class: energy
        state_class: total
        unit_of_measurement: kWh

Hi!
I use Homewizard instead of the Power Meter because itā€™s not accurate for me either; sometimes it shows a difference of 2-3 kWh compared to the HW, which is directly connected to the electricity meter via the P1 port. Iā€™ve been using it for 2 years without any issues. Iā€™ve already tested to see if everything goes through the Huawei Power Meter, and it seems that it does, but the data still differs. Since the electricity provider uses the electricity meter as a reference, I prefer using the HW.

Do you do some calculations on top of that? My electricity meter only shows import and export. But the actual consumption would something along the line of (solar power + import + battery discharge) - (export + battery charge).
But then it becomes a bit tricky if I charge the battery from imported electricity, or discharge the battery for export.
And the power values from the inverter and power meter have such slow update frequency that it becomes very inaccurate.

Yes, I used exactly the code you mentioned above. I subtract the battery charge, if thatā€™s what youā€™re referring to. I got the example from here.

Example

the only way i did it is:
manual ip in HA lan conected to router 192.168.1.1 [minipc lan]
and automat ip conected with HA on huwaei hotspot 192.168.200.1 [minipc wifi dongle]
host: 192.168.200.1
port 6607
so it seems its about vlans management the problems when u have FE dongle conected to invertor by lan it gets vlan 1 : 192.168.1.1 as internet
when conecting by minipc dongle to invertors hotspot u get vlan 200: 192.168.200.1.
else try remove fe dongle and use invertorā€™s wifi hostspot.
have fun guys

Hi everyone,
Iā€™m David and Iā€™m new to Home Assistant. Iā€™m excited to learn more about this platform and connect with other users.

Hello Home Assistant community,

Iā€™m having some trouble adding a second Huawei inverter to my HA setup. Iā€™ve already integrated one inverter using a dongle and itā€™s working fine.
The second inverter doesnā€™t have a dongle, but I can access it via its IP address. However, when I try to add it to HA using the same integration method as the first one, I get a connection error.
Thanks for your help!

ā€œIf you want to connect through the dongle, then you need to put in the two slave IDs as Thijs has said above. In a lot of cases it is either 0 and 1, 1 and 2 or 1 and 16. However, if you want to find out which slave ids your system has, then you need to login to the inverter using the Fusionsolar app and the internal AP. There you can see the slave id under the communication settings.ā€


good user and pasword
Unexpected error???
It worked very well 2 weeks but after the last homeassistant update- out of orderā€¦
Tried to delete and reinstall, no results.

Can you share your dashboard please.
Thx

Assuming your talking about two inverters in the same location / home setup?
If so, then you shouldnā€™t be looking to ā€˜addā€™ the second inverter via LAN / IP address, you need to lookup the RS485 networking section of the inverters manual.
In there youā€™ll see that you should be wiring the secondary inverter into the primary inverter using the RS485 connectors. When thats done correctly and configured in FusionSolar, you should then go to the FusionSolar Portal and youā€™ll see the site with the sDongle and below that the two inverters should show.

In HA you then just need to reconfigure the Huawei intetgration (WLCRS) and refer to the Wiki section on Github for WLCRS, that refers to the ID numbers you need to use (by default will probably be ā€˜1,2ā€™) that should be entered, at which point the integration should query your setup and see the two inverters (and any batteries / optimisers also).