Solaredge component issues

I am trying to set up the solaredge component but am getting the following error:

2019-01-17 13:59:26 ERROR (SyncWorker_7) [homeassistant.components.sensor.solaredge] Could not retrieve details from SolarEdge API

My configuration.yaml

- platform: solaredge
    api_key: !secret solaredge_api_key
    site_id: !secret solaredge_site_id
    monitored_conditions:
      - current_power
      - last_day_data

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”?

Try the following in your browser to see if you get json data back:
https://monitoringapi.solaredge.com/site/YOUR_SITE_CODE/overview.json?api_key=YOUR_API_KEY

If you do then you know your site id and api key are working.

The only other comment is in your yaml, perhaps the config parameters need to be left shifted…should look more like:

  - platform: solaredge
    api_key: API_KEY
    site_id: SITE_ID
    monitored_conditions:
      - current_power
      - last_day_data

thanks Willy. Populating the link you attached with the site_id and api gives me http status 403

HTTP Status 403 -

type Status report

message

description Access to the specified resource () has been forbidden.

Apache Tomcat/6.0.24

I’m assuming this means either the site_ID or API is incorrect?

I’ve checked my yaml spacing is correct, not sure why it showed as indented on my previous post

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
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)

Did you get anywhere with this?

I don’t have the admin symbol either, but I’ve managed to use the API successfully on the website PVOutput and when I use the link that’s been suggested https://monitoringapi.solaredge.com/site/YOUR_SITE_CODE/overview.json?api_key=YOUR_API_KEY it works OK (I get JSON).

All my configuration looks OK…

James

Huh, working OK on a reboot.

Sounds like you all good then… :grin:
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.

1 Like

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:

{"overview":{"lastUpdateTime":"2020-08-20 11:09:07","lifeTimeData":{"energy":1.1928578E7,"revenue":2233.2502},"lastYearData":{"energy":3175960.0},"lastMonthData":{"energy":334493.0},"lastDayData":{"energy":1442.0},"currentPower":{"power":618.0786},"measuredBy":"INVERTER"}}

So it seems to be working fine , but the integration within Hassio … doesn’t

is it working for others? I can query manually with [https://monitoringapi.solaredge.com/site/YOUR_SITE_CODE/overview.json?api_key=YOUR_API_KEY
however the Solaredge cloud integration doest show any values…

Terrible that the Home Assistant Energy page needs SolarEdge Cloud data, i would use my data from SolarEdge Modbus local instead

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'))

```

After updating to 2023.9.1 this error appeared:

Logger: custom_components.solaredge_modbus.sensor
Source: custom_components/solaredge_modbus/sensor.py:213
Integration: SolarEdge Modbus (documentation)
First occurred: 22:39:36 (21 occurrences)
Last logged: 22:40:36

exception: Big

Got back to 2023.9.0 - everything works fine. Some ideas? Thanks