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

[haywardomnilogic] Replacement for Hayward Omnilogic Pool Automation Binding #8685

Merged
merged 45 commits into from
Jan 22, 2021
Merged

[haywardomnilogic] Replacement for Hayward Omnilogic Pool Automation Binding #8685

merged 45 commits into from
Jan 22, 2021

Conversation

matchews
Copy link
Contributor

@matchews matchews commented Oct 7, 2020

This PR is a replacement for PR #8338 , which was submitted against the 2.5.x branch. The 2.5.x version of the binding has been reviewed by @Hilbrand and @fwolter . There are still a couple open issues and changes that are awaiting review by @Hilbrand .

Background
Hayward Omnilogic binding initial contribution
The Hayward Omnilogic binding integrates the Hayward Omnilogic pool controller using the Hayward API.

Forum discussion can be found here.

Signed-off-by: Matt Myers mmyers75@icloud.com

@matchews matchews requested a review from a team as a code owner October 7, 2020 17:24
@TravisBuddy
Copy link

Travis tests were successful

Hey @matchews,
we found no major flaws with your code. Still you might want to look at this logfile, as we usually suggest some optional improvements.

@fwolter fwolter added the new binding If someone has started to work on a binding. For a new binding PR. label Oct 8, 2020
@matchews
Copy link
Contributor Author

@Hilbrand, Is there an issue with the status checks? It seems that this PR is stuck. If it is in the review queue, my apologies. I know you guys are busy.

Thanks!

@matchews
Copy link
Contributor Author

I can't seem to correct the commit failing the DCO. I tried rebasing it a couple times with no luck. Any pointers would be appreciated. I'm still new to git. Thx.

@fwolter
Copy link
Member

fwolter commented Nov 11, 2020

When you click on the DCO check "Details", the neccessary commands are listed.

@matchews
Copy link
Contributor Author

When you click on the DCO check "Details", the neccessary commands are listed.

I tried that. From what I understand, the -amend command only applies to the last commit made.

@fwolter
Copy link
Member

fwolter commented Nov 11, 2020

You did a strange merge in your branch. Now the commit in question exists twice in the history. One signed-off and the other don't. This might confuse the DCO check and I didn't manage to sign it off either. We can force the DCO check to pass before merging.

Better use rebase instead of merge in PRs.

Copy link
Contributor

@cpmeister cpmeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for being so patient.
I've starting to get a bit concerned about what kind of performance impact your use of xpath will cause. Most OH users typically run on slower hardware so performance should be among the higher priorities.
Have you considered parsing the xml into a java class through one of the dom parsers? I feel that would be much faster than repeated use of xpath. WDYT?

@matchews
Copy link
Contributor Author

m parsers? I feel that would be much faster than repeated use of xpath. WDYT?

I took a shot at implementing the Java DOM parser, which works fine, but the subsequent operations required to search through the document are turning out to be pretty ugly. If the elements were unique, this approach would work great, but due to most elements being duplicates (i.e. systemID) the code will require numerous nested loops to search through the document to find the Thing first (Heater), then followed by the systemID, then followed by the data. Ultimately I can make this work, but I'm not finding an elegant way to implement.

Copy link
Member

@fwolter fwolter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You code doesn't compile because there are several author tags missing.

@matchews
Copy link
Contributor Author

You code doesn't compile because there are several author tags missing.
Thanks for all of the input and being patient with my learning curve. Regarding the author tags, I was asked to remove these. I assumed the code checks hadn't been updated yet. Let me know how to proceed.
#8685 (comment)

@fwolter
Copy link
Member

fwolter commented Dec 30, 2020

Sorry for the misunderstanding. The author tag in the binding.xml is deprecated, but the author tags in the source files are not.

@fwolter
Copy link
Member

fwolter commented Jan 4, 2021

Are you finished making all changes?

@matchews matchews requested a review from fwolter January 4, 2021 21:38
@matchews
Copy link
Contributor Author

matchews commented Jan 4, 2021

Are you finished making all changes?

Yes. I just re-requested a review. Thx.

@matchews matchews requested a review from fwolter January 6, 2021 01:34
Copy link
Member

@fwolter fwolter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please stop adding any new features to this PR. When this is merged, you can file a new PR.

@matchews
Copy link
Contributor Author

matchews commented Jan 6, 2021

Please stop adding any new features to this PR. When this is merged, you can file a new PR.

Understood. I found a glaring temperature conversion error.

@matchews matchews requested a review from fwolter January 6, 2021 22:52
Copy link
Member

@fwolter fwolter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Since this is a new binding, another maintainer needs to review your code before it can be merged.

@fwolter fwolter added the cre Coordinated Review Effort label Jan 9, 2021
Signed-off-by: matchews <mmyers75@icloud.com>
Signed-off-by: matchews <mmyers75@icloud.com>
Signed-off-by: matchews <mmyers75@icloud.com>
Signed-off-by: matchews <mmyers75@icloud.com>
Signed-off-by: matchews <mmyers75@icloud.com>
Signed-off-by: matchews <mmyers75@icloud.com>
Signed-off-by: matchews <mmyers75@icloud.com>
Signed-off-by: matchews <mmyers75@icloud.com>
Signed-off-by: matchews <mmyers75@icloud.com>
…initions

Signed-off-by: matchews <mmyers75@icloud.com>
…and HaywardException from mspConfigDiscovery

Signed-off-by: matchews <mmyers75@icloud.com>
Signed-off-by: matchews <mmyers75@icloud.com>
Signed-off-by: matchews <mmyers75@icloud.com>
Signed-off-by: matchews <mmyers75@icloud.com>
Signed-off-by: matchews <mmyers75@icloud.com>
Signed-off-by: matchews <mmyers75@icloud.com>
…parameter

Signed-off-by: matchews <mmyers75@icloud.com>
Signed-off-by: matchews <mmyers75@icloud.com>
Signed-off-by: matchews <mmyers75@icloud.com>
@matchews
Copy link
Contributor Author

Final cleanup.

Thank you for all of your help!

@wborn wborn added rebuild Triggers Jenkins PR build and removed rebuild Triggers Jenkins PR build labels Jan 22, 2021
@cpmeister cpmeister merged commit ab290c5 into openhab:main Jan 22, 2021
@cpmeister cpmeister added this to the 3.1 milestone Jan 22, 2021
lsiepel added a commit to lsiepel/openhab-addons that referenced this pull request Feb 9, 2021
themillhousegroup pushed a commit to themillhousegroup/openhab2-addons that referenced this pull request May 10, 2021
…Binding (openhab#8685)

* Initial Contribution

Signed-off-by: Matt Myers <mmyers75@icloud.com>
Signed-off-by: John Marshall <john.marshall.au@gmail.com>
thinkingstone pushed a commit to thinkingstone/openhab-addons that referenced this pull request Nov 7, 2021
…Binding (openhab#8685)

* Initial Contribution

Signed-off-by: Matt Myers <mmyers75@icloud.com>
marcfischerboschio pushed a commit to bosch-io/openhab-addons that referenced this pull request May 5, 2022
…Binding (openhab#8685)

* Initial Contribution

Signed-off-by: Matt Myers <mmyers75@icloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cre Coordinated Review Effort 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.

6 participants