Open S1lent-Gh0st opened 2 years ago
See also my issue #75 and PR #77
It may be possible to address both of these in the same code since both are G4.
Hi, my Solax X3-Hybrid-G4 inverter has a wifi module with firmware version 3.001.02. The interface is also available on a local IP address (eg 192.168..) in the format http://{IP}/ on port 80 with a POST request "optType=ReadRealTimeData&pwd={password}" where {password} is the SN of the module wifi. The data is in the format given in the first post and I think it exactly matches the QVOLTHYBG33P (and the inverter looks very similar too). However, I failed to install the SolaX Power integration, the installation ends with an Unexpected error. I "clumsily" wrote a yaml module that reads the data like this and it works - I took the liberty of attaching it. The word [54] in the Data section is probably the inverter temperature - measured on the heatsink.
Hi WikiHa, this is exactly what i need, does this script go into "automation" because when i add it, it errors with : Message malformed: extra keys not allowed @ data['0'] Im guessing im putting it in the wrong place (Still pretty new at HA sorry)
Edit: Think i sussed it, i added it to sensor.yaml and included it in configuration.yaml Edit: none of the output is correct, so guess my X1-Hybrid single phase, is a lot different in output :(
Hi, you can watch out for my PR #100 😉 , I am using it already with HA at my home.
Also works for X3 MIC G2 (output in night mode)
curl -d "optType=ReadRealTimeData&pwd=XYZ" -X POST http://192.168.0.191 {"sn":"XYZ","ver":"3.006.04","type":16,"Data":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,29,0,29,8000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,65108,65535,166,0,6967,0,0,384,1,36352,3,3841,256,15360,15369,29707,39435,0,0,0,0,0,0,0,0,0,0,0],"Information":[8.000,16,"XYZ",8,1.00,0.00,1.13,1.01,0.00,1]}
Can confirm it works for my inverter.
Hi,
stumbled over this post. So I do have a X3-Hybrid G4, which uses a WiFi Dongle with the Firmware-Version: 2.034.06.
I tried with following command to get some data: curl -d "optType=ReadRealTimeData&pwd=XYZ" -X POST http://5.8.8.8/
as password I tried:
As response I get following json:
0:code,message:"failed"}
When I do not pass a pwd I get a 401 Unauthorized response.
Anyone who can help me here.
If you need additional informations, don't hestitate to ask me.
Best regards,
Hi,
stumbled over this post. So I do have a X3-Hybrid G4, which uses a WiFi Dongle with the Firmware-Version: 2.034.06.
I tried with following command to get some data: curl -d "optType=ReadRealTimeData&pwd=XYZ" -X POST http://5.8.8.8/
as password I tried:
- admin (old password)
- my actual password which is used for basic auth
- SN Number of WiFi dongle
As response I get following json:
0:code,message:"failed"}
When I do not pass a pwd I get a 401 Unauthorized response.
Anyone who can help me here.
If you need additional informations, don't hestitate to ask me.
Best regards,
@98jan Hello, did you resolve mentioned issue? I have currently the same and my expectation is that the solax do not support REST API anymore.
Curl command:
curl -d "optType=ReadRealTimeData&pwd=SVXXXXXXXX" -X POST http://10.0.1.6
Output:{"sn":"SVXXXXXXXX","ver":"3.003.02","type":14,"Data":[2269,2213,2269,9,10,10,106,102,111,319,2932,2958,5,5,160,159,4996,4997,4996,2,0,0,0,0,0,0,0,0,0,0,0,0,0,1,54317,65535,0,0,0,30770,0,0,3063,0,0,1,48,11538,256,12308,5906,5639,100,0,37,0,0,0,0,0,0,0,0,0,0,0,0,0,1313,0,388,0,0,0,322,0,345,0,45,51,1342,0,406,0,0,0,26,0,4882,0,0,0,3339,0,0,0,0,0,0,0,0,0,1,9,1,33,8,256,3504,2400,264,162,266,225,32,32,4,1620,775,14135,14135,14135,0,0,0,3205,3191,18509,1,20564,12339,18497,12855,16695,12612,13616,20564,12339,18754,12595,16696,12612,12598,20564,12339,18754,12595,16691,13124,12854,20564,12339,18754,12595,16691,13124,13878,0,0,0,0,0,0,0,4098,259,1281,259,0,30770,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3584,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"Information":[8.000,14,"H34A08I3438010",8,1.18,0.00,1.17,1.08,0.00,1]}
FW: 3.001.02
Connection:
Proxy: 10.0.1.6:80
Solax: 5.8.8.8 (Wi-Fi dongle) via NAT:GW:10.0.1.2 -> 5.8.8.1 (Client mode: wifi_SVXXXXXXXX)
Logs:2022-07-24 09:46:30 WARNING (Thread-3) [matplotlib.font_manager] Matplotlib is building the font cache; this may take a moment.
Home Assistant version: core-2022.7.6 docker
I tried to write new inverter class with sensor map I found at https://github.com/home-assistant/core/issues/66617#issuecomment-1114612301
I didn't test the code since I'm newbie with HA and I don't know how to test it properly I also found out that there's a pull request that was closed by author for the same model https://github.com/squishykid/solax/pull/74 I don't know what's the reason for closing it since it seems to work (based on the comments) so maybe it would be worth checking it out.