Integration Solar inverter huawei 2000L

Yes, you should be able to input a comma-separated list of slave-ids now. Please let me know if you need to put them in a specific order or not for it to work.

Since updating today…
I cannot get the intergration to work anymore! (It was working yesterday)

2022-01-28 22:34:26 WARNING (MainThread) [pymodbus.client.asynchronous.async_io] Failed to connect: [Errno 104] Connect call failed (‘10.50.3.10’, 502)

2022-01-28 22:34:33 ERROR (MainThread) [huawei_solar.huawei_solar] Modbus client is not connected to the inverter.

NoneType: None

2022-01-28 22:34:37 ERROR (MainThread) [huawei_solar.huawei_solar] could not read register value, is an other device already connected?

Hi,

  • I assume you do not have a power meter connected to your inverter? I will add them to the list of fields for the inverter.
  • Internal temperature is disabled by default, but should work if you enable it manually. (it will populate after the next update, which is done every 30 seconds).
  • “Input Power” is the power in W that is produced by the PV

Got it intergrated now with Slave1
But now coming up with these errors

2022-01-28 22:41:54 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up huawei_solar platform for sensor

Traceback (most recent call last):

File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 249, in _async_setup_platform

await asyncio.shield(task)

File “/config/custom_components/huawei_solar/sensor.py”, line 62, in async_setup_entry

has_optimizers = (await inverter.get(rn.NB_OPTIMIZERS, slave_id)).value

File “/usr/local/lib/python3.9/site-packages/huawei_solar/huawei_solar.py”, line 107, in get

return (await self.get_multiple([name], slave))[0]

File “/usr/local/lib/python3.9/site-packages/huawei_solar/huawei_solar.py”, line 154, in get_multiple

raise ReadException(

huawei_solar.exceptions.ReadException: Got error while reading from register 37200 with length 1: Exception Response(131, 3, IllegalAddress)

I’ve added all the line-voltage, phase voltage and phase current entities to the integration. Note that I leave them disabled by default. Because:

  • There is no easy way to detect if the inverter is a one-phase or three-phase version. So this could result in a lot of useless sensors for people with one-phase inverters
  • They are duplicate anyway for people with a power meter installed (which is always the case when you have a battery attached)

Interesting. I’ve pushed a fix. Can you please let me know if this works for you?

1 Like

Hi,

Not yet in trouble as my installation will happen only next week, but as i will get Huawei Hybrid Inverter i was installing in advance this great component. Problem tough is that after installing in HACS when I go to install the integration it does not appear. I have restart my HA instance but it does not work. I run HA in OdroidN2.

I’ve updated a previous version of this integration but HA duplicated installation and all sensors :(, so I’ve unistalled all versions and installed agan a clean integration. In this new release some sensors changed ID and I updated my grafana dashboard. but all seems works well with my SUN2000-5KTL-L1 + Luna2000 (20kWh) + Power Meter. Many thanks 4 your excellent work.

Please open an issue in my GitHub repo. It contains a template with all the things I need to help you. When filling in ‘Steps to reproduce’ I mean: EVERY button you clicked, EVERY bit of input you put somewhere. Be detailed! Otherwise I won’t be able to find the problem.


@MicheleMercuri I made some updates in the naming of things to improve consistency. Sorry to hear that this messes up your existing sensors.

1 Like

No worries, not in a hurry. Thanks

Dear wlcrs

Thanks for great job. Installed an working perfectly.

Just one doubt:

  • By default line-voltage, etc are Disabled.
    How to enable it?
    What file i need to edit?

Regards

Neves

  • Go to Configuration > Devices & Sensors

  • Click on the tile from your inverter
    image

  • Choose the inverter device

  • On the detail page of your inverter, you will find the disabled entities, which you can now enable as needed:

Thank you.

I cannot see any disabled entities :cold_sweat:
What can be wrong?

Please make sure that you are using the latest version. This is currently 0dd4699 .

@wlcrs
The integration works great for me.
Is it possible to change update interval? Now it is 15s, but for me 30s or 60s is better. Less data - smaller database and faster respond in drawing graphs.

how can I do ir? it is on inversor I think

Installing your integration will remove the Emily one correct?

thanks

Sorry but I can nof fint it in integrations … All the files inside

  • /config/custom_components/Huawei_solar

and then all the files correct??? Not the folder huawei_solar-0dd4699273143078c1269285a6fcd89bb27f826c

thank you in advance

Yep its working great now!