Integration Solar inverter huawei 2000L

it is open by default on these versions. On the latest one for the dongle it didn’t worked for me, probably because of the port ( I didn’t know you can open it manually), so I downgraded to …spc123 and worked again. (previously I was on spc 122)

Here you have a guide:
https://forum.huawei.com/enterprise/en/modbus-tcp-guide/thread/789585-100027
(it was also in this thread)
It’s possible to enable this feature (as this is inverter setting) even with inverter ver SPC139 and dongle SPC123 and then upgrade to 124 and it will just work.
Remember to have newest FusionSolar Android APP.

1 Like

Good

This representation as you have done ?, Could you pass the code from the diagram on the left?

Currently I Have:

elements:
  - entity: sensor.power_meter_active_power
    style:
      left: 27%
      top: 7%
    type: state-label
  - entity: sensor.active_grid_a_power
    style:
      left: 52%
      top: 16%
    type: state-label
  - entity: sensor.active_grid_b_power
    style:
      left: 52%
      top: 19%
    type: state-label
  - entity: sensor.active_grid_c_power
    style:
      left: 52%
      top: 22%
    type: state-label
  - entity: sensor.m_grid_a_voltage
    style:
      left: 38%
      top: 16%
    type: state-label
  - entity: sensor.m_grid_b_voltage
    style:
      left: 38%
      top: 19%
    type: state-label
  - entity: sensor.m_grid_c_voltage
    style:
      left: 38%
      top: 22%
    type: state-label
  - entity: sensor.m_grid_exporterd_energy
    style:
      left: 68%
      top: 7%
    suffix: ' >>> '
    type: state-label
  - entity: sensor.m_grid_accumulated_energy
    prefix: ' <<< '
    style:
      left: 68%
      top: 13%
    type: state-label
  - entity: sensor.energy_used
    style:
      left: 68%
      top: 31%
    suffix: ' >>> '
    type: state-label
  - entity: sensor.daily_yield
    prefix: 'Dzisiaj '
    style:
      left: 40%
      top: 37%
    type: state-label
  - entity: sensor.total_yield
    prefix: 'Total '
    style:
      left: 68%
      top: 37%
    type: state-label
  - entity: sensor.sun2000_8ktl_m0
    style:
      left: 20%
      top: 37%
    type: state-label
  - entity: sensor.phase_a_current
    style:
      left: 40%
      top: 46%
    type: state-label
  - entity: sensor.phase_a_voltage
    style:
      left: 26%
      top: 46%
    type: state-label
  - entity: sensor.phase_b_current
    style:
      left: 40%
      top: 49%
    type: state-label
  - entity: sensor.phase_b_voltage
    style:
      left: 26%
      top: 49%
    type: state-label
  - entity: sensor.phase_c_current
    style:
      left: 40%
      top: 52%
    type: state-label
  - entity: sensor.phase_c_voltage
    style:
      left: 26%
      top: 52%
    type: state-label
  - attribute: device_status
    entity: sensor.sun2000_8ktl_m0
    style:
      left: 60%
      top: 62%
    type: state-label
  - entity: sensor.pv_input_power
    style:
      left: 20%
      top: 62%
    type: state-label
  - entity: sensor.pv_01_voltage
    style:
      left: 40%
      top: 70%
    type: state-label
  - entity: sensor.pv_01_current
    style:
      left: 60%
      top: 70%
    type: state-label
  - entity: sensor.pv_02_voltage
    style:
      left: 40%
      top: 88%
    type: state-label
  - entity: sensor.pv_02_current
    style:
      left: 60%
      top: 88%
    type: state-label
image: /local/sun2000e.png
title: Sun2000-8KTL-M0
type: picture-elements

Today my inverter was plugged to grid, but so far without panels connected (icy roof, waiting for better weather). Meanwhile I am trying to set it up with HA already. So far no success.

My HA IP is 192.168.10.10, inverter via dongle is 192.168.10.60, same wireless network, dongle is pingable from HA terminal:
image

In configuration.yaml I have:

- platform: huawei_solar
  host: 192.168.10.60
  optimizers: false
  battery: false
  slave: 1

and in logs after rebooting

021-12-22 13:10:37 ERROR (MainThread) [huawei_solar.huawei_solar] failed to connect to device, is the host correct?
NoneType: None
2021-12-22 13:10:37 ERROR (MainThread) [custom_components.huawei_solar.sensor] could not connect to Huawei inverter: failed to connect to device, is the host correct?

My inverter firmware ends with SPC135 according to FusionSolar mobile app. No idea how to check dongle firmware. In fusion solar app on devices tab I have two devices - inverter as first and below something called hardware key, but this one doesn’t have any details after clicking.

What am I doing wrong?

EDIT:
I logged via https://eu5.fusionsolar.huawei.com/ and I see dongle firmware ends with SPC119 which from my information is too old. Starting to search how to update it.

If you have an installer account just follow this:
https://skyboo.net/2021/09/how-to-do-a-firmware-upgrade-using-fusionsolar/

Edit:
Just a side note I’d like to share with you guys for your information…
Today I’ve discovered new modbus command which can be used for obtaining SUN2000 inverter software version using dongle :slight_smile:

I’ve implemented it in my GitHub - manio/hard: hard (home automation rust-daemon). Here are the values which can be obtained:

I think you can ask @Emilv2 to add this support to the integration if you find it valuable feature.

1 Like

Dongle updated to SPC124. Still problems, but new error in logs.

2021-12-22 23:11:56 WARNING (MainThread) [pymodbus.client.asynchronous.async_io] Failed to connect: [Errno 111] Connect call failed ('192.168.10.60', 502)
2021-12-22 23:11:56 ERROR (MainThread) [huawei_solar.huawei_solar] failed to connect to device, is the host correct?
NoneType: None
2021-12-22 23:11:56 ERROR (MainThread) [custom_components.huawei_solar.sensor] could not connect to Huawei inverter: failed to connect to device, is the host correct?
2021-12-22 23:11:56 WARNING (MainThread) [pymodbus.client.asynchronous.async_io] Failed to connect: [Errno 111] Connect call failed ('192.168.10.60', 502)

@Gutek
Are you sure you have modbus tcp port enabled in the inverter config?
Look about 15d back this thread:

I had the same problem…

1 Like

Thanks, works!

Hi Guys,
Huawei is currently doing maintenance and the FusionSolar cloud is not accessible (in EU).
The side effect of this is that the dongle cannot connect and it’s thinking that a restart would help. As the result it is constantly restarting (ethernet link down/link up) about every 5 minutes which is leading to interruption with our Modbus/TCP readings…

It would be great if the dongle could ignore this and still work without rebooting itself…

Do you know some setting/way to achieve this?

1 Like

Hello everyone, I have problem with this:
image
My total yeld is 1660kWh. Why grid_exported_energy and grid_accumulated_energy is so big?

Do you have smart meter connected to inverter?

No, I dont have.

So it’s correct. You will not have this values, they are only available when smart meter is connected to inverter.

In binary, 2147483647 is 01111111111111111111111111111111 and it’s the biggest positive number that will fit in 32 bits when using the “two’s complement” notation – the way of representing numbers that allows for negative values.

Oh, I understand.
In this situation which value I need to use in energy tab to show pv production?

Solar production: total_yield

Ok, thx :slight_smile:

sigh…,

Been trying for days but still no success.
In my opinion everything meets the conditions, but still not get the option to enable modbus TCP…
HUWAEI 17KTL-M0
Someone a suggestion?

Despite following the full instructions I still don’t get the option to enable the MODBUS TCP does not appear.

In the meantime I received the following response from the support team:

After I escalated the case to R&D, they informed us that they will add this function in Fusion Solar WEB. Please confirm if you agree to wait until the server maintenance will be finished.

My question is of course “when will this feature be available”

@Emilv2 Huawei in v117 has enabled MODBUS TCP only for direct connection to inverter’s wifi. I’ve started working with modbus RTU instead. Can you tell me which is the name and Address/Register that you are using in your component to return as value of the main entity “Sun2000l1”? I have many automations which I wouldn’t like to rebuild.
Thanks

Here you are:

1 Like