I am desparately looking for a possibility to connect or to read out my PV data and integrate in HA. After a long back and forth with the company who built my PV system I received the API documentation to obtain the data from the Slnergy server but I am struggling on how to get this built in HA. Is there maybe anyone out there who already has a similar solution?
The API requires OAUTH2 authorization.
Thank you
Jürgen
Hello @juergen_mayer,
If your Slnergy API uses OAuth2, you’ll need to set up a custom integration or use a REST sensor with token-based authentication in Home Assistant. Check if the API supports token refresh and use rest_command or command_line to fetch data. You might also explore this GitHub project for inspiration or adapt similar OAuth2 flows from other solar integrations. catmeow
Best Regards,
Clark Dahl
Thanks a lot for the swift answer. You are referring to a GitHub project but did not include a link. Could you please provide the link?
Thanks
Jürgen
Any news about this? It will be amazing to integrate Slenergy Inverters to Home Assistant.
Hi Jürgen,
did you get the data in HA ? Could you provide the api documentation please?
Best regards,
Christian
Hi Jürgen,
I had a similar problem with my Slenergy system. For me the right solution seems to use the modbus interface of the inverter. It is independent of any cloud services and makes the system more stable. I connected my inverter with a RS-485 to USB adapter to a micro PC to read and write the modbus registers via IO Broker. Currently I am trying to learn home assistant but I am still struggeling with the correct yaml config in order to write data such as the max and min SOC values.
Maybe it is an option for you or others who have been sold the Slenergy Inverter too.
Hi Diaak, can you give more info about this setup? I’m interesting in doing it but not sure how to move forward. How did you connect the inverter to the RS-485 adapter? Which connection from the Inverter did you use, is it a RJ45, I can’t find any.