core: Goodwe integration not working with LAN module
The problem
I have a GW15K-ET which works fine with HA GoodWe integration when using the Wifi module. But as soon as I change to the LAN/WIFI module then HA is not able to find it anymore.
I remove everything and start new integration, I give it the LAN IP and it says “Unknown error occurred” Same if I give it Wifi IP from the LAN/Wifi module.
But If I remove everything again, change to only Wifi module and give it the IP then it works great.
LAN/Wifi module works as I can see data in SEMS portal.
I found some info in the logs, please see below
What version of Home Assistant Core has the issue?
core-2024.3.3
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
GoodWe inverter
Link to integration documentation on our website
https://www.home-assistant.io/integrations/goodwe
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
File "/usr/src/homeassistant/homeassistant/components/goodwe/config_flow.py", line 36, in async_step_user
inverter = await connect(host=host, retries=10)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/goodwe/__init__.py", line 52, in connect
return await discover(host, timeout, retries)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/goodwe/__init__.py", line 72, in discover
response = await DISCOVERY_COMMAND.execute(host, timeout, retries)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/goodwe/protocol.py", line 109, in execute
await response_future
File "/usr/local/lib/python3.12/asyncio/selector_events.py", line 1228, in _read_ready
data, addr = self._sock.recvfrom(self.max_size)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ConnectionRefusedError: [Errno 111] Connection refused
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 96 (25 by maintainers)
I can confirm that sending the UDP packet I mentioned above is working for me.
I’d be happy to make a PR to do something similar within the HA integration.
Same issue here regarding the UDP packets stopping during the night; and opening SolarGo the next morning fixes it. All I can see the SolarGo App doing is sending the magic UDP broadcast message, so I’m trying that in a CronJob tonight to confirm if that’s all that is required. Something like:
The inverter also responds to non-broadcast messages, just sending the packet straight to the IP, so I’ll see if that fixes it as well; will need a few nights to test though.
GW5000-DNS-30 v1.3 Wifi/Lan Kit-20 v1.2 UDP, no TCP
I have encountered the same issue once switching to the LAN module. Opening the SolarGo app and bringing up the Inverter (SEMS Portal wasn’t enough) allowed HA to connect just fine.
I have switched to using the experimental integration from @DanielLeone with the wake-up packet and will report how it goes. So far connectivity is solid, and no explosions 😉
Created a PR here: https://github.com/mletenay/home-assistant-goodwe-inverter/pull/340 Probably not the fix we’ll end up with, but the fix that’s working for me in the interim.
If you want to run it yourself, you can:
The forked GoodWe integration should override the built-in GoodWe integration:
This is what I’m doing for now, and I take no responsibility if it blows up your HA server, GoodWe Inverter, house, or anything else.
Keep in mind, if you do this, you’ll be getting
masterbranch of mletenay/home-assistant-goodwe-inverter + my fix , which is quite different from the bundled Home Assistant GoodWe Integration (quite a bit older it seems).Hi, I can confirm that. Communication stops every night. Reinstallation of HA Integration throws an error at the point where IP Address is typed in.
When I start the SolarGo App, the connect to the Inverter works instantly again for some hours.
I received my updates due to an open ticket (my ET 15 pushed >100 watts into grid when on battery).
You could register there and open a ticket to get the latest updates pushed: https://goodwetechnology.zendesk.com/hc/en-gb
Still going strong, no issues at all! Close this ticket whenever you feel it’s time to close it but for me it all works great! Thx for all the help!
@ivik Do not close it yet, the code is still in HACS only and has to mature a bit to port it to core HA.
Sure thing, just let me know when you have anything ready for test. I have a little bit of knowledge around Python so it should not be a problem.
So to summarize it: There are (at least) 2 versions of the WIFI/LAN kit
You need to select LAN as the “Internet access port” within SEMS Portal WiFi-configuration (I know, “WIFI-configuration” is a bit misleading…). You may want to watch the Goodwe Configuration video of the Wii-Fi+LAN-kit on youtube Good luck!