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

[nikohomecontrol] Energy meters and access control #12893

Merged
merged 11 commits into from
May 24, 2024

Conversation

mherwege
Copy link
Contributor

@mherwege mherwege commented Jun 5, 2022

Closes #11868

This PR adds:

  • NHC I energy meters
  • NHC II access control

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.

@mherwege mherwege added the awaiting other PR Depends on another PR label Jun 5, 2022
@mherwege mherwege changed the title [nikohomecontrol] Energy access [nikohomecontrol] Energy meters and access control Jun 5, 2022
@mherwege mherwege added the enhancement An enhancement or new feature for an existing add-on label Jun 6, 2022
@mherwege mherwege removed the awaiting other PR Depends on another PR label Jun 12, 2022
@mherwege
Copy link
Contributor Author

@lolodomo rebased as well.

@lolodomo
Copy link
Contributor

lolodomo commented Jun 15, 2022

There is no hurry but a rebase of your branch will be required to solve current conflicted files.

@mherwege
Copy link
Contributor Author

mherwege commented Jun 15, 2022

@lolodomo Rebased

Copy link
Contributor

@lolodomo lolodomo left a 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)

@lolodomo
Copy link
Contributor

lolodomo commented Aug 8, 2022

This is a breaking change due to changes in energyMeter thing type.

@lolodomo
Copy link
Contributor

lolodomo commented Aug 8, 2022

Remains to review: README, handler package, protocol package, NikoHomeControlCommunication1 class and NikoHomeControlCommunication2 class.

@mherwege
Copy link
Contributor Author

@lolodomo Thank you for your review so far. I believe I have responded to your requests.

@lolodomo
Copy link
Contributor

lolodomo commented Nov 6, 2022

@lolodomo Thank you for your review so far. I believe I have responded to your requests.

This is stil in my TODO list to finish the review (with the 3.4 final release as deadline for that).

@lolodomo
Copy link
Contributor

lolodomo commented Dec 11, 2022

Sorry @mherwege , I finally did not yet fully review your PR.

PS: there is now a conflict that will need to be fixed.

@mherwege
Copy link
Contributor Author

I think I resolved the conflict. That required a force push.

@mherwege
Copy link
Contributor Author

mherwege commented May 5, 2024

@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.

Copy link
Contributor

@lolodomo lolodomo left a 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.

@lolodomo
Copy link
Contributor

Remains to review: README and 4 classes: NikoHomeControlAccessHandler, NikoHomeControlMeterHandler, NikoHomeControlCommunication1 and NikoHomeControlCommunication2

Copy link
Contributor

@lolodomo lolodomo left a 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

mherwege added 4 commits May 19, 2024 20:42
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>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
@lolodomo
Copy link
Contributor

I will try to finish tomorrow. README and 2 last classes. There is no open comments.

Copy link
Contributor

@lolodomo lolodomo left a 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

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Copy link
Contributor

@lolodomo lolodomo left a 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

@lolodomo
Copy link
Contributor

Just remain to have a look to README changes.

Copy link
Contributor

@lolodomo lolodomo left a 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

bundles/org.openhab.binding.nikohomecontrol/README.md Outdated Show resolved Hide resolved
bundles/org.openhab.binding.nikohomecontrol/README.md Outdated Show resolved Hide resolved
bundles/org.openhab.binding.nikohomecontrol/README.md Outdated Show resolved Hide resolved
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
@mherwege
Copy link
Contributor Author

@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.

Copy link
Contributor

@lolodomo lolodomo left a comment

Choose a reason for hiding this comment

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

LGTM, thank you

@mherwege
Copy link
Contributor Author

@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.

@lolodomo lolodomo merged commit a3fad33 into openhab:main May 24, 2024
5 checks passed
@lolodomo lolodomo added this to the 4.2 milestone May 24, 2024
@lolodomo
Copy link
Contributor

Thank you for your patience @mherwege

@mherwege mherwege deleted the energy_access branch May 26, 2024 10:17
LeeC77 pushed a commit to LeeC77/openhab-addons that referenced this pull request May 27, 2024
* NHCI energy meters and NHCII access control

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Signed-off-by: LeeC77 <lee.charlton00@gmail.com>
psmedley pushed a commit to psmedley/openhab-addons that referenced this pull request Jun 15, 2024
* 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>
pgfeller pushed a commit to pgfeller/openhab-addons that referenced this pull request Sep 29, 2024
* 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>
joni1993 pushed a commit to joni1993/openhab-addons that referenced this pull request Oct 15, 2024
* NHCI energy meters and NHCII access control

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
matchews pushed a commit to matchews/openhab-addons that referenced this pull request Oct 18, 2024
* NHCI energy meters and NHCII access control

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
cipianpascu pushed a commit to cipianpascu/openhab-addons that referenced this pull request Jan 2, 2025
* NHCI energy meters and NHCII access control

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on (potentially) not backward compatible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[nikohomecontrol] Support for accesscontrol action
4 participants