Skip to content
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]: Integration not working with any version after 2024.09.5 / all entities unknown #1180

Open
ggliniak opened this issue Dec 27, 2024 · 12 comments
Labels
bug Something isn't working solax

Comments

@ggliniak
Copy link

Describe the bug

Hi,
after upgrading to 2024.10.1 this integration stopped working in my installation. Absolutely no changes to my modbus or inverter configuration.
I waited some weeks and did a try to each update, also to the newest 2024.12.2 yesterday, same behavior.
(did all the known steps like removing integration completely, restarting HA, doing it when inverter is well PV powered, and so on)

Modbus communiation is working rock-solid (Schneider Electric PAS600 as modbus gateway).
Each time after downgrading to 2024.09.5 integration is starting to work immediately again (although in night time when inverter is asleep).

Noticed that newer versions (>2024.09.5) can read my serial via modbus but are NOT reading the full firmware informations, see attached screenshots.

Is this a known behavior and I was not able to find the solution it here in the documentation? If yes, please give me a hint! ;-)
Or is this a new situation?

Best regards, Georg

Integration Version

2024.12.2

Homeassistant core version

2024.12.5

Inverter brand

Solax X3-MIC Gen2

Plugin used

plugin_solax.py

Serial prefix

MC206T

Inverter firmware versions

ARM v1.111 DSP v1.115

Connection Method

Modbus via external gateway (Schneider Electric PAS6000)

Dongle firmware

Schneider Electric PAS6000 Panel Server (modbus gateway)

Detailed Error Log

IMG_9197
IMG_9193

Additional context

No response

@ggliniak ggliniak added bug Something isn't working solax labels Dec 27, 2024
@dirk79
Copy link

dirk79 commented Dec 27, 2024

I have exactly the same situation here. Waiting for an update ...
Tried to delete the integration, shut down the inverter, disconnected modbus cable. No way to get it working again.

Best,
Dirk

@Reinhard-M
Copy link

Reinhard-M commented Dec 28, 2024

The same applies to me. The hardware and serial number are still recognized, but the FW versions and all settings or values ​​are missing.
Screenshot 2024-12-28 085632

@Reinhard-M
Copy link

Update:
It is possible to change registers or switch the system on and off via "Solax Modbus". Tested, for example, with the PGRIDBIAS register. However, it is not possible to read any data, not even the registers that were changed for test purposes.

@dirk79
Copy link

dirk79 commented Jan 12, 2025

@wills106
Thank you for the amazing work with this integration!
Unfortunately I can't use the September release since 2025 HA Core is installed.
Do you have any idea how we could resolve this?

@ggliniak
Copy link
Author

ggliniak commented Jan 12, 2025

Hi @wills106
I would like to join in the thanks! :)
Seems something is broken with GEN2 in plugin_solax.py

I searched a couple of time now with a diff between 2024.09.5/plugin_solax.py and 2025.01.6/plugin_solax.py but I am not able to find the affecting position in code. :(

Just did a small test and changed "GEN2" to "GEN" at this position in plugin_solax.py:

        elif seriesnumber.startswith('MC206T'):
            invertertype = MIC | GEN | X3 # MIC X3
            self.inverter_model = "X3-MIC"

Most of my entities (and the Hardware/Firmware Version) came back working again after restart.
But I can not really understand why this works, because in 2024.09.5 (the last out-of-the-box working version in my environment) the definition for "MC206" already was "GEN2"...

Maybe you or somebody can assist a bit, problem solution can not be far away. :)

Best regards

@dirk79
Copy link

dirk79 commented Jan 12, 2025

Crazy thing Georg!
I did the same change and about 90% of the values are available now. 😀
Hopefully this helps Wills106 to fix this soon 👍

@ggliniak
Copy link
Author

@dirk79
yes, checked it again but the entities are a bit wild sorted. Run mode and Temp is fine, some other seem to have wrong scale or something. Also my firmware and hardware version is shown again, but completely different to the values shown in last out-of-the-box running version (2024.05.9) in my environment. ;)

@dirk79
Copy link

dirk79 commented Jan 12, 2025

@wills106
If it helps, here are my Inverter details:
Model: X3-MIC-5K-G2
Serial starts with: MC205T...

@ggliniak
My Todays Yield was 4.0kWh - according to the Scale (after changing to GEN instead of GEN2) it shows 0.04kWh in HA now. As far as I could see, the register address is the same for GEN and GEN2. See lines 6729 and 6757.
I'm out for today.

@ggliniak
Copy link
Author

ggliniak commented Jan 12, 2025

@dirk79
Had today 6kWh and with changed to "GEN" same like you, entity shows 0,06kWh.
Total Yield is still unknown, but I can read all the registers through my Modbuy gateway directly.

@ggliniak
Copy link
Author

With some help and some dirty code changes I got it back running again with .
Maybe our problems depend on old firmware or any other limitations in MIC GEN2...

I learned that it is not possible to read a very big register block on my inverter like the Integration is doing in the actual version, so I splitted them a bit and also there seems that "Export Power Limit" is not readable on my device, also not manually. That caused the unknown entities du to a modbus exeption.

diff Downloads/homeassistant-solax-modbus-2025.01.6/custom_components/solax_modbus/plugin_solax.py plugin_solax.py

6385a6386,6387
> 	newblock=True,
> 	ignore_readerror=True,
6392a6395,6396
> 	newblock=True,
> 	ignore_readerror=True,

@dirk79
Copy link

dirk79 commented Jan 13, 2025

Thank you for sharing! I'm on a business trip till the end of the week. I'll give it a try when I'm back.

@yuso08
Copy link

yuso08 commented Jan 15, 2025

Hi @wills106 I would like to join in the thanks! :) Seems something is broken with GEN2 in plugin_solax.py

I searched a couple of time now with a diff between 2024.09.5/plugin_solax.py and 2025.01.6/plugin_solax.py but I am not able to find the affecting position in code. :(

Just did a small test and changed "GEN2" to "GEN" at this position in plugin_solax.py:

        elif seriesnumber.startswith('MC206T'):
            invertertype = MIC | GEN | X3 # MIC X3
            self.inverter_model = "X3-MIC"

Most of my entities (and the Hardware/Firmware Version) came back working again after restart. But I can not really understand why this works, because in 2024.09.5 (the last out-of-the-box working version in my environment) the definition for "MC206" already was "GEN2"...

Maybe you or somebody can assist a bit, problem solution can not be far away. :)

Best regards

This worked for me thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working solax
Projects
None yet
Development

No branches or pull requests

4 participants