Solax hybrid inverter

matthewjporter this is a really interesting work i’ will try on my inverter to see.

My question is. The flow of the process is : Take data from Solax inverter --> send to emoncms --> get data from emoncms ->> and finally convert these data for hassio.

Why we can not do simply this flow: Take data from Solax inverter–>> convert the data for Hassio.

is emoncms really needed ?

**

Hi Andreas68,
i can reach my inverter via ip/api/realTimeData.htm,
but when using your html page (with styles.css), it says “no connection”.
i’ve opened your html page (changed only my inverter’s ip), with firefox and chrome (on a mac),
but it still give me the “no connection” error, and can’t get data out.
Thank you

The reason is the high web security of the Browsers. My html page uses a data access with javascript (not directly if you type the URL into the Browser). This cross Access is a security risk. So you Need to decrease the security Level of your browser. For Chrome you have to start Chrome with “–disable-web-security” Parameter.

ok thanks, i have trouble anyway also opening chrome and disabling web security.
could you explain how to manipulate the data obtained from http://ipinverter/api/realTimeData.htm ?
i was thinking, that i could do a simple “curl http://ipinverter/api/realTimeData.htm” and with some greps and logic operator, i could extract those value and put them into right field (battery percentage/ current/ voltage etc etc).
Thank you!

Hi marcosun

Sorry for the delay in responding, I have been overseas on work

As far as I know it has to do with the stream that comes from the inverters and hassio does not have a component to convert it whereas emoncms not only can understands it, but also has the component for hassio that presents senors and the data

It would be great if someone out there could write the “Solax” component for hassio as I would like to keep my data in house especially now they have decided to move to a paid model per feed, although not to expensive would still like to be local or if we could install emoncms into hassio and run locally, but I have not found a way to do this unless I go for a separate PI or run full homeassistant

No it’s not. I used node-red. I’ll tidy up the code and post it in the next few days. Thanks to all above for the info provided so far!

Update! Code put under this post:

You need to install node-red and have an MQTT broker. There may be a better way of doing it but I’m really not that great with code.

2 Likes

I have a Solutronic solplus 100 inverter which is also connected through ethernet to the router. Would I be capable of using the same approach for that or how should implement it in my system.
It has a static IP address and there is an app integration to the phone presenting the data from the inverter.

Hi @Rasser,

you may be able to. You need to find the url for the JSON object. If you look at the code on the other post (referenced above), it has a URL. if you type that in a browser and get a JSON string back, you can use this code. If there is no JSOn string, you’ll need to find a Url that works on your inverter to pull the data from.

I don’t know how people find those kinds of API’s unless it’s trial and error…

Hi , someone of you maybe know how many data, Solax Hybrid send to the Solax Portal each time . I suppose every 5 minutes. thanks

Min is every 5 min

Hi, thanks, but i mean, how many data it sends? in byte or kbyte

Having just installed a new Solax X1 Boost inverter, I tried all the different methods to access the json data url.

It seems that Solax has changed this and to access it now you need to be connected to the inverter wifi and use the following url:

http://5.8.8.8:80/?optType=ReadRealTimeData

This will give a json response like this:

{“type”:“X1-Boost-Air-Mini”,“SN”:“XXXXXXXXXX”,“ver”:“2.32.6”,“Data”:[0.0,0.0,60.8,124.8,0.0,247.8,0,32,2.6,25.1,0,0,10,0.00,0.00,0,0,0,0.0,0.0,0.00,0.00,0,0,0,0.0,0.0,0.
00,0.00,0,0,0,0.0,0.0,0,0,0,0,0,0,0,0.00,0.00,0,0,0,0,0,0,0,49.98,0,0,0,0,0,0,0,0,0,0.00,0,8,0,0,0.00,0,8,2],“Information”:[3.000,4,“X1-Boost-Air-Mini”,“XXXXXXXXXXXXXX”,
1,3.24,1.09,1.10,0.00]}

I have removed the serial number for the wifi adapter and inverter.

Data appears to be in same format as here: https://github.com/GitHobi/solax/wiki/direct-data-retrieval

1 Like

Hi All

There is now a solax component in homeassistant, I am currently testing it out.

Looks to only support one inverter, although more can be included but it does not distinguise between the different inverters

I have posted an issue regarding one of the sensor reading being wrongly identified but its a very good start

As its included as a component, noy yaml sensor entries etc, just 3 lines on the config and a few in a template

1 Like

Hello!

Since a week I got my Hybrid inverter running. I´m using the pocket Wifi from Solax and I can´t get it to work with HomeAssistant. It seems the inverter is only accessible thru its on Wifi. What am I doing wrong? I don’t get any data except with the local login from the cloudapp. Help!

BR

/Reik

so you have attached it to your wifi - right
you can connect to the web interface and see firmware, modle etc - right
you can log into the solax online portal and getting al your inverter stats - right

Can you goto http://INVERTERIP/api/historyData.htm & http://INVERTERIP/api/realTimeData.htm

I can login to 5.8.8.8. if connected to the inverters WiFi. But I get nothing on the http://5.8.8.8:80/?optType=ReadRealTimeData or with the IP from my own network. The firmware of my Pocket WiFi is 2.33.7 and I believe the api is changed or removed.

@4x4falcon is it possible to connect the inverter to your home wifi and still access the API?

@squishykid No. The inverter is connected to the home wifi but if I try to access it in any way it requests username and password. I’ve tried every username password combination I can think of and nothing works. What i’ve done is written a script for my Raspberry Pi weather station that’s close to the inverter and use it to access the inverter ap. The Raspberry Pi is connected to the home network by ethernet.

@Reik this might help you connect HA to your X1: https://github.com/squishykid/solax/issues/13

Hi, I’m trying to find a solution for showing actual information and data history from X3 hybrid for Fibaro. I’m willing to pay for learning, how to track a communication from Solax to HC 2 (virtual device). It doesn’t matter if use Raspberry or take communication from cloud.
Many thanks
@roy13
Sam