Adicionar sensores com index de ultra violeta e ozono e tempos de esposição solar,
dados retirados da API openUV. openUV.io
Julgo ter sido adicionado na ver. 0.76 do hassio.
Adicionar sensores com index de ultra violeta e ozono e tempos de esposição solar,
dados retirados da API openUV. openUV.io
Julgo ter sido adicionado na ver. 0.76 do hassio.
Boa recolha de dados usas muito isso por necessidade ou só por carolice? São por acaso detalhes que a maioria das pessoas não quer saber.
Primeiro foi porque vi no changelog da ultima versão do hassio e resolvi testar.
Realmente tem muitos detalhes, mas o índice UV é tão ou mais importante que saber a temperatura ambiente pelo efeito que sabemos que tem na pele.
Claramente que sim, mas como disse antes muita gente não dá tamanha importância a isso.
Mas um bom componente a usar.
Ao tentar configurar esta integração recebo o erro “Unknown error occurred”. Será da integração, do setup do meu HA ou da API que está a ser generada? Há forma de gerar nova chave API?
Ao correr o comando curl -X GET 'https://api.openuv.io/api/v1/status' \ -H 'x-access-token: CHAVE API
obtenho result: true
, pelo que o serviço estará online.
Entretanto tentei a configuração com outra API e recebo o mesmo erro. Alguém sabe a forma de adicionar a integração manualmente?
No log obtenho isto sempre que tento fazer a configuração UI:
2023-05-06 16:34:18.034 ERROR (MainThread) [aiohttp.server] Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1152, in _create_direct_connection hosts = await asyncio.shield(host_resolved) File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 874, in _resolve_host addrs = await self._resolver.resolve(host, port, family=self._family) File "/usr/local/lib/python3.10/site-packages/aiohttp/resolver.py", line 33, in resolve infos = await self._loop.getaddrinfo( File "/usr/local/lib/python3.10/asyncio/base_events.py", line 863, in getaddrinfo return await self.run_in_executor( File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.10/socket.py", line 955, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -2] Name does not resolve The above exception was the direct cause of the following exception: 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/openuv/config_flow.py", line 188, in async_step_user return await self._async_verify(data, "user", self.step_user_schema) File "/usr/src/homeassistant/homeassistant/components/openuv/config_flow.py", line 108, in _async_verify await client.uv_index() File "/usr/local/lib/python3.10/site-packages/pyopenuv/client.py", line 146, in uv_index return await self._async_request("get", "uv") File "/usr/local/lib/python3.10/site-packages/pyopenuv/client.py", line 92, in _async_request async with session.request(method, url, **kwargs) as resp: File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 1141, in **aenter** self._resp = await self._coro File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 536, in _request conn = await self._connector.connect( File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 540, in connect proto = await self._create_connection(req, traces, timeout) File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 901, in _create_connection _, proto = await self._create_direct_connection(req, traces, timeout) File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1166, in _create_direct_connection raise ClientConnectorError(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.openuv.io:443 ssl:default [Name does not resolve]
Copyright © 2017-2021. Todos os direitos reservados
CPHA.pt - info@cpha.pt