When you have a Solax inverter with a wifi-dongle, the existing integrations do not apply. Via the Solax cloud and https://www.home-assistant.io/integrations/rest/ the inverter sensors can be imported. This is how I did it:
Solax Cloud
First create an account, log in and register your Solax inverter: https://www.solaxcloud.com/#/login
Inverter registration No.
https://www.solaxcloud.com/#/inverter
Note down the Inverter registration No. : SWXXXXXXX
API details
Obtain your API access details https://www.solaxcloud.com/#/api
and add the Inverter registration no:
https://www.nz.solaxcloud.com:9443/proxy/api/getRealtimeInfo.do?tokenId=202102060300yyyyyyy&sn=SWXXXXXXX
Test the link by copy/paste it into your browser, then you should see something like this:
{"exception":"Query success!","result":{"inverterSN":"XYYYYYYYYYY","sn":"SWXXXXXXX","acpower":67.0,"yieldtoday":0.0,"yieldtotal":2344.1,"feedinpower":0.0,"feedinenergy":0.0,"consumeenergy":0.0,"feedinpowerM2":0.0,"soc":0.0,"peps1":0.0,"peps2":0.0,"peps3":0.0,"inverterType":"4","inverterStatus":"102","uploadTime":"2021-02-07 10:10:31"},"success":true}
You can now enjoy a to celebrate this milestone
The Solax API documentation you can be found here: https://www.eu.solaxcloud.com/phoebus/resource/files/userGuide/Solax_API_for_End-user_V1.0.pdf?token=34f9f8d7-7577-49bf-a4b6-a307be242dc0&lang=en_US
Build the sensors in HA
#########################################################
# #
# SOLAX CLOUD. #
# #
#########################################################
sensors:
- platform: rest
resource: https://www.nz.solaxcloud.com:9443/proxy/api/getRealtimeInfo.do?tokenId=202102060300yyyyyyy&sn=SWXXXXXXX
value_template: '{{ ( value_json.result.yieldtotal | round(0) ) }}'
name: "Solax total"
unit_of_measurement: "KWh"
- platform: rest
resource: https://www.nz.solaxcloud.com:9443/proxy/api/getRealtimeInfo.do?tokenId=202102060300yyyyyyy&sn=SWXXXXXXX
value_template: '{{ ( value_json.result.acpower | round(0) ) }}'
name: "Solax now"
unit_of_measurement: "W"
- platform: rest
resource: https://www.nz.solaxcloud.com:9443/proxy/api/getRealtimeInfo.do?tokenId=202102060300yyyyyyy&sn=SWXXXXXXX
value_template: '{{ value_json.result.yieldtoday }}'
name: "Solax today"
unit_of_measurement: "KWh"
- platform: rest
resource: https://www.nz.solaxcloud.com:9443/proxy/api/getRealtimeInfo.do?tokenId=202102060300yyyyyyy&sn=SWXXXXXXX
value_template: "{{ value_json.result.uploadTime }}"
name: "Solax upload time"
- platform: rest
resource: https://www.nz.solaxcloud.com:9443/proxy/api/getRealtimeInfo.do?tokenId=202102060300yyyyyyy&sn=SWXXXXXXX
value_template: >
{% if value_json.result.inverterStatus == '100' %}Wait
{% elif value_json.result.inverterStatus == '101' %}Check
{% elif value_json.result.inverterStatus == '102' %}Normal
{% elif value_json.result.inverterStatus == '103' %}Fault
{% elif value_json.result.inverterStatus == '104' %}Permanent Fault
{% elif value_json.result.inverterStatus == '105' %}Update
{% elif value_json.result.inverterStatus == '106' %}EPS Check
{% elif value_json.result.inverterStatus == '107' %}EPS
{% elif value_json.result.inverterStatus == '108' %}Self-test
{% elif value_json.result.inverterStatus == '109' %}Idle
{% elif value_json.result.inverterStatus == '110' %}Standby
{% elif value_json.result.inverterStatus == '111' %}Pv Wake Up Bat
{% elif value_json.result.inverterStatus == '112' %}Gen Check
{% elif value_json.result.inverterStatus == '113' %}Gen Run
{% else %}I dont know{% endif %}
name: "Solax status"
#########################################################
# #
# END OF CONFIGURATION FILE #
# #
#########################################################
Restart HA and just add the new sensors:
Thatâs all