-
-
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
[nikohomecontrol] Energy meters and access control #12893
Conversation
@lolodomo rebased as well. |
There is no hurry but a rebase of your branch will be required to solve current conflicted files. |
@lolodomo Rebased |
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.
Review part 1 (resources, constants, handler factory and discovery)
.../main/java/org/openhab/binding/nikohomecontrol/internal/NikoHomeControlBindingConstants.java
Outdated
Show resolved
Hide resolved
.../main/java/org/openhab/binding/nikohomecontrol/internal/NikoHomeControlBindingConstants.java
Outdated
Show resolved
Hide resolved
...rg.openhab.binding.nikohomecontrol/src/main/resources/OH-INF/i18n/nikohomecontrol.properties
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.nikohomecontrol/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.nikohomecontrol/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.nikohomecontrol/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.nikohomecontrol/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.nikohomecontrol/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.nikohomecontrol/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.nikohomecontrol/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
This is a breaking change due to changes in |
Remains to review: README, handler package, protocol package, NikoHomeControlCommunication1 class and NikoHomeControlCommunication2 class. |
@lolodomo Thank you for your review so far. I believe I have responded to your requests. |
26eeb20
to
4e0c64c
Compare
This is stil in my TODO list to finish the review (with the 3.4 final release as deadline for that). |
Sorry @mherwege , I finally did not yet fully review your PR. PS: there is now a conflict that will need to be fixed. |
4e0c64c
to
f7015c2
Compare
I think I resolved the conflict. That required a force push. |
447e413
to
0ea4927
Compare
@lolodomo I am sorry about insisting. Is there anything I need to do to make this progress? I would like to get this done before this PR’s second anniversary. |
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.
Few minor comments for the protocol package, mainly javadoc, except my comment about method visibility in interfaces.
...trol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcAccessEvent.java
Outdated
Show resolved
Hide resolved
...ontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcBaseEvent.java
Outdated
Show resolved
Hide resolved
...omecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcVideo.java
Outdated
Show resolved
Hide resolved
...omecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcMeter.java
Outdated
Show resolved
Hide resolved
...omecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcMeter.java
Outdated
Show resolved
Hide resolved
...mecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcAccess.java
Outdated
Show resolved
Hide resolved
...mecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcAccess.java
Outdated
Show resolved
Hide resolved
...mecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcAccess.java
Outdated
Show resolved
Hide resolved
...mecontrol/src/main/java/org/openhab/binding/nikohomecontrol/internal/protocol/NhcAccess.java
Outdated
Show resolved
Hide resolved
...java/org/openhab/binding/nikohomecontrol/internal/protocol/NikoHomeControlCommunication.java
Outdated
Show resolved
Hide resolved
...in/java/org/openhab/binding/nikohomecontrol/internal/handler/NikoHomeControlBaseHandler.java
Show resolved
Hide resolved
.../java/org/openhab/binding/nikohomecontrol/internal/handler/NikoHomeControlActionHandler.java
Outdated
Show resolved
Hide resolved
...in/java/org/openhab/binding/nikohomecontrol/internal/handler/NikoHomeControlBaseHandler.java
Outdated
Show resolved
Hide resolved
Remains to review: README and 4 classes: NikoHomeControlAccessHandler, NikoHomeControlMeterHandler, NikoHomeControlCommunication1 and NikoHomeControlCommunication2 |
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.
End of my review of the handler package
.../java/org/openhab/binding/nikohomecontrol/internal/handler/NikoHomeControlAccessHandler.java
Outdated
Show resolved
Hide resolved
.../java/org/openhab/binding/nikohomecontrol/internal/handler/NikoHomeControlAccessHandler.java
Show resolved
Hide resolved
.../java/org/openhab/binding/nikohomecontrol/internal/handler/NikoHomeControlAccessHandler.java
Outdated
Show resolved
Hide resolved
.../java/org/openhab/binding/nikohomecontrol/internal/handler/NikoHomeControlAccessHandler.java
Outdated
Show resolved
Hide resolved
.../java/org/openhab/binding/nikohomecontrol/internal/handler/NikoHomeControlAccessHandler.java
Show resolved
Hide resolved
...n/java/org/openhab/binding/nikohomecontrol/internal/handler/NikoHomeControlMeterHandler.java
Outdated
Show resolved
Hide resolved
...n/java/org/openhab/binding/nikohomecontrol/internal/handler/NikoHomeControlMeterHandler.java
Show resolved
Hide resolved
...n/java/org/openhab/binding/nikohomecontrol/internal/handler/NikoHomeControlMeterHandler.java
Show resolved
Hide resolved
...n/java/org/openhab/binding/nikohomecontrol/internal/handler/NikoHomeControlMeterHandler.java
Outdated
Show resolved
Hide resolved
...n/java/org/openhab/binding/nikohomecontrol/internal/handler/NikoHomeControlMeterHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
I will try to finish tomorrow. README and 2 last classes. There is no open comments. |
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.
Review of class NikoHomeControlCommunication2
...rg/openhab/binding/nikohomecontrol/internal/protocol/nhc2/NikoHomeControlCommunication2.java
Outdated
Show resolved
Hide resolved
...rg/openhab/binding/nikohomecontrol/internal/protocol/nhc2/NikoHomeControlCommunication2.java
Outdated
Show resolved
Hide resolved
...rg/openhab/binding/nikohomecontrol/internal/protocol/nhc2/NikoHomeControlCommunication2.java
Outdated
Show resolved
Hide resolved
...rg/openhab/binding/nikohomecontrol/internal/protocol/nhc2/NikoHomeControlCommunication2.java
Outdated
Show resolved
Hide resolved
...rg/openhab/binding/nikohomecontrol/internal/protocol/nhc2/NikoHomeControlCommunication2.java
Outdated
Show resolved
Hide resolved
...rg/openhab/binding/nikohomecontrol/internal/protocol/nhc2/NikoHomeControlCommunication2.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
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.
Review of NikoHomeControlCommunication1 : just one ultra minor comment
...rg/openhab/binding/nikohomecontrol/internal/protocol/nhc1/NikoHomeControlCommunication1.java
Outdated
Show resolved
Hide resolved
Just remain to have a look to README changes. |
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.
Review of README and end of review
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
@lolodomo Many thanks for your thorough review. I believe I have addressed your comments. I will try to do a final smoke test on Friday, if all still works (I am not home at the moment). If you don't have other remarks and that test is OK, I believe this should be good to go. |
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, thank you
@lolodomo I did a quick smoke test in my installation and it looks good for me. So this would be ready as far as I am concerned. |
Thank you for your patience @mherwege |
* NHCI energy meters and NHCII access control Signed-off-by: Mark Herwege <mark.herwege@telenet.be> Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
* NHCI energy meters and NHCII access control Signed-off-by: Mark Herwege <mark.herwege@telenet.be> Signed-off-by: Paul Smedley <paul@smedley.id.au>
* NHCI energy meters and NHCII access control Signed-off-by: Mark Herwege <mark.herwege@telenet.be> Signed-off-by: Patrik Gfeller <patrik.gfeller@proton.me>
* NHCI energy meters and NHCII access control Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
* NHCI energy meters and NHCII access control Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
* NHCI energy meters and NHCII access control Signed-off-by: Mark Herwege <mark.herwege@telenet.be> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
Closes #11868
This PR adds:
To reduce code duplication with the added functionality, it also contains code refactoring to lift common logic to base classes. This makes the changes quite substantial. I am no longer able to split it in smaller pieces, as there are too many dependencies on previous PR's only just reviewed or still in review, which makes rebasing a nightmare. I appologize for that. I was able to rebase this on PR #12885, but had to squash the detailed commits to make it feasible.
This PR complements PR #11963, improving thermostats, starting from the same base PR. After review and merge of PR #12885 I will rebase both PR's.