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

Add modbus support #5

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Conversation

MichaelErmer
Copy link

@MichaelErmer MichaelErmer commented Mar 8, 2023

This PR introduces modbus support to the dbus adapter, modbus should work for x1 and x3 devices, the original cloud connection still works as before if the modbus section is omited from the config.

I also changed the config syntax to support multiple phases, there is a config template in the repository, so users have to copy and adapt the settings for themselves.

This is probably the most stable and secure way to use the solax inverter, its also fully non.-cloud and has no dependencies besides 2 wires that can be of almost unlimited length.

This should also work for X1. You will get much faster update rates and can also read / log the power for each string.

image

Some of my findings can be found here, eg. how the modbus adapter is created from an rj45 cable: https://wiki.ermer.dev/en/ess/solax-x3-mic

Changes:

  • feat(modbus): add modbus features
  • feat(app): add 3phase support
  • feat(config): move to template

@MichaelErmer MichaelErmer force-pushed the main branch 5 times, most recently from 75e7766 to fc19080 Compare March 9, 2023 17:06
@MichaelErmer MichaelErmer force-pushed the main branch 2 times, most recently from 9048776 to 58c4961 Compare March 9, 2023 22:21
@fabian-lauer
Copy link
Owner

Hi @MichaelErmer,

I can't apply this pull request as I created this repository for usage with CebroGX device and at least the changes in the install script "calling pip" would not work as the command is included in the version of CebroGX.

As I see you have setup your own repo (https://github.com/MichaelErmer/dbus-solax-x-pvinverter) - would say it is best to add a link in the readme of this project if someone is interested in modbus-version (also still have not connected my X1 via modbus).

Fine for you?

@MichaelErmer
Copy link
Author

Hi,
I'm also running this on a cerbo, are you sure the pip fails for you?

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

Successfully merging this pull request may close these issues.

2 participants