couldn’t connect to solaredge API
The problem
New HA install. SolarEdge device automatically found and integration added. When configuring and adding the site ID and API key, I get the error “couldn’t connect to the solaredge API”. Nothing is logged. It appears the integration doesn’t even attempt to contact the monitoring site. The documentation at https://developers.solaredge.com/docs/monitoring/fc529ea0286bb-solar-edge-monitoring-api says the monitoring URL is supposed to be https://monitoringapi.solaredge.com/v2 which is reachable from my network.
What version of Home Assistant Core has the issue?
core-2024.12.5
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
SolarEdge
Link to integration documentation on our website
https://www.home-assistant.io/integrations/solaredge
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
Hey there @frenck, @bdraco, mind taking a look at this issue as it has been labeled with an integration (solaredge) you are listed as a code owner for? Thanks!
Code owner commands
Code owners of solaredge can trigger bot actions by commenting:
-
@home-assistant closeCloses the issue. -
@home-assistant rename Awesome new titleRenames the issue. -
@home-assistant reopenReopen the issue. -
@home-assistant unassign solaredgeRemoves the current integration label and assignees on the issue, add the integration domain after the command. -
@home-assistant add-label needs-more-informationAdd a label (needs-more-information, problem in dependency, problem in custom component) to the issue. -
@home-assistant remove-label needs-more-informationRemove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
(message by CodeOwnersMention)
solaredge documentation solaredge source (message by IssueLinks)
I'm also having this issue. When I attempt to go to: https://monitoringapi.solaredge.com/v2 i get the following message.
{ "error": "invalid_request", "error_description": "The access token is missing" }`
I am running core-2025.1.0
Looking into this further. It appears we need to connect to the v1 API - the above links are only for installers. Looking through the source code, I don't see anything awry. I tried to manually get status/details for my system following the API guide here: https://knowledge-center.solaredge.com/sites/kc/files/se_monitoring_api.pdf. That also raises an error. I have a case open with SolarEdge to get more details.
Thanks for looking into this!
From: jtbrownhome @.> Sent: Friday, January 3, 2025 4:49:13 PM To: home-assistant/core @.> Cc: Tim Winders @.>; Author @.> Subject: Re: [home-assistant/core] couldn’t connect to solaredge API (Issue #134208)
Looking into this further. It appears we need to connect to the v1 API - the above links are only for installers. Looking through the source code, I don't see anything awry. I tried to manually get status/details for my system following the API guide here: https://knowledge-center.solaredge.com/sites/kc/files/se_monitoring_api.pdf
— Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/134208#issuecomment-2569906580, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGJBTR6EVNPIA2K7VFM56QD2I4HWTAVCNFSM6AAAAABUK4XKI6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRZHEYDMNJYGA. You are receiving this because you authored the thread.Message ID: @.***>
I went back and forth with their customer support - they didn't have any helpful ideas. I ended up foregoing this route and used this instead: https://github.com/binsentsu/home-assistant-solaredge-modbus
Thanks.
Unfortunately, I have to run an ethernet cable to my inverter to be able to go that route…
Best wishes,
--- Tim (he/him)
From: jtbrownhome @.> Date: Friday, January 10, 2025 at 9:36 PM To: home-assistant/core @.> Cc: Tim Winders @.>, Author @.> Subject: Re: [home-assistant/core] couldn’t connect to solaredge API (Issue #134208)
I went back and forth with their customer support - they didn't have any helpful ideas. I ended up foregoing this route and used this instead: https://github.com/binsentsu/home-assistant-solaredge-modbus
— Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/134208#issuecomment-2585047073, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGJBTR6BZ66KEVP6ZZ2B47L2KCGSRAVCNFSM6AAAAABUK4XKI6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOBVGA2DOMBXGM. You are receiving this because you authored the thread.Message ID: @.***>
It just started happening to me too, all I see in the logs is ERROR (MainThread) [homeassistant.components.solaredge] Could not retrieve details from SolarEdge API
sadness
From: Ohad Benita @.> Date: Tuesday, February 4, 2025 at 7:39 AM To: home-assistant/core @.> Cc: Tim Winders @.>, Author @.> Subject: Re: [home-assistant/core] couldn’t connect to solaredge API (Issue #134208)
It just started happening to me too, all I see in the logs is ERROR (MainThread) [homeassistant.components.solaredge] Could not retrieve details from SolarEdge API
— Reply to this email directly, view it on GitHubhttps://github.com/home-assistant/core/issues/134208#issuecomment-2633788968, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGJBTR4BG3J2JWZ6SYYZTAD2OCYHZAVCNFSM6AAAAABUK4XKI6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMZTG44DQOJWHA. You are receiving this because you authored the thread.Message ID: @.***>
Same issue here : Logger: homeassistant.components.solaredge Bron: components/solaredge/init.py:32 integratie: SolarEdge (documentatie, problemen) Eerst voorgekomen: 13:32:52 (46 gebeurtenissen) Laatst gelogd: 14:32:31
Could not retrieve details from SolarEdge API
Adding myself to the list of people suffering this error.
I've also tried to install the SolarEdge local integration, as my inverter seems to be supported. But can't get it to work.
Api token v1 disabled?
Registratore: homeassistant.components.solaredge Fonte: components/solaredge/init.py:29 Integrazione: SolarEdge (documentazione, problemi) Prima occorrenza: 14:51:11 (11 occorrenze) Ultimo accesso: 14:57:39
Could not retrieve details from SolarEdge API
Edit: Restarted HA and it works again!
Same error here, however I have an hypothesis: Did you get your API-key from your Installer? (and therefor not from your personal SolarEdge environment) I got my API-key from my installer. I was able to successfully use it to submit this query https://monitoringapi.solaredge.com/site/xxxx/details?api_key=xxxx
It could be that just the API-key is not enough. Elevating my account so that I can retrieve the API-key myself, might also enable other functionality (like opening up access to the required API-call)
I am getting the same issue but only intermittently. Seems to be fine and then can't connect for a few hours. Averages about1/3 of daily values missing. Have only been having issues for the last couple of weeks, previously it was fine.
It seems, once it breaks for people, it’s broken with no resolution. TimOn Jun 14, 2025, at 11:13 AM, zaggynl @.***> wrote:zaggynl left a comment (home-assistant/core#134208) Is broken for me as well, has not worked so far, after getting the API key from SolarEdge support instead of my installer I was able to access the API by: curl https://monitoringapi.solaredge.com/site/x/details?api_key=y Which API version does home assistant use? the above method or another?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>
I am getting this same issue, I got my key from my installer. Can access https://monitoringapi.solaredge.com/site/x/details?api_key=y without issue. Integration in Home Assitant doesn't work though.
I am getting this same issue, I got my key from my installer. Can access https://monitoringapi.solaredge.com/site/x/details?api_key=y without issue. Integration in Home Assitant doesn't work though.
Same to me. SolarEdge support just confirmed to me that it is no longer possible to have an individual token but only through the installer. I tried to do everything again with the siteID and the installer's token but it doesn't work.
+1 stopped working here now
It seems, once it breaks for people, it’s broken with no resolution. TimOn Jun 14, 2025, at 11:13 AM, zaggynl @.***> wrote:zaggynl left a comment (home-assistant/core#134208) Is broken for me as well, has not worked so far, after getting the API key from SolarEdge support instead of my installer I was able to access the API by: curl https://monitoringapi.solaredge.com/site/x/details?api_key=y Which API version does home assistant use? the above method or another?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>
Does it work now for you with the key support gave you?
Does it work now for you with the key support gave you?
No, only manual calls work, the integration even when redoing the setup returns an error.
Seems like I also have a issue with Solaredge. My installer confirmed the API key and it works with : https://monitoringapi.solaredge.com/site/1234567/overview.json?api_key=TS23HDTBLABLABLABLABLABLATEKR31R At least I get som date from Solaredge - but when trying the integration it says: "Could not connect to the SolarEdge API" I just give the integration the data: 1: The name of this instyallation: Solaredge 2;: The SolarEdge SiteId: 1234567 3: API key: TS23HDTBLABLABLABLABLABLATEKR31R
No characters like "" or anything, just plan as above. Any suggestions?
Mine eventually started working. Not sure why, but it's been solid after the initial setup.
I think I found the issue. The default timeout in the SolarEdge dependency (https://github.com/bdraco/aiosolaredge/blob/354c870b64d8071cbfba534903ff67be6c717b7b/src/aiosolaredge/solaredge.py#L23) is 10 seconds. However, sometimes, I'm seeing response times of up to a 180 seconds for: https://monitoringapi.solaredge.com/site/1234567/overview.json?api_key=KEY.
I was thinking of making that timeout configurable but don't have a lot of experience with HA modules. Maybe a FR for (one of) the maintainers? @frenck
After I discovered the timing issue and retried a couple of times, it worked and also in the browser, I'm now seeing response times below 1 second.
I think I found the issue. The default timeout in the SolarEdge dependency (https://github.com/bdraco/aiosolaredge/blob/354c870b64d8071cbfba534903ff67be6c717b7b/src/aiosolaredge/solaredge.py#L23) is 10 seconds. However, sometimes, I'm seeing response times of up to a 180 seconds for: https://monitoringapi.solaredge.com/site/1234567/overview.json?api_key=KEY.
I was thinking of making that timeout configurable but don't have a lot of experience with HA modules. Maybe a FR for (one of) the maintainers? @frenck
After I discovered the timing issue and retried a couple of times, it worked and also in the browser, I'm now seeing response times below 1 second.
Hello, So the Solaredge integration just started to allow connection or did you have a connection that stopped working and then suddenly started? Thanks in advance
I think I found the issue. The default timeout in the SolarEdge dependency (https://github.com/bdraco/aiosolaredge/blob/354c870b64d8071cbfba534903ff67be6c717b7b/src/aiosolaredge/solaredge.py#L23) is 10 seconds. However, sometimes, I'm seeing response times of up to a 180 seconds for: https://monitoringapi.solaredge.com/site/1234567/overview.json?api_key=KEY. I was thinking of making that timeout configurable but don't have a lot of experience with HA modules. Maybe a FR for (one of) the maintainers? @frenck After I discovered the timing issue and retried a couple of times, it worked and also in the browser, I'm now seeing response times below 1 second.
Hello, So the Solaredge integration just started to allow connection or did you have a connection that stopped working and then suddenly started? Thanks in advance
The connection works fine, that's not the issue, the issue is that its slow, sometimes. Whenever it's slow and the integration is reloaded, it will stop working. The API needs to respond within 10 seconds, that's the default timeout configured in the HA component/lib.
I think I found the issue. The default timeout in the SolarEdge dependency (https://github.com/bdraco/aiosolaredge/blob/354c870b64d8071cbfba534903ff67be6c717b7b/src/aiosolaredge/solaredge.py#L23) is 10 seconds. However, sometimes, I'm seeing response times of up to a 180 seconds for: https://monitoringapi.solaredge.com/site/1234567/overview.json?api_key=KEY. I was thinking of making that timeout configurable but don't have a lot of experience with HA modules. Maybe a FR for (one of) the maintainers? @frenck After I discovered the timing issue and retried a couple of times, it worked and also in the browser, I'm now seeing response times below 1 second.
Hello, So the Solaredge integration just started to allow connection or did you have a connection that stopped working and then suddenly started? Thanks in advance
The connection works fine, that's not the issue, the issue is that its slow, sometimes. Whenever it's slow and the integration is reloaded, it will stop working. The API needs to respond within 10 seconds, that's the default timeout configured in the HA component/lib.
Did you change the integration to get it working? Doesn't seem like @frenck is responding, maybe he is on vaccation
No change at all, just lucky with the response time of the API call. Just call this in the browser: https://monitoringapi.solaredge.com/site/1234567/overview.json?api_key=KEY
If it's fast, reload the extension, then it should work.
No change at all, just lucky with the response time of the API call. Just call this in the browser: https://monitoringapi.solaredge.com/site/1234567/overview.json?api_key=KEY
If it's fast, reload the extension, then it should work.
Yeah I can hit that API endpoint no problem and get a response instantly, but the integration gets a 400 error every time for weeks now
Ah ok, I didn't see any status code, only that generic error.
I ended up integrating my SolarEdge system with Home Assistant using this very awesome tutorial.
Snags I hit:
- My inverter was connected to my network via a SolarEdge-supplied WiFi/ethernet adapter, which didn't allow communication to HA. I had to get it to connect directly to my WiFi using the Monitoring Communication setting on the inverter.
- For the bit near the end about adding the sensors, I had to use ChatGPT to reformat it (I'm no coder). My HA didn't like the original formatting.
- I couldn't get the Tesla-style power card working. I've added some simple sensor graphs to display the new sensors, but I'll keep trying.
No change at all, just lucky with the response time of the API call. Just call this in the browser: https://monitoringapi.solaredge.com/site/1234567/overview.json?api_key=KEY If it's fast, reload the extension, then it should work.
Yeah I can hit that API endpoint no problem and get a response instantly, but the integration gets a 400 error every time for weeks now
Hello, With the above link (https://monitoringapi.solaredge.com/site/1234567/overview.json?api_key=KEY) I get respons :
{"overview":{"lastUpdateTime":"2025-08-04 17:34:48","lifeTimeData":{"energy":2.8876884E7,"revenue":0.0},"lastYearData":{"energy":5198154.0},"lastMonthData":{"energy":179375.0},"lastDayData":{"energy":25415.0},"currentPower":{"power":1783.86},"measuredBy":""}}
However when trying to integrate with HA the integration just gives "Could not connect to the SolarEdge API" Is there any rules to what i put in the parameter: "The name of this installation" when I try to integrate it? I expect it to be anyfing like "Solaredge" or something..
Any inout on this issue? I cannot understand why I cannot connect with the Solaredge integration.