Emilv2 / huawei_solar

Home Assistant custom component for Huawei inverters
Apache License 2.0
174 stars 41 forks source link

Not capable of connecting #82

Open Rvh91 opened 2 years ago

Rvh91 commented 2 years ago

EDIT: managed to get it working. by accessing port 502. Leaving this comment here for future reference. Perhaps it would be a good idea to include combinations of firmware and port numbers that are known to be working in the documentation?

Hi,

First of all thank you for making this integration. Would love to have the inverter integrated in HA. Not sure if this is the right place to reach out, but I cannot seem to setup this integration.

My setup is as following:

I've added the following in my configuration:

sensor:
  - platform: huawei_solar   
    host: '192.168.178.52'
    optimizers: false
    battery: false
    slave: 1
    port: 6607

I'm using the IP of the Sdongle for the host. But no sensors are showing up. I also don't see anything in the logs in relation to this integration. I'm not sure how to proceed in debugging. Could someone provide me some direction?

nunocampos105 commented 2 years ago

Hello,

Hope everyone is ok!

First, thanks for your work !

I've got a similar problem to thisuser, i've install the integration via HACS, but once i try to connect the system to my home assistant it says "fail to connect".

I connect the inverter via WIFI, and is on the same network as the NUC.

Huawei SUN2000-3KTL-M0,

SW: V200R001C00SPC117

I didnt change the port (502) and i put the internal IP address.

Can someone give me some light ? :)

Thanks in advanced,

Best Regards, Nuno

Rvh91 commented 2 years ago

So if you access the internal wifi directly. I think you have a minimum requirement for the firmware version, but also a maximum. I recall that i read somewhere that Huawei dropped the modbus support when connecting to the internal wifi directly. You could try to use a different port, since the required port can be different for different firmware versions. I have seen at least 6607 listed somewhere as a potential port. You could maybe contact Huawei to ask them if your firmware version supports modbus on the internal wifi and what port to use?

Otherwise I Expect you need a smart dongle (just google for Huawei SdongleA-05), but these are pretty expensive.