ksheumaker / homeassistant-apsystems_ecur

Home Assistant custom component for local querying of APSystems ECU-R Solar System
Apache License 2.0
166 stars 42 forks source link

Cannot connect to ECU #141

Closed HAEdwin closed 1 year ago

HAEdwin commented 1 year ago
    @HAEdwin 

No good... and didn't expect it to work as an earlier performed Portscan did not show port 8899 open:

image

_Originally posted by @Verguldebarman in https://github.com/ksheumaker/homeassistant-apsystems_ecur/issues/139#issuecomment-1330990216_

HAEdwin commented 1 year ago

Are you sure this is the ECU and not another node? Did you assign a fixed IP-Address to the ECU or might if have gotten another IP-Address from the DHCP server (lease expired)?

Verguldebarman commented 1 year ago

Proof that the address is correct.

From my router: image

And if you lookup the MAC address: image

I did not assign a fixed IP, but reserved it in my Router's DHCP list: image

HAEdwin commented 1 year ago

Are the ECU and HA node on the same network (subnet. VLAN). Is the ECU ethernet connected or wireless? Try the other method and see if you get responses using packet sender. Do not use the ECU's temporary hotspot used in the configuration step.

Verguldebarman commented 1 year ago

Are the ECU and HA node on the same network (subnet. VLAN).

yes

Is the ECU ethernet connected or wireless?

LAN

Try the other method and see if you get responses using packet sender. Do not use the ECU's temporary hotspot used in the configuration step.

Just tried getting the ECU-R WLAN connected but can't seem to get that working. Tried twice, but somehow the ECU will not connect with my wifi (and I know for sure I did not make a typo). Looks like more strange things happen in my ECU :-(

Does anyone know if it is possible to reset my ECU? And if so; will my roof/solar setup be remembered, or will that also reset everything. Meaning I will have to ask the solar-installation-guys to return and fix things.....

Verguldebarman commented 1 year ago

SOLVED !!!!

I found the solution:

     You must disconnect the ethernet cable. Otherwise, WIFI will not be used.

Connect HA to ECU-R via wifi and now it works!

Thanks @HAEdwin

HAEdwin commented 1 year ago

Great! But OMG I overlooked your line "My brand new ECU-R (2160xxxxx from October 2022)". The connection table in the readme shows the older ECU-R (without sunspec logo on the back) only works wireless. Anyway, great that it is solved now. I'll close this issue. Might any other issue arrise, feel free to open a new one.

Verguldebarman commented 1 year ago

Yeah, knew that... but didn't know that LAN cable must not be connected in order to have WIFI enabled. Anyway, great it is solved!

HAEdwin commented 1 year ago

Ok, maybe that changed from older firmware versions because I remember I had the ECU connected both ways. I'll add it to the documentation. Thanks!