-
-
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
[haywardomnilogic] Replacement for Hayward Omnilogic Pool Automation Binding #8685
[haywardomnilogic] Replacement for Hayward Omnilogic Pool Automation Binding #8685
Conversation
Travis tests were successfulHey @matchews, |
@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! |
...ilogic/src/main/java/org/openhab/binding/haywardomnilogic/internal/HaywardTypeToRequest.java
Outdated
Show resolved
Hide resolved
...nilogic/src/main/java/org/openhab/binding/haywardomnilogic/internal/HaywardThingHandler.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.haywardomnilogic/src/main/resources/OH-INF/thing/pump.xml
Outdated
Show resolved
Hide resolved
...nilogic/src/main/java/org/openhab/binding/haywardomnilogic/internal/HaywardThingHandler.java
Outdated
Show resolved
Hide resolved
...in/java/org/openhab/binding/haywardomnilogic/internal/discovery/HaywardDiscoveryService.java
Outdated
Show resolved
Hide resolved
...in/java/org/openhab/binding/haywardomnilogic/internal/discovery/HaywardDiscoveryService.java
Outdated
Show resolved
Hide resolved
...in/java/org/openhab/binding/haywardomnilogic/internal/discovery/HaywardDiscoveryService.java
Outdated
Show resolved
Hide resolved
...gic/src/main/java/org/openhab/binding/haywardomnilogic/internal/HaywardBindingConstants.java
Outdated
Show resolved
Hide resolved
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. |
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. |
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. |
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.
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?
...gic/src/main/java/org/openhab/binding/haywardomnilogic/internal/HaywardBindingConstants.java
Outdated
Show resolved
Hide resolved
...gic/src/main/java/org/openhab/binding/haywardomnilogic/internal/HaywardBindingConstants.java
Outdated
Show resolved
Hide resolved
.../java/org/openhab/binding/haywardomnilogic/internal/handler/HaywardVirtualHeaterHandler.java
Outdated
Show resolved
Hide resolved
...gic/src/main/java/org/openhab/binding/haywardomnilogic/internal/HaywardBindingConstants.java
Outdated
Show resolved
Hide resolved
.../main/java/org/openhab/binding/haywardomnilogic/internal/handler/HaywardBackyardHandler.java
Outdated
Show resolved
Hide resolved
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. |
...in/java/org/openhab/binding/haywardomnilogic/internal/discovery/HaywardDiscoveryService.java
Outdated
Show resolved
Hide resolved
...in/java/org/openhab/binding/haywardomnilogic/internal/discovery/HaywardDiscoveryService.java
Outdated
Show resolved
Hide resolved
...in/java/org/openhab/binding/haywardomnilogic/internal/discovery/HaywardDiscoveryService.java
Outdated
Show resolved
Hide resolved
...in/java/org/openhab/binding/haywardomnilogic/internal/discovery/HaywardDiscoveryService.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/openhab/binding/haywardomnilogic/internal/handler/HaywardBridgeHandler.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/openhab/binding/haywardomnilogic/internal/handler/HaywardBridgeHandler.java
Outdated
Show resolved
Hide resolved
...in/java/org/openhab/binding/haywardomnilogic/internal/handler/HaywardChlorinatorHandler.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.haywardomnilogic/src/main/resources/OH-INF/binding/binding.xml
Show resolved
Hide resolved
bundles/org.openhab.binding.haywardomnilogic/src/main/resources/OH-INF/thing/bridge.xml
Outdated
Show resolved
Hide resolved
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.
You code doesn't compile because there are several author tags missing.
...logic/src/main/java/org/openhab/binding/haywardomnilogic/internal/HaywardHandlerFactory.java
Outdated
Show resolved
Hide resolved
...nilogic/src/main/java/org/openhab/binding/haywardomnilogic/internal/HaywardThingHandler.java
Outdated
Show resolved
Hide resolved
...nilogic/src/main/java/org/openhab/binding/haywardomnilogic/internal/HaywardThingHandler.java
Outdated
Show resolved
Hide resolved
...nilogic/src/main/java/org/openhab/binding/haywardomnilogic/internal/HaywardThingHandler.java
Outdated
Show resolved
Hide resolved
...in/java/org/openhab/binding/haywardomnilogic/internal/discovery/HaywardDiscoveryService.java
Show resolved
Hide resolved
...rc/main/java/org/openhab/binding/haywardomnilogic/internal/handler/HaywardBridgeHandler.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/openhab/binding/haywardomnilogic/internal/handler/HaywardBridgeHandler.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/openhab/binding/haywardomnilogic/internal/handler/HaywardBridgeHandler.java
Outdated
Show resolved
Hide resolved
...in/java/org/openhab/binding/haywardomnilogic/internal/handler/HaywardChlorinatorHandler.java
Outdated
Show resolved
Hide resolved
...in/java/org/openhab/binding/haywardomnilogic/internal/handler/HaywardChlorinatorHandler.java
Outdated
Show resolved
Hide resolved
|
Sorry for the misunderstanding. The author tag in the binding.xml is deprecated, but the author tags in the source files are not. |
Are you finished making all changes? |
Yes. I just re-requested a review. Thx. |
...rc/main/java/org/openhab/binding/haywardomnilogic/internal/handler/HaywardBridgeHandler.java
Outdated
Show resolved
Hide resolved
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.
Please stop adding any new features to this PR. When this is merged, you can file a new PR.
...in/java/org/openhab/binding/haywardomnilogic/internal/discovery/HaywardDiscoveryService.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/openhab/binding/haywardomnilogic/internal/handler/HaywardBridgeHandler.java
Outdated
Show resolved
Hide resolved
Understood. I found a glaring temperature conversion error. |
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.
LGTM
Since this is a new binding, another maintainer needs to review your code before it can be merged.
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>
Thank you for all of your help! |
…omation Binding (openhab#8685)" This reverts commit ab290c5.
…Binding (openhab#8685) * Initial Contribution Signed-off-by: Matt Myers <mmyers75@icloud.com> Signed-off-by: John Marshall <john.marshall.au@gmail.com>
…Binding (openhab#8685) * Initial Contribution Signed-off-by: Matt Myers <mmyers75@icloud.com>
…Binding (openhab#8685) * Initial Contribution Signed-off-by: Matt Myers <mmyers75@icloud.com>
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