-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
base: main
Are you sure you want to change the base?
Conversation
8fae5fa
to
44bb90f
Compare
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]>
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]>
Changed version and changed dates (in advance-hopefully ok) Signed-off-by: Bob Eckhoff <[email protected]>
Changing dates early was a bad idea Signed-off-by: Bob Eckhoff <[email protected]>
This reverts commit 44bb90f. Signed-off-by: Bob Eckhoff <[email protected]>
4ef6b08
to
071c1e7
Compare
This is not forgotten, the time I have to spare is consumed by the ZUI binding at the moment. So don’t wait for me. |
@lsiepel Well I'm not really waiting. I'm working on other things too. There shouldn't be much to review after you rewrote the connection manager. I did a few things to make it more robust to run without the A/C connected to the cloud and fixed some things that you left hanging. I have had it polling for months without issues. It is not exactly A/C season, so no one is exactly clamoring for an update. Hopefully you or someone else can have a look in a couple of months as we get towards spring. EDIT: I did update the version to OH5 and change the date to 2025 in the headers |
Change to new Headers Signed-off-by: Bob Eckhoff <[email protected]>
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.