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
Implement newer RTU protocol of Growatt inverters #3315
Conversation
Newer growatt inverters use a different set of registers. This commit adds the possibility to select RTU2 protocol as used by those newer inverters. At least the MIC series, MIN se ries and MAX series. Default behavior is unchanged, so no breaking change. Select new protocol by adding to the growatt_solar section: protocol_version: RTU2
Hey there @leeuwte, mind taking a look at this pull request as it has been labeled with an integration ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just one minor change
Since there is a default for CONF_PROTOCOL_VERSION, no need to check for existence in the config. Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
Good point... Committed. |
What does this implement/fix?
Newer Growatt inverters use a different set of registers. This commit adds the possibility to select RTU2 protocol as used by those newer inverters. At least the MIC series, MIN series and MAX series.
Types of changes
Related issue or feature (if applicable): fixes esphome/issues#2997
Pull request in esphome-docs with documentation (if applicable): esphome/esphome-docs#1976
Test Environment
Example entry for
config.yaml
:Checklist:
tests/
folder).If user exposed functionality or configuration variables are added/changed: