Can't get SolarEdge API and HA to communicate

I have been an HA user since about three days ago. Just learning.

I carefully logged in at the SolarEdge monitor web site, and carefully copied the Site Name (three words) and the Site ID (seven numerical digits). The API was already turned on and I carefully copied the API key. I then went into “Integrations” and clicked on “+ add integration” and picked “SolarEdge”. This brought up two choices:

  • SolarEdge with a globe, and
  • SolarEdge local with two angle brackets <>.

I picked “SolarEdge with a globe”. What popped up is a window “Define the API parameters for this installation” asking me to complete three fields:

  • The name of this installation
  • The SolarEdge site ID
  • API key

The first field (the name of this installation) was pre-populated with “SolarEdge”. I left that unchanged and pasted in the Site ID and API key and clicked “submit”. What then showed up was a red error message:
Could not connect to the SolarEdge API
So then I tried pasting my Site Name (the three words) into the first field. I tried once again to click “submit”. What then showed up again was the same red error message:
Could not connect to the SolarEdge API
What is unfortunate is that the integration fails to say whether the “failure to connect” was my fault or somebody else’s fault. Did it “fail to connect” because I entered one or more of the three fields incorrectly? Or did it “fail to connect” because there was something wrong with the Solaredge system?

Yes I know that another option for some HA users is to try to connect using “Solaredge local with two angle brackets”. I will also try that.

I welcome any help that anyone can offer.

One quick check would be to open up a browser and enter:
https://monitoringapi.solaredge.com/site/YOUR_SITE_ID/overview.json?api_key=YOUR_API_KEY
And see if you get any json data back. If not then it probably means something about your account at the SolarEdge cloud is not set up properly.

Thank you very much for posting. Thanks to you I just now tried to do the “overview.json” test. And as you suspect it might, the test failed for me. What I got back was:

{“String”:“User is not authorized to access: /site/YOUR_SITE_ID/overview.json”}

This prompted me to go back and reread the
SolarEdge Monitoring Server API manual to see what I might have done wrong. At pages 5-6, the manual details two ways to get an API key:

  • account users API key
  • site API key

So far as I can see, of those two paths the only path I am able to do is “account users API key”. So that is what I did to get my API key. And when I use my site ID along with that API key, I get the “not authorized to access” result. I wonder what I did wrong?

{“String”:“Invalid token”}

I am also unable to set this up local, modbus multi any way i’ve tried it gives errors out.