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

[mideaac] Initial contribution- second try #17749

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

Conversation

apella12
Copy link
Contributor

This is a second attempt. The first attempt is closed #17395. Essentially all of the previous comments have been addressed. The main new change is the separation of the connection manager and the MideaACHandler, (largely rewritten by @lsiepel) these two files are basically new. I have worked and tested with this version (made some modifications) for several weeks and it seems to work as well as the first attempt now. Also there were a number of new supporting files added by @lsiepel.

For reference the previous intro is here.
I’d like to put this out for new binding review.
This binding was started by the original author as a forum topic but has since had other contributors. I picked it up when I installed a mini-split AC that used the Midea protocol earlier this year, originally to allow for longer polling frequencies. Then as a retirement challenge (no formal java training), decided to attempt to clean it up for official status. I cleaned up the summary report from over 150 items and believe I conformed to current developer guidelines (Java docs, naming, tests, etc.). Along the way added some additional functionality and corrected some code issues.
The discovery and security classes remain largely unchanged from the original author (who I haven’t been able to contact), and work well. The other classes I understand pretty well at this point and hopefully can address any concerns.
As a note, to conform to the guidelines there are breaking changes in naming from the version I published on the forum thread.

Mideaac binding after partial PR review.  Main remaining issue is the connection manager which currently needs to be embedded in the MideaACHandler to leverage the OH base thing handler.
Signed-off-by: Bob Eckhoff <[email protected]>
Working (sort of) version of split connection manager. Problem with the connection manager being null when the binding is stop/start.  Need reset to clear with clean-cache too.
Signed-off-by: Bob Eckhoff <[email protected]>
After initial changes, tested various scenarios and made changes so they are working like before.

Signed-off-by: Bob Eckhoff <[email protected]>
forgot to run spotless on the last update

Signed-off-by: Bob Eckhoff <[email protected]>
Java doc and possible mdns discovery.

Signed-off-by: Bob Eckhoff <[email protected]>
spotless
Signed-off-by: Bob Eckhoff <[email protected]>
@apella12 apella12 requested a review from a team as a code owner November 15, 2024 15:08
@apella12 apella12 changed the title [Mideaac] Initial contribution- second try [mideaac] Initial contribution- second try Nov 15, 2024
@jlaur jlaur added the new binding If someone has started to work on a binding. For a new binding PR. label Nov 15, 2024
Makes retries more robust. Three times for connection and one retry on the command.
Signed-off-by: Bob Eckhoff <[email protected]>
Changed V2 response to align with V3 process after extra decoding.
Signed-off-by: Bob Eckhoff <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new binding If someone has started to work on a binding. For a new binding PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants