Solarman API

When you have access to the Solarman API you can create your own custom projects or integrate things into HomeAssistant.


How to get access to the SolarMan API?

First register on: https://pro.solarmanpv.com/login


Contact Solarman

Contact Solarman by sending them an email: [email protected] and include the following information:

  • Are you an individual or business
  • The username of the https://pro.solarmanpv.com/login account you created
  • What phone app are you using to get the information from your data logger (I am using Solarman Business)

They will send you the API spec, a Postman Collection, as well as your APP ID and APP Secret.

Log into Solarman website (https://pro.solarmanpv.com/login) and in the address bar (the long URL) you will find your station ID

The numbers in the sections below correspond to the numbers in the Postman requests.


Request 2.1 Obtain Token for C END

curl --location --request POST 'https://api.solarmanpv.com/account/v1.0/token?appId=from_email&language=en' \
--header 'Content-Type: application/json' \
--data-raw '{
  "appSecret": "from_email",
  "email": "solarman webiste email",
  "password": "sha256 of website password"
}'

(Use the access token from this response to call the below)


Request 2.1 Obtain Token for B END

2.2 Business Relation. Use the companyID (orgID) returned from the above call and now call the below

curl --location --request POST 'https://api.solarmanpv.com/account/v1.0/token?appId=from_email&language=en' \
--header 'Content-Type: application/json' \
--data-raw '{
  "appSecret": "from_email",
  "email": "solarman webiste email",
  "password": "sha256 of website password",
  "orgId":from_above_call
}'

(Use this auth token and call the below)


Request 4.5 Obtain Real-time Data

Use the station ID you obtained by logging into the website and looking in the address bar.
This call will get you your realtime data.


Get inverter values in Home Assistant

If you want to get your inverter values into Home Assistant check out this Github Project: https://github.com/StephanJoubert/home_assistant_solarman


necrolingus

Tech enthusiast and home labber