I have received the api and site id from my installer and he has double checked they are correct… I have my doubts as that would be the obvious error, could there be any other reason I’m not able to “retrieve the details”?
My only suggestion would be to login to the solaredge monitoring web site,
goto admin->Site Access and check your API access to see if the key it displays matches correctly.
For some reason I don’t have the “admin” tab when I log on the solaredge site. I only get “dashboard” and “layout”.
I’ve asked my installer why I don’t have the other tabs like in this Google image
The installer was here today and we got a fresh API but I still get the same error. The api and site id have been checked and double checked.
When trying to debug these are the logs which have an API in them, not sure if they are all for this sensor or not?
I’ve not changed my config file entry and the log in is correct, has anyone else had an issue with the solar edge component?
The next step is to call solaredge but I don’t know really how they can help…
2019-01-28 17:16:15 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.solaredge
2019-01-28 17:16:16 ERROR (SyncWorker_7) [homeassistant.components.sensor.solaredge] Could not retrieve details from SolarEdge API
2019-01-28 17:16:27 INFO (MainThread) [homeassistant.components.http.view] Serving /api/websocket to 192.168.1.1 (auth: False)
2019-01-28 17:18:09 INFO (MainThread) [homeassistant.components.http.view] Serving /api/ to 172.30.32.2 (auth: True)
2019-01-28 17:23:09 INFO (MainThread) [homeassistant.components.http.view] Serving /api/ to 172.30.32.2 (auth: True)
2019-01-28 17:27:01 INFO (MainThread) [homeassistant.components.http.view] Serving /api/error/all to 192.168.1.1 (auth: True)
2019-01-28 17:27:08 INFO (MainThread) [homeassistant.components.http.view] Serving /api/error/all to 192.168.1.1 (auth: True)
2019-01-28 17:27:24 INFO (MainThread) [homeassistant.components.http.view] Serving /api/error_log to 192.168.1.1 (auth: True)
Sounds like you all good then…
I finally got it working a couple days ago thanks. After several back and forths my installer gave me his login details so I could do it myself and it works now, you have to save the solaredge settings page after each new api request which I guess he probably wasnt doing. Anyway it worked straightaway once I got a new API.
Good to know that the monitoringapi link works to check future queries though
Thank you for this. I had the same issue with the first API Key the installer provided.
Thank you to Willy Maker for the link to test the api key. I gave it to the installer so he could test the key to confirm the key generation process was successful.
Running this Solaredge plug-in for months, but a few weeks ago it stops working Could not retrieve details from SolarEdge API 10:54:17 – SolarEdge (ERROR)
I already used / renewed the api from within the Solaredge portal, but stil it stops working.
When i entered the API and the site ID i’ll get the response:
Where can I change de api key, homeassistant won’t connect anymore
2023-05-05 15:30:06.750 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry solaredge for solaredge
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='monitoringapi.solaredge.com', port=443): Max retries exceeded with url: /site/000000/details?api_key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b5ac7ff70>: Failed to establish a new connection: [Errno -3] Try again'))
File "/usr/src/homeassistant/homeassistant/components/solaredge/__init__.py", line 25, in async_setup_entry
File "/usr/local/lib/python3.10/site-packages/solaredge/solaredge.py", line 81, in get_details
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='monitoringapi.solaredge.com', port=443): Max retries exceeded with url: /site/000000/details?api_key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b5ac7ff70>: Failed to establish a new connection: [Errno -3] Try again'))
2023-05-05 15:35:10.157 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.solaredge (Wh) cannot be converted to the unit of previously compiled statistics (None). Generation of long term statistics will be suppressed unless the unit changes back to None or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2023-05-05 18:05:20.968 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry solaredge for solaredge
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='monitoringapi.solaredge.com', port=443): Max retries exceeded with url: /site/000000/details?api_key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b4e3c1b70>: Failed to establish a new connection: [Errno -3] Try again'))
File "/usr/src/homeassistant/homeassistant/components/solaredge/__init__.py", line 25, in async_setup_entry
File "/usr/local/lib/python3.10/site-packages/solaredge/solaredge.py", line 81, in get_details
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='monitoringapi.solaredge.com', port=443): Max retries exceeded with url: /site/000000/details?api_key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b4e3c1b70>: Failed to establish a new connection: [Errno -3] Try again'))
2023-05-05 18:08:33.684 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry solaredge for solaredge
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='monitoringapi.solaredge.com', port=443): Max retries exceeded with url: /site/000000/details?api_key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b4b526410>: Failed to establish a new connection: [Errno -3] Try again'))
File "/usr/src/homeassistant/homeassistant/components/solaredge/__init__.py", line 25, in async_setup_entry
File "/usr/local/lib/python3.10/site-packages/solaredge/solaredge.py", line 81, in get_details
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='monitoringapi.solaredge.com', port=443): Max retries exceeded with url: /site/000000/details?api_key=W546L0EJAZUWXSGX4TJB07GNUNYIX4WF (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f7b4b526410>: Failed to establish a new connection: [Errno -3] Try again'))
```