I’m attempting to add the GPSLogger
integration after reinstalling HA OS - my goal is to use either GPSLogger
or OWNTracks
as a second device_tracker
(the mobile app is my primary, as well as our router to determine when we are home). When the integration is selected from the integrations panel, I get the expected pop-up from config flow:
When I click on Submit, I expect to see a webhook that I can use with the GPSLogger
app on my phone. But I get this instead stating “Unknown error occurred”:
The log provides this information on the error:
2021-05-10 13:58:28 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
resp = await self._request_handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 119, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 56, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 74, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 135, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 131, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 155, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 63, in wrapper
result = await method(view, request, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 109, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 199, in async_configure
result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 257, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/usr/src/homeassistant/homeassistant/helpers/config_entry_flow.py", line 159, in async_step_user
webhook_url = self.hass.components.webhook.async_generate_url(webhook_id)
File "/usr/src/homeassistant/homeassistant/components/webhook/__init__.py", line 60, in async_generate_url
get_url(hass, prefer_external=True, allow_cloud=False),
File "/usr/src/homeassistant/homeassistant/helpers/network.py", line 116, in get_url
raise NoURLAvailableError
homeassistant.helpers.network.NoURLAvailableError
I also tried with OwnTracks, and ended up with a similar error:
2021-05-10 13:44:00 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
resp = await self._request_handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py", line 119, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 56, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 18, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 74, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 135, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 131, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 155, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 63, in wrapper
result = await method(view, request, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 109, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 199, in async_configure
result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 257, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/usr/src/homeassistant/homeassistant/components/owntracks/config_flow.py", line 27, in async_step_user
webhook_id, webhook_url, cloudhook = await self._get_webhook_id()
File "/usr/src/homeassistant/homeassistant/components/owntracks/config_flow.py", line 76, in _get_webhook_id
webhook_url = self.hass.components.webhook.async_generate_url(webhook_id)
File "/usr/src/homeassistant/homeassistant/components/webhook/__init__.py", line 60, in async_generate_url
get_url(hass, prefer_external=True, allow_cloud=False),
File "/usr/src/homeassistant/homeassistant/helpers/network.py", line 116, in get_url
raise NoURLAvailableError
homeassistant.helpers.network.NoURLAvailableError
It seems it’s looking for a URL, but I have no idea what that would be (and where I would enter it).
I followed the instructions in the docs for GPSLogger, but they don’t say a lot about the webhook - just that there will be one.
Do these still work (I have used them both in the past, but it’s been awhile), or is it possible I’ve goofed up something with webhook generation? Anyone have any idea what the problem is and how I can fix it? Or are these just ready to be retired at this point (the last forum question about these seems to be a year ago), and now neither of them is available through the Google app store (they are through F-Droid).
Thanks for any help!