-
-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Sudden peaks appearing in the measured data on Solax X3 G4 #1238
Comments
Seems that 2025.01.6 is not showing such sudden peaks, despite of short/random disconnections (at least based on this short test). Just wonder, is it due to the recent Python related changes and will this change maybe address it ? |
Hi Just want to state that I to have the same problem with random spikes. Im new to the integration, so have no history to cross check with. My Solar System is Growatt, running Modbus/TCP custom esp32, directly on the modbus com port. |
Anyone tried latest release 2025.01.9? Spike Problem solved? At the moment I am stuck at 2025.01.6 |
No, not yet.. I downgraded to 2025.01.6 yesterdays to check if that solved it temporary.. |
Hmm, so reverting back ;-( |
Just use /developer-tools/statistics and remove faulty values - it's better to do it the same day it happens, it's faster then. ;-) |
Thank you. I know the method. Unfortunately it is a bit time-consuming. |
So far 2025.01.6 is really working fine for me. @wills106 , any thoughts on that please ? |
Integration 2025.01.6 is using pyModbus 3.7.4 The developer of pyModbus is striving to make pyModbus more Modbus compliant, which many Data Loggers such as the SolaX PocketWiFi / PocketWiFi + LAN and the Sofar LSE-3 aren't. With the Sofar LSE-3 the latest firmware ME_0D_270A_1.11 made the Data Logger even more uncompliant, people are recommended to downgrade to ME_0D_270A_1.09. But even then they are still getting issues. I will be updating the documentation to recommend people to use a USB-RS485 or an Ethernet-RS485 device such as the Waveshare as these are less problematic, instead of these Data Loggers. It is possible that improvements could be made to the Integration using pyModbus 3.8.3 to improve things, but I own a single Inverter with built in Modbus over TCP. So I can't actively improve support for data loggers that aren't fully Modbus compliant, as I don't own one nor can I use one on my Inverter. |
Thank you @wills106 , I thought it was related to pyModbus ...however in my case, I use Wifi V3 LAN+Wifi dongle, accessing it via TCP Multiplexer on Solax X3 G4, worked very much fine last year. So not sure what do you mean with Data Loggers ? In my case, I can't use WaveShare RS485, haven been this route (even created some tickets some time ago) and never worked for me reliably, not sure why, but also was getting peaks. One of the reason could be that Wifi + RS485 basically creates two devices accessing the Modbus, not sure |
Hi @wills106 , Thanks |
I use WaveShare RS485 and have the peaks that did not exist until version 2025.01.6. In my case, the data is read with two end devices (Solax Modbus + EVCC) via Modbus proxy. I have seen that there have been no changes to the integration that could cause these spikes, it must actually be due to the new pyModbus version. |
pyModbus 3.8.3 is in HA core, it's been in there for about a month now. I try and keep the Integration matched with HA, as some users also use the HA Modbus client directly for Air source Heat Pumps etc. |
@wills106 and please your response to peaks on Solax / with Wifi Dongle V3 LAN+Wifi ? Those peaks were not there so it must be something with the library itself. I checked changelog, haven't seen anything obvious and also no "bug" planned to be fixed in the next version, but I'm not expert ;-( I hope it will not result into "dongle unsupported / not recommended" anymore ;-) |
Yesterday I connected the integration directly to the WaveShare RS485 adapter (without Modbus proxy) and since then I have had no more spikes. EVCC continues to run via Modbus proxy. |
Hi @wills106 , FYI - I can confirm that combination of pyModbus 3.8.3 with Solax X3 G4 connected via WLAN V3 dongle LAN+Wifi do not work well. Since I switched over to 2025.01.6 (back to pyModbus 3.7.4 ), the integration works perfectly like whole previous time. Since we know that the cause is pyModbus 3.8.3, is there anything else I can do to help troubleshoot this ? Perfect "curve" on 2025.01.6 (pyModbus 3.7.4) The changelog is pretty extensive since 3.7.4 but what could be causing this behavior ? And why there are not yet multiple reports like this one everywhere ? ...rhetorical question I'm asking myself. Asking "AI advisor", this is the view (I don't know if it's reasonable or not)
|
Just want to share I see peaks as well with plugin_sofar... |
Me too a few rare times at SolaX. |
I can also confirm this behavior with Qcell's Hyp-G3 (Solax X3 G4). Please take a look at the following information on troubleshooting > @wills106 : I suspect that there are data errors during retrieval that are not recognized. (no data checksum?) I thought it might be due to the change of operating mode (inverter check mode, last picture), but why would the battery data be going so crazy at that moment? Here are a couple of screenshots: |
Yes, I got same Errors at my system. The spikes must come from Integrantion blackouts, as Qcells/SolaX App History doesn't show any spikes ever. After each new start of HA, the pyModbus depricates error shows up once too ! Using Backup Mode during winter avoids inverter idle... and no heating if ideling. |
Describe the bug
Hi,
sudden anomalous peaks are appearing in the Solax integration data, most probably when inverted stops responding for a while. These spikes are not observed in other platforms like Homey (same sampling rate) or the Solax Cloud. The setup uses Modbus TCP via a Multiplexer and had been stable for months prior to the upgrades.
I thought it was caused by V3 Wifi+LAN dongle upgrade that was done remotely, which caused inverter to lock several times during the day, but after reverting it, the Lock issues are gone but the peaks remains.
While I have to clarify why modbus disconnects (visible on Homey logs) suddenly for a moment, is there some possibility to avoid such peaks ? Apologies if this would be some kind of HW failure on my side but trying to rule out everything.
Integration Version
2025.01.8 (testing now 2025.01.6 to see any difference)
Homeassistant core version
2025.1.4
Inverter brand
Solax X3 G4
Plugin used
plugin_solax.py
Serial prefix
H34A10
Inverter firmware versions
DSP v1.46 ARM v1.44
Connection Method
Solax Wifi+LAN adapter V3 with fw via LAN
Dongle firmware
1.003.11 (reverted as troubleshooting steps from 1.005.04 )
Detailed Error Log
Additional context
Note - around 9AM I upgraded firmware to DSP v1.46 ARM v1.44 as another troubleshooting step.
The text was updated successfully, but these errors were encountered: