troygNZ / homebridge-solax

Homebridge Solax Monitoring
Apache License 2.0
7 stars 1 forks source link

Request to include solax cloud api #30

Closed HeuerJan closed 2 years ago

HeuerJan commented 3 years ago

Hi,

it would be great if solax cloud could also be used as a source as well. A api is available:

https://www.eu.solaxcloud.com/phoebus/resource/files/userGuide/Solax_API_for_End-user_V1.0.pdf

troygNZ commented 3 years ago

That's a great idea @HeuerJan - for whatever reason, my inverter doesn't allow me to sign-up to the cloud version, as it doesn't accept my serial number of the WiFi dongle. So have no easy way to develop and test this. If you were able to provision me a read-only type token to access your data (if happy with that), I could see what I can do?

HeuerJan commented 3 years ago

Do you have no access to the following page?

6B912894-C1B0-40E0-A46F-D5EE8BEBC5DF

troygNZ commented 3 years ago

Sadly no, as I can't create the account to get to that area. The demo account only shows the overview, and nothing else for me.

HeuerJan commented 3 years ago

Here is the JSON output that I receive from the API ( SN are changed )

{"exception":"Query success!","result":{"inverterSN":"H3DE3443664742","sn":"SE3HDOZZEN","acpower":435.0,"yieldtoday":1.0,"yieldtotal":5.6,"feedinpower":-21.0,"feedinenergy":3.29,"consumeenergy":9.14,"feedinpowerM2":0.0,"soc":63.0,"peps1":0.0,"peps2":0.0,"peps3":0.0,"inverterType":"5","inverterStatus":"102","uploadTime":"2021-02-24 12:38:34"},"success":true}

HeuerJan commented 3 years ago

And this is the URL that you need to use to fetch the above JSON The user would need to enter in the settings just the token and the inverter serial number. Both are available in the cloud.

https://www.eu.solaxcloud.com:9443/proxy/api/getRealtimeInfo.do?tokenId=< TOKEN String >&sn=< Inverter serial number>

That’s all I can provide. If it helps, I can test the hombridge plugin for you.

troygNZ commented 3 years ago

And this is the URL that you need to use to fetch the above JSON The user would need to enter in the settings just the token and the inverter serial number. Both are available in the cloud.

https://www.eu.solaxcloud.com:9443/proxy/api/getRealtimeInfo.do?tokenId=&sn=< Inverter serial number>

That’s all I can provide. If it helps, I can test the hombridge plugin for you.

Thanks, the sample reply itself will go a long way for me. Will likely make a start in about 10 days time (busy time of year for me)

HeuerJan commented 3 years ago

Be advised, that people with battery may have two inverter.

HeuerJan commented 3 years ago

The API output has been changed: (they added : batPower in/out and powerdc1 + powerdc2 ( solar cell output ) )

{"exception":"Query success!","result":{"inverterSN":"H3DE11111111111","sn":"SEXXXXXXXXXX","acpower":183.0,"yieldtoday":4.0,"yieldtotal":210.0,"feedinpower":-33.0,"feedinenergy":117.82,"consumeenergy":178.12,"feedinpowerM2":0.0,"soc":20.0,"peps1":0.0,"peps2":0.0,"peps3":0.0,"inverterType":"5","inverterStatus":"102","uploadTime":"2021-03-11 09:40:00","batPower":200.0,"powerdc1":242.0,"powerdc2":135.0},"success":true}

troygNZ commented 3 years ago

Thanks @HeuerJan . I haven’t had a chance to get my hands dirty with it yet, but thanks for the update, much appreciated.

HeuerJan commented 3 years ago

Any news? I would really appreciate a way to control for example our pool heater according to solax output. For this a adaption of your home bridge plug-in would be really appreciated.

I have in the meantime created a iOS app that uses the same api to show the data as a alternative to the solax cloud app: if you like to check out :

troygNZ commented 3 years ago

Any news? I would really appreciate a way to control for example our pool heater according to solax output. For this a adaption of your home bridge plug-in would be really appreciated.

I have in the meantime created a iOS app that uses the same api to show the data as a alternative to the solax cloud app: if you like to check out :

Hi, my apologies - it's definitely been on the forefront of my thoughts, but since the weekend I was planning on working on it, several things have changed in my life. It's still on my TODO list, but has fallen down my priority list.

In the interim, you're welcome to fork off of it if keen, and can I prioritise the time for review pull-requests. No biggie if not, it is something I'm wanting to get to.

AllMightySauron commented 2 years ago

Hi,

it would be great if solax cloud could also be used as a source as well. A api is available:

https://www.eu.solaxcloud.com/phoebus/resource/files/userGuide/Solax_API_for_End-user_V1.0.pdf

Hi @HeuerJan , feel free to try my Solax Cloud API homebridge plugin at https://github.com/AllMightySauron/homebride-solaxcloud-api.

troygNZ commented 2 years ago

Yeah sorry @HeuerJan it never happened, and given @AllMightySauron has done a stellar job of a cloud version, I'd reccomend checking his one out. He's recently added averaging algorithms to smooth out cloud cover variations etc, and exposes the values as light-meter values.