Integration Solar inverter huawei 2000L

Thanks a lot. I’ll have to wait until I get my account info to access the portal I guess. Thanks for the screenshot!

Just incase anyone is interested I finally managed to get active power service working using this automation. The trick was I needed to use the automation ui to select only the master inverter so I could then use YAML code to get the ID and then use that it in my own options setup. What I ended up with below reduces my inverter output based on my spot price so I’m not getting charged for sending energy to the grid due to tariffs (which is annoying as I would happily send it if it wouldn’t cost me anything)

alias: Hourly Spot Price Trigger
description: “”
trigger:

  • platform: time_pattern
    minutes: “2”
    condition: []
    action:
  • choose:
    • conditions:
      • condition: numeric_state
        entity_id: sensor.energi_data_service_no_vat
        above: 0.05
        sequence:
      • service: huawei_solar.reset_maximum_feed_grid_power
        data:
        device_id: ###your master inverter I’d here ###
      • service: notify.mobile_app_chris_mobile
        data:
        message: Unlimited Mode Activated
        title: Unlimited Mode Activated
      • repeat:
        count: 2
        sequence: []
    • conditions:
      • condition: numeric_state
        entity_id: sensor.energi_data_service_no_vat
        below: 0.051
        sequence:
      • service: huawei_solar.set_maximum_feed_grid_power_percent
        data:
        device_id: ###your master inverter I’d here ###
        power_percentage: 2
      • service: notify.mobile_app_chris_mobile
        data:
        message: Zero Limit Mode Activated
        title: Zero Limit Mode Activated
      • repeat:
        count: 2
        sequence: []
        default: []
        mode: single
1 Like

After 5 days I would like to say that all is working very well. If you want I could check the port availability, but I should ask you how to create the entity “inverter_port”.

I’ve almost copied your openwrt config!

hi,
can someone please tell me how is calculate the current LOAD in the fusion solar app??
I am reading the data from the inverters using the “huawei_solar” integration.
maybe it be the inverter active power - active power of the power meter?

can someone help me with this?

I have same problem… I think that we need to create a sensor:
sensor.inverter_input_power -
sensor.power_meter_active_power -
sensor.battery_charge_discharge
or something similar, because
inverter_input_power is instant fv production
power_meter_active_power is instant feed to grid
At least that’s what I seem to understand

Search for huawei sun2000 password reset:

On an Smartphone you needs to have an actual version of FusionSolar App installed to change the resetted password directly after the inverters reboots.

In my case no settings have been modified and the data transfer to FusionSolar Portal was working without any issues.

But you should have strong nerves
And finally after having the installer priviledges you can destroy everthing - even your complete house …
Be careful and stay safe!

2 Likes

Hi,
Thanks for this thread but I’m a newbie of integration .
I’ve a problem. How connect my local Homeassistant with Solar inverter?
My huawei account is a normal account, not a installer account.
Thanks for your help.

NewBie_Man

This is my configuration to check port and ping:

binary_sensor:
  - platform: ping
    host: '192.168.178.xxx'
    name: inverter_ping
    count: 1
    scan_interval: 60
  - platform: command_line
    name: inverter_port
    command: /bin/bash -c "(echo > /dev/tcp/192.168.178.xxx/6607) > /dev/null 2>&1 && echo ON || echo OFF"
    value_template: '{{ value }}'
    scan_interval: 60
    command_timeout: 2
2 Likes

Another thing. I noticed that when I turn on the TV (for example), then the port disconnects, but the ping works fine and the inverter is connected to openwrt router. Maybe it’s a dhcp/dns problem?
@andrix, please try to check if your openwrt go to internet. For example try to ping google.com by diagnostic page.

Hi, I installed this integration about 1 year ago at that time option “elevate permissions” wasn’t integrated, I regularly updated integration but I don’t have “elevate permissions”, so can I set “elevate permissions” manually (by editing yaml code) or I need to reinstall integration? thanks in advance.

What does the toggle switch inverter on/off actually do? After an offsignal, does it stay connected in ha?
Today i had a really strange issue. This morning no pv power was generated. pv was connected, grid ok. Locking status: locked. Inverter status: standby: initializing. And it was stuck on those until i did a full restart with the dc and ac switches. Maybe an off/on from ha does also solve this issue.
Strange, never had that issue before.

Hi i am suddenly getting this error and cannot connect anymore

This error originated from a custom integration.

Logger: pymodbus.logging
Source: custom_components/huawei_solar/init.py:87
Integration: Huawei Solar
First occurred: 11:11:17 (1 occurrences)
Last logged: 11:11:17

Failed to connect:

And this

Logger: pymodbus.logging
Source: runner.py:179
First occurred: 11:11:30 (8 occurrences)
Last logged: 11:16:54

Failed to connect:

What can be the trigger of that it has worked flawlessly until a week ago

I understand why my SUN2000-6KTL-L1 sometimes doesn’t export the port on the openwrt router.
The inverter is connected to a router A to communicate with fusionsolar.huawei.com. And it is connected to openwrt router B to export port 6607.
When I connect another device in the network, then the inverter disconnects from router A(and then also to router B openwrt).
When it reconnects to router A it can take several minutes (if not hours) before re-exporting the 6607 port to router B.
The strange thing is that on router A it performs several dhcp transactions (all of them are successful)… but one should be enough.
After it resolves from dns “intl.fusionsolar.huawei.com” (90.84.191.21) and after many tcp packets (between them) are retransmitted due to ACK failure.
Others having the same problem? How to fix?

P.S.

  1. I have already checked my dhcp server… and inverter ip is not duplicated.
  2. sometimes this server(intl.fusionsolar.huawei.com) is not reachable from others machines outsite my network.

This is my traffic:


2 Likes

Why you are using openwrt and increase complexity on your setup?

My SUN2000-6KTL-M1 with FE-Dongle is connected to:

a) FE-Dongle, which is connected via cable to my internet router (FritzBox)
- using DHCP and part of my homenetwork (e.g. 192.168.168.1)
- used for FusionSolar only
b) SUN2000-6KTL is connected via WLAN also to my internet router
- using DHCP and part of my homenetwork (e.g. 192.168.168.2)
- used for HA only by the usage of Modbus TCP

Previously I’ve used a) the Dongle for both (FusionSolar and Modbus TCP), but with recurrent Modbus disconnects because of competing queries. No big surprise …

After the segregation by introducing b) everthing is working fine. The only thing is to connect the inverter directly via WLAN to your homenetwork => no openwrt required on my end.

You need to reinstall the integration.
I have done the exercise without any trouble - No data loss.

If you have the installer password, you will have a lot of additional functions to control interactions with your battery, which is an fantastic improvement.

1 Like

Warning:

If you update HA to version 2023.5.x you will run into the following issue/bug:

Integration - Riemann sum integral: Value Graph is broken

2023.5.4 is not resolving this issue:

My set-up is properly working, but I’m curious about your answer… That I didn’t understand.

This is my set-up. The inverter works in two networks:

Network A- Local network client: obtained with the dongle, and it is used for FusionSolar usage. Inverter IP: 192.168.1.XXX. To have on this network the sensor status via ModbusTCP on the port 6607 of the dongle you need to activate it in the inverter’s setting, but you need Installer access.

Network B- Installer network: AP with SSID: ‘SUN2000-HVXXXXXXXX’. Inverter IP: 192.168.200.1
Used for installer purpose, and as default it communicate sensor status via Modbus TCP

We (me and also dado) are using a Tp-Link Tl-Wr802N as bridge from network A to the network B, where is working the home assistant device.

I didn’t understand how you bypassed this issue.

PS: the hardware cost of what I’ve described (the Tp-Link Tl-Wr802N) is 25€… not a lot.
PPS: I’m working without installer password, and it works well. I know myself and I prefer to do not have so sensible commands in HA… I agree with the last sentence in your comment above about the password reset :slight_smile:

Hi there, could you please explain, what your Tp-Link Tl-Wr802N is exactely doing? If I understand you correctly, you have installed the dongle FE and conncted it to your local WiFi. Why is there another network necessary? Is there no way to connect HA to the Huawei Fusion App just with the FE dongle? Thanks, BR JJ

Hi Dave, the answer is here “Network A- Local network client: obtained with the dongle, and it is used for FusionSolar usage. Inverter IP: 192.168.1.XXX. To have on this network the sensor status via ModbusTCP on the port 6607 of the dongle you need to activate it in the inverter’s setting, but you need Installer access.”

Anyway, someone which have installer password still had some issues:

Thanks for your explanation - is this only needed cause you have TWO inverters connected? BR JJ