Me too…
I see a closed bug reported for this, ecowit intergation broken · Issue #92174 · home-assistant/core · GitHub
but it is not clear to me how to resolve?
I redownloaded the HACs integration and still get the same error.
I have got the same problem after updating , any fix for this yet
Have a look at fail to load in beta 2023.5.b0 · Issue #149 · garbled1/homeassistant_ecowitt · GitHub
Actions:
Remove from integrations
Remove from hacs
Reboot
Add to hacs. It uses same name but this time you get a message to add a web hook to the ecowit
Edit custom on ecowit with new web hook
Ireboot ha again to load integration
Worth a try !
The core update appears to have broken the ecowitt integration. Not sure what to do.
Ditch the one from hacs and use built in integration. I did that right after finding out it is broken.
I fixed this issue and submitted a pull request. The fix is trivial - in the init.py change line 21
from:
async_get_registry as async_get_entity_registry,
to:
async_get as async_get_entity_registry,
effectively async_get_registry
was marked as deprecated and was removed in 2023.5.0 and async_get
is the replacement.
Ecowitt is a native integration now. removed the HACS version and problems resolved.
IIRC native integration requires https, so I switched to custom component and it worked perfect (until now)
Awesome! I have around 59 entities so I think I’ll wait for the update.
EDIT: I’m rolling back temporarily.
For some reason, I can’t even delete the integration and because I can’t delete it, I can’t remove it from HACS.
Thanks this solution works for me
you need to restore 2023.4, then remove the integration and delte from HACs. then reboot HA.
Do NOT re add the HACs integration, just add the native Ecowitt integration.
When Configuring it, Copy the Details it tells you you need for the Ecowitt / WSview app.
you need to update your customer Weather service with those details… (note it no longer goes to port 4199 and uses 8123 instead).
(Then you might have some manual editing to get your entities back to the same names i.e. delete ‘GW100_1_7_6_’ from their names !) annoying I know!
then upgrade to 2023.5.x again and all is good.
For those worried about the https support, install NGINX proxy addon, and add a Proxy host that forces SSL on http forwarding to port 8123 of your HA…
on the SSL tab in the above, enable ‘force SSL’
Note ‘external.domain.name’ in my screen shot needs to be replaced by your external domain name from the likes of duckdns etc.
Ok, so how do I restore 2023.4?
Is it in the backups section, and then just select the latest 2023.4.x version, and click restore?
I managed to remove it without reverting from backup. I removed extension from HACS - it warns you that integration is set up, you ignore that and remove it. Restart HA, then I could remove it from integrations (it was still showing up). I played with that a little, disable, enable, restart, remove - but finally could remove it. Then I just installed built in one and after, renamed all my entites - it was easier than redo all my automations, dashboards, etc.
I’m following the instructions presented by the built in integration, but it’s not reporting. My Ecowitt app doesn’t seem to enable the custom/local “gateway”
Makes sense. I’ve got it all set up and I’m already running Nginx so I just pointed the Ecowitt URL to that of my HA instance via the proxy. I never see anything populate in the integrations. Should it show devices on the integration page like other integrations? What is an auto-generated device that I can look up in developer tools → states?
This worked like a champ!
Switching to the built in doesnt work for me as I’m pulling info from multiple locations coming in on different ports, and I plan on 2 more locations at some point.
In which way I have to change this line?
registry = await async_get_entity_registry(self.hass)
You need to be on local network with your ecowitt GW to be able to add custom server.
Btw - I use ecowitt on different HA instances. I know there are dockers/plugins to resend the values to multiple mqtt brokers, but I found it to be too much overhead for what I want. So instead, on my primary HA, I use built in integration. On second, I do restful and poll ecowitt station every 60 seconds.
Thanks for the info but seems to be a lot of work for only have this integration working. If it’s only a parameter to be fixed, I’ll wait for it.
Edit: just as @noah.guilbault posted earlier, I modified line 21 in init.py (found in config\custom_components\ecowitt) and voilà, all is working as before