When I enter my Site ID and API key an “unknown error occurred” message is displayed.
HAS is running the most recent version (core-2021.8.2) and the side id and api key is working. Tested it via the URL https://monitoringapi.solaredge.com/equipment/<Site Id>/list?api_key=<API Key>
The core log shows the following errors:
File "/usr/src/homeassistant/homeassistant/components/solaredge/config_flow.py", line 64, in async_step_user if self._site_in_configuration_exists(user_input[CONF_SITE_ID]): File "/usr/src/homeassistant/homeassistant/components/solaredge/config_flow.py", line 39, in _site_in_configuration_exists return site_id in solaredge_entries(self.hass) File "/usr/src/homeassistant/homeassistant/components/solaredge/config_flow.py", line 22, in solaredge_entries return { File "/usr/src/homeassistant/homeassistant/components/solaredge/config_flow.py", line 23, in <setcomp> (entry.data[CONF_SITE_ID]) KeyError: 'site_id'
Got it fixed. I installed and removed the extension in the past and that left entries in the core.config_entries file. After removing the solaredge section and a HAS reboot I managed to install and configure the SolarEdge extension.
Thank you, I had the same issue and this resolved it!
I have the same issue but i had never installed a version of SolarEdge integretion before.
Version core-2021.12.8
Error handling request:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.9/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 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 98, 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 78, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 181, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 157, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 62, in wrapper
result = await method(view, request, *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 252, 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 325, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/usr/src/homeassistant/homeassistant/components/solaredge/config_flow.py", line 69, in async_step_user
can_connect = await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/solaredge/config_flow.py", line 45, in _check_site
response = api.get_details(site_id)
File "/usr/local/lib/python3.9/site-packages/solaredge/solaredge.py", line 81, in get_details
r = requests.get(url, params)
TypeError: get() takes 1 positional argument but 2 were given
I have exactly the same problem. Although I cannot find a core.config_entries file.
I have latest updates of Home Assistant and Home Assistant OS.
So basically I’m stuck…
You can find the file in the ./config/.storage folder. To access the files you need to install Terminal &SSH Add-on.
Before start editing the file I suggest to make a copy first as backup.
I restored an old backup the problem was not happening anymore
I have the same issue. In my case it is conflicting with the Toshiba AC integration see:
Proposed solution did not work. Hopefully someone here can give an answer.
Did somebody found a solution for this problem? I Would like to be able to use both the Toshiba airco and the solaredge integrations but I can’t get it to work.
Also I have the interference with the Toshiba AC integration. Hopefully it can be fixed as I want to use them both.
Click for error log
Logger: aiohttp.server Source: components/solaredge/config_flow.py:45 First occurred: 23:11:16 (5 occurrences) Last logged: 23:14:34Error handling request
Traceback (most recent call last):
File “/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py”, line 433, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py”, line 504, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/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 236, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/headers.py”, line 31, in headers_middleware
response = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/view.py”, line 148, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/http/decorators.py”, line 63, in with_admin
return await func(self, request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/config/config_entries.py”, line 177, 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 298, in async_configure
result = await self._async_handle_step(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/data_entry_flow.py”, line 394, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/solaredge/config_flow.py”, line 69, in async_step_user
can_connect = await self.hass.async_add_executor_job(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/solaredge/config_flow.py”, line 45, in _check_site
response = api.get_details(site_id)
^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/solaredge/solaredge.py”, line 81, in get_details
r = requests.get(url, params)
^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: get() takes 1 positional argument but 2 were given