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

Make it possible to specify the inverter type when initializing the library, and bypass the discovery process. #138

Closed
wants to merge 4 commits into from

Conversation

brew-your-own
Copy link
Contributor

in the case where the Inverter type is already known.

Some inverters at the end of the REGISTRY (e.g. X1HybridGen4) randomly crash because the discovery code issues too many incorrect requests before sending the correct one.
This patch adds a variant of the entry point in which one can specify the name of the inverter type.

This addresses home-assistant/core#66617 and home-assistant/core#99421

in the case where the Inverter type is already known.

Some inverters at the end of the REGISTRY (e.g. X1HybridGen4) randomly
crash because the discovery code issues too many incorrect requests
before sending the correct one.
This patch adds a variant of the entry point in which one can specify
the name of the inverter type.

This addresses home-assistant/core#66617
and home-assistant/core#99421
@brew-your-own
Copy link
Contributor Author

brew-your-own commented Jan 21, 2024

This is similar to #133
I have not tried PR 133, if it solves the same problem then it is a simpler solution.

@brew-your-own
Copy link
Contributor Author

ok so we now have working solutions to bypass the discovery code: one in this PR, and another in #144

Which do you prefer?

I have a prototype solution to the downstream homeassistant problem that I would like to finish up and push.

@brew-your-own
Copy link
Contributor Author

I have tested #133 and I think it is a better solution: simpler / smaller. It works quite well in HA.
Closing this PR.

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.

1 participant