Ecowitt - Unknown Error

HA 2023.5 messed up the Hacs Ecowitt install. I had Ecowitt through HACS, then the May update of home assistant came out and borked my hacs version of Ecowitt, I couldn’t even uninstall it. I had to revert back the the previous version of Home Assistant, then uninstall it, then install the home assistant version of Ecowitt, then update to the May version of HA again and all was fine, for a short time.

A few hours later I wasn’t getting data from my weather station again and Ecowitt was giving me a gateway error or something so I uninstalled it but when I tried to reinstall it, it gave me the error “Unknown error occurred”. I don’t know how to fix this error. I’ve tried rebooting the server HA is running on, I’m using the HA OS on a dedicated mini PC. This has been going on for 2-3 weeks now.

I clicked the support link and it took me to Github, I posted a request and it was closed with the message “The core does not support custom integrations. Please open an issue at your custom integration”, I thought I opened the issue at the integration?

Anyone else able to fix this problem??

Here is log data that shows up after I try to reinstall Ecowitt:

Logger: aiohttp.server
Source: helpers/network.py:200
First occurred: 4:33:36 PM (92 occurrences)
Last logged: 5:12:49 PM
Error handling request

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 235, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 146, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 180, in post
    return await super().post(request, flow_id)
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
    result = await method(view, request, data, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 271, in async_configure
    result = await self._async_handle_step(
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
  File "/usr/src/homeassistant/homeassistant/components/ecowitt/config_flow.py", line 35, in async_step_user
    base_url = URL(get_url(self.hass))
  File "/usr/src/homeassistant/homeassistant/helpers/network.py", line 200, in get_url
    raise NoURLAvailableError
homeassistant.helpers.network.NoURLAvailableError

I’ve got the same issue. I’ve tried uninstalling and restoring to previous 2023.4.2 but still get the same “An unkown error has occured” when I try to reinstall

I figured out the the unknown error message was from the SSL. If I disable SSL and connect to Home Assistant using HTTP instead of HTTPS then I could install Ecowitt and didn’t get the error message.

I had to install Nginx Proxy and figure out how to get it working to connect to Home Assistant locally with no SSL connection so the weather data would work but be able to connect to it from outside my network using SSL.

This was helpful, although it still took some trial and error.