mletenay / home-assistant-goodwe-inverter

Experimental version of Home Assistant integration for Goodwe solar inverters
https://discord.gg/TaXyWXT
MIT License
146 stars 38 forks source link

Flexible IP Address #289

Closed jck5000 closed 3 months ago

jck5000 commented 3 months ago

Unfortunately, my single avaliable Internet provider only offers a s#!t router, which doesn't allow enough fixed IP adresses to be set by DHCP, and the Goodwe SolarGo app essentially removed the feature to just set a fixed IP (or at least it isn't working).

Yes, I've complained to them already.

This (great!; thank you so much!) integration, though, asks for an IP adress. Which is not re-configureable in the GUI, I essentially uninstall and reinstall the integration every time the s#!t router f%cks up.

Someone made an IP Scanner plugin on HACS, that works perfectly fine and someone has already done that, so the only thing I need to do is open that, read the title line which I typed in as "Goodwe inverter MAC is "...A2:D2", look up whatever IP is current, and then tell that to the Goodwe integration.

Now, my idea is, that if anyone knew how to do that, it should obviosly possible to find the inverter in a network if the MAC address is known, so this auto-updates.

Unfortunately, I have absolutely zero clue on how any of that works; I can't even guess the actual difficulty of doing that. But I'd really appreciate this if someone could and would implement it.

janchlebek commented 3 months ago

I honestly think this is out of scope for the integration. Dealing with a dynamic IP address is a network task and goes beyond what an integration should deal with. If you have such a problem with the stupid router why not put anorher one behind it and manage the network independently?

It would not only help you with the inverter but would increase the overall manageability of your environment.

smileyman-1 commented 3 months ago

An idea for a better workaround: you can configure a fixed IP address in the web interface of the WLAN / LAN interface of the Goodwe inverter (open http://IP address once from a browser).

mletenay commented 3 months ago

As mentioned above, solving network layer issues is not and will not be responsibility of the integration. I believe the 2 suggested solutions could help you: