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

[FR]: SolaX - Add support for X3-MIC with Serial Starting MU902T #1120

Open
CVKBaca opened this issue Nov 2, 2024 · 5 comments
Open

[FR]: SolaX - Add support for X3-MIC with Serial Starting MU902T #1120

CVKBaca opened this issue Nov 2, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@CVKBaca
Copy link

CVKBaca commented Nov 2, 2024

Description

Add suport inverter type Solax X3-MIC (model: X3-9.0-T-D) SN: MU902T

Suggested Solution

Hello It is posible add suport Solax X3-MIC sn MU902T******** mayby protocol is similar to other solax gen1.
Thanks

Alternatives

No response

Additional Context

Interface: Waveshare RS485 TO POE ETH (B)
image
Logger: homeassistant.config_entries
Zdroj: config_entries.py:594
Prvýkrát sa vyskytol: 08:32:58 (1 výskytov)
Naposledy prihlásený: 08:32:58

Error setting up entry SolaX for solax_modbus
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/solax_modbus/init.py", line 188, in async_setup_entry
await hub.async_init()
File "/config/custom_components/solax_modbus/init.py", line 329, in async_init
await asyncio.sleep(10)
File "/usr/local/lib/python3.12/asyncio/tasks.py", line 665, in sleep
return await future
^^^^^^^^^^^^
asyncio.exceptions.CancelledError

@CVKBaca CVKBaca added the enhancement New feature or request label Nov 2, 2024
@CVKBaca
Copy link
Author

CVKBaca commented Nov 4, 2024

With ARM firmware version 1.38 and after editing the files plugin_solax.py and plugin_solax.cpython-312.pyc, I got Modbus communication up and running.
I added the following piece of code to plugin_solax.py:

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

I added the following to the plugin_solax.cpython-312.pyc file, although I'm not sure if it was necessary. :)
image

The result is as follows. The only sensor that didn’t load and isn’t working yet is the RTC sensor.
image
image

@wills106
Copy link
Owner

Do you perhaps need to first sync the RTC for it to return values?

@CVKBaca
Copy link
Author

CVKBaca commented Nov 17, 2024

Do you perhaps need to first sync the RTC for it to return values?

Yes, of course, I tried that, but the result is the same. However, this sensor is not essential. All other sensors are working correctly.

@Kars-de-Jong
Copy link
Contributor

The RTC registers all read back as 0 on my X3-MIC as well (model: X3-8.0-T-D).
Firmware was upgraded last week, made no difference.

@Kars-de-Jong
Copy link
Contributor

Kars-de-Jong commented Nov 25, 2024

Now that I am simulating a meter, I found that some sensors are wrongly configured for the X3-MIC Gen1. The meter power is treated as inverter power, and the inverter power (total and separate phases) are treated as measured power.
Obviously, this also causes the grid import and grid export sensors to be wrong.
Unfortunately changing this will be a breaking change (unless some kind of migration can be done).

See PR #1154.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants