Tested with X1 - General support discussion #43
Replies: 105 comments 38 replies
-
Woohoo! That's awesome, great to hear. Shame it's a bit more difficult to set up though. You might be able to expose the inverter on your local network with a HTTP reverse-proxy on the PI. It seems like the library is detecting your X1 inverter as an X3 model - could you try making a POST request to
From what I can tell, the X1 is only a single phase inverter- having all the 'Grid Frequency Phase 3' etc values in the reply isn't correct. The sensor map for the X3 is defined here: https://github.com/squishykid/solax/blob/0.2.2/solax/inverter.py#L176 We should add another inverter to the project to make it nice and clean. |
Beta Was this translation helpful? Give feedback.
-
The Curl command was my starting point here. As they seem to ask for a authentication, which is completely bogus in the end. When I got the Curl working, thereafter I tested this module... nonetheless, having a more tailored comm is best for sure. Here's the JSON response:
From what I could see, the data now matches with the information on the solaxcloud app, seems ok, but I haven't check each value in detail. |
Beta Was this translation helpful? Give feedback.
-
if u pvt me I have some other info u might be interested as well. |
Beta Was this translation helpful? Give feedback.
-
I have a solax X1 and a X3 both with pocket lan cards, so I can do some testing as I also want to send the data to my HA platform. |
Beta Was this translation helpful? Give feedback.
-
@fverschure Does your Pocket Lan cards expose port 502? |
Beta Was this translation helpful? Give feedback.
-
@wills106 It doesnt look like 502 is exposed. I tried running a portscan and both cards do not seem to have any ports exposed below 1024... |
Beta Was this translation helpful? Give feedback.
-
@wills106: did you do anything to make the solax expose port 502? |
Beta Was this translation helpful? Give feedback.
-
No, but I am using the built in LAN and not a PocketLAN. Have you tried copying my setup on my GitHub? |
Beta Was this translation helpful? Give feedback.
-
@fverschure Did you manage to get it working? i have the same setup with two inverters but no ports are open.. |
Beta Was this translation helpful? Give feedback.
-
Hi, no unfortunately not. I am about to give up on this and work out a RS485 setup for reading out both of my inverters. It it insane that Solax disables local control... |
Beta Was this translation helpful? Give feedback.
-
I managed to get around it by using an emulator on my PC and monitoring the network traffic. While monitoring I found the url's that the API uses for the mobile app. So in hassio I make a RESTapi request and get all the data back. Underneath is a photo while it's almost dark. |
Beta Was this translation helpful? Give feedback.
-
Could you document this with some some detail? It may help some others as well. I will setup some monitoring ports on my switch to sniff devices. |
Beta Was this translation helpful? Give feedback.
-
If I have the time for it I will do some documentation. I tried a lot of things on my local network but nothing seemed to work, the inverters kept blocking me out. So I am indeed pulling the data from the solax servers just like the app does. |
Beta Was this translation helpful? Give feedback.
-
@fverschure In my experience some inverters need to be connected via Ethernet to access modbus/port 502. This is the case with the X hybrid (SK-TL5000E) I have access to. If you could draw a diagram with any inverters, ethernet cables, modems, ha instance and wifi cards, it will be easier to assist you. I am planning to add modbus support to the python library, as it seems that many inverters which rely on the pocket wifi card are very difficult to interface with over rest. See issue #5 and the references to '5.8.8.8' for example. |
Beta Was this translation helpful? Give feedback.
-
You can indeed obtain all the data via their api: |
Beta Was this translation helpful? Give feedback.
-
Okay so if I understand correctly, the values are still just coming from the solax server (china)? |
Beta Was this translation helpful? Give feedback.
-
I have an X1-Hybrid (connected via Ethernet) and an X1-Boost (connected with Pocket LAN). I can connect to the hybrid using Modbus TCP and read values in real time. But I cannot see the X1-Boost on my local network at all. It doesn't show up in my router and has no MAC address listed anywhere on the device. Does anyone know how I can find it? The data from it shows up on Solax Cloud no problem, but I can't get a local IP to try interface it. |
Beta Was this translation helpful? Give feedback.
-
Hello, nice to see that I'm not alone with the Solax (API) trouble. At the moment i play around with the API and I will document it here: https://github.com/Marvo2011/solar-meter-modbus/blob/main/SolaX%20Pocket%20Wifi%202.0%20API.md I have a SolaX X1 Mini 700W, here it looks like that Modbus does not work. |
Beta Was this translation helpful? Give feedback.
-
http://inverterip/?optType=ReadRealTimeData you have to do a POST request, see: |
Beta Was this translation helpful? Give feedback.
-
I followed @hugostegeman 's instructions and I was able to integrate my Solax inverter to my Node Red and Grafana. Here's what I made in case it helps someone:
I would've liked to have a local-only solution but I think this is sufficient for integration to Node Red and for a future integration with appliances over MQTT. I hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Hallo, vielleicht hilft dir das weiter. Ich habe einen X1-Boost/Air/Mini. Ich habe jetzt einen einfachen kleinen ESP-01 genommen, der verbindet sich mit dem Solax Wlan, holt Daten ab, verbindet sich danach mit meinem lokalen Wlan und sendet die Daten an meinen MQTT Broker. und wieder von vorn..... hier ist der Arduino Code (P.S. im Online Editor kann ich nicht übersetzen, kommen Fehler, Lokal geht es): |
Beta Was this translation helpful? Give feedback.
-
Hello. To those with the newer versions of the Pocket Wifi, the REST endpoint to fetch real time data changed. Now you must use the following cURL command: curl -d "optType=ReadRealTimeData&pwd=admin" -X POST http://ip. This will send a POST body with form encoded data. The newest version of python solax library already has support for this, but the HA integration does not, that's why it's not working. I already created a pull request for HA to support the password inclusion, let's hope it makes it into the next version. For those wondering, to get the local data access, you have to do one of two things:
I'm using the unlocked firmware and I can access the pocket wifi directly, without using the RPI as bridge. |
Beta Was this translation helpful? Give feedback.
-
I have an X1 Hybrid G4 with Pocket Wi-Fi running unlocked firmware. I confirm the Pi / Nginx solution is not required - the API and web interface is accessible on my LAN. Not happy that the Pocket Wi-Fi exposes an unsecured Wi-Fi access point - I've written to Solax about that. From the API I get 200 registers of data, which I'm currently throwing into Grafana, so I can hopefully work out what they mean, since they basically don't tie in at all with those defined here: https://github.com/wills106/homeassistant-config/blob/master/experimental/solax_test.yaml Anyone have any more info on the registers for the X1 Hybrid G4 / firmware 2.033.20? I also have an issue where I changed the password on the supplied firmware 2.034.06 from the default "admin" and now I can't change it again. Worse, the API stopped working. Even worse, I can't change the password any more - cryptic error "Save Config Error, please retry". Feels like something got bricked in the EEPROM. 2.034.06 requires authentication to get data from the REST API, 2.033.20 does not. (Just leave it off the querystring.) I got the REST API back by downgrading to 618.00122.00_Pocket_WIFI_V2.033.20_20190313_UNLOCKED.usb but now lots of the registers are zero that had values before, though we'll see what happens when it's next light. Any comment on the above? |
Beta Was this translation helpful? Give feedback.
-
I’ve switched to RS485 and
https://github.com/wills106/homsassistant-solax-modbus and it works
perfectly.
I’ll be ditching Solax Cloud / Pocket WiFi / Pocket Ethernet altogether
shortly. The presence of an open SSID on the Solax Pocket WiFi dongle is
too severe to tolerate long term.
…On Wed, 9 Feb 2022 at 21:55, Vadim Kraus ***@***.***> wrote:
@M0LTE <https://github.com/M0LTE> did you figure something out, yet?
Would be very interested in a mapping :)
Also, I found an alternative to the proxy solution. Once the Pocket Wifi
is connected to your network add a static route in your router for 5.8.8.8
forwarding the traffic to what ever your dhcp(best add a static mapping for
this aswell) has given the pocket wifi.
—
Reply to this email directly, view it on GitHub
<#43 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJAQNWCFEXRHVAVPU5QLWITU2LPGXANCNFSM5EKGSMUQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
It does not feel right that Solax can do that remotely without physical
intervention.
Really questioning the security model of this inverter.
I’d ditch the WiFi but I read you can’t fully utilise the RS485 interface
if it can’t reach the internet.
…On Tue, 12 Jul 2022 at 20:35, Rupert Nash ***@***.***> wrote:
I have had this problem too. I emailed SolaX support with my dongle serial
number and they reset the PW for me. They didn't state any requirements of
the PW, but I am using 8 random letters and numbers successfully.
—
Reply to this email directly, view it on GitHub
<#43 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJAQNWBD6XKLFY6WTPIIBC3VTXCJTANCNFSM5EKGSMUQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Then I lose access to some of the features of the RS485 interface,
apparently. I may test this theory.
The WiFi can be removed by just unplugging the WiFi dongle.
…On Tue, 12 Jul 2022 at 22:40, Vadim Kraus ***@***.***> wrote:
If you are not using the Webportal, you could create appropriate firewall
rules in your router, preventing access to and from the web. Which should
be done for any 'iot' thing anyways....
—
Reply to this email directly, view it on GitHub
<#43 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJAQNWGGW7KJ4U6YZRANFCLVTXQ3BANCNFSM5EKGSMUQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I just got an X1-Boost and tried setting this integration up, I have to pi set up correctly as going to the IP brings me to the solax inverter login page, however when starting HA, I get an error in the log:
When I try to curl or go to http://192.168.1.129/?optType=ReadRealTimeData I just get request url not found on this server, what am I doing wrong? |
Beta Was this translation helpful? Give feedback.
-
i have a X1 hybrid with wifi dongle. I want to get it to work with HA. Should i get a lan dongle, or is there a way of connecting HA to it yet? {"snxxxxxxxxxxxx","ver":"3.003.02","type":15,"Data":[0,0,0,0,0,0,0,0,0,0,0,13139,0,223,0,0,0,0,0,0,0,0,0,0,100,256,0,30,0,0,0,0,64891,65535,15134,1,143,1,645,0,0,0,0,0,0,0,0,0,0,0,0,1,10,0,13762,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3000,0,62536,65535,1660,0,426,0,0,0,0,232,0,0,0,0,120,0,100,0,0,0,0,0,0,6450,2070,5642,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,1,0,0,1,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":[5.000,15,"H4502TI3650260",8,1.26,0.00,1.23,1.04,0.00,1]} |
Beta Was this translation helpful? Give feedback.
-
You’re best off switching to RS485 and this integration:
https://github.com/wills106/homeassistant-solax-modbus
…On Sat, 8 Oct 2022 at 23:26, ukshark ***@***.***> wrote:
i have a X1 hybrid with wifi dongle. I want to get it to work with HA.
Should i get a lan dongle, or is there a way of connecting HA to it yet?
{"snxxxxxxxxxxxx","ver":"3.003.02","type":15,"Data":[0,0,0,0,0,0,0,0,0,0,0,13139,0,223,0,0,0,0,0,0,0,0,0,0,100,256,0,30,0,0,0,0,64891,65535,15134,1,143,1,645,0,0,0,0,0,0,0,0,0,0,0,0,1,10,0,13762,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3000,0,62536,65535,1660,0,426,0,0,0,0,232,0,0,0,0,120,0,100,0,0,0,0,0,0,6450,2070,5642,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,1,0,0,1,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":[5.000,15,"H4502TI3650260",8,1.26,0.00,1.23,1.04,0.00,1]}
—
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJAQNWE7XWHY4S4PX2WTTHLWCHRJRANCNFSM5EKGSMUQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Good to know, thanks. I’ll be finally trying this shortly.
…On Wed, 13 Jul 2022 at 19:36, wills106 ***@***.***> wrote:
You shouldn't loose any Functionality by using ModBus over RS485 or ModBus
over TCP (Only on Gen2 / Gen 3.
If you do, let me know and I can try and correct it.
—
Reply to this email directly, view it on GitHub
<#43 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJAQNWDHQXCZM4W4MQFIJBDVT35CRANCNFSM5EKGSMUQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi,
Just want to give you notice that I am testing this with the X1 and it works just fine, it is just a bit more freaky to reach him.
To talk to this one, using the "Pocket WIFI" version 2.0, the user need to connect into the Wifi generated by the dongle and query
http://5.8.8.8
-- the IP Address from the regular LAN won't accept requests, the address via LAN is used only to send information out to solarcloud.com, .. although the port 80 is open there, it seems to drop all the requests not coming from the network 5.8.8.x -- I also noticed that only one device can be connected to his local wifi network... as such... I connected my RPI via cable on my regular network and used the his embedded wifi to reach the Solax pocket wifi...It became even better, because then my RPI is locking access to the Solax WIFI and only me can exchange data with it...
The important part here, is that ur stuff also work on this other version. Thank you man! Now lets bind it with Openhab!
Beta Was this translation helpful? Give feedback.
All reactions