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

[openwebnet] Add support for sending Auxiliary (AUX) commands/messages to the bus (WHO=9) #12468

Merged
merged 19 commits into from
May 8, 2022
Merged

[openwebnet] Add support for sending Auxiliary (AUX) commands/messages to the bus (WHO=9) #12468

merged 19 commits into from
May 8, 2022

Conversation

fabgio
Copy link
Contributor

@fabgio fabgio commented Mar 13, 2022

This PR adds initial Auxiliary (AUX) message support to the binding (WHO=9) for sending AUX messages.
This PR closes #11515.

Description

This PR adds support for sending Auxiliary (AUX) WHO=9 messages to the Open Web Net binding.
With this addition BTicino BUS AUX (WHO=9) messages can be sent from OH3 allowing, for example, to control alarm systems of a BTicino installation.
Configuration for new things and channels has been added to the add-on README.

Test

Tested on BTicino/Legrand bulgrar-alarm unit 3486

@fabgio fabgio changed the title 11515_openwebnet_3.3.0_aux_beta4 openwebnet] Add Auxiliary (AUX) message support to the binding (WHO=9) Mar 13, 2022
@fabgio fabgio changed the title openwebnet] Add Auxiliary (AUX) message support to the binding (WHO=9) [openwebnet] Add Auxiliary (AUX) message support to the binding (WHO=9) Mar 13, 2022
@jlaur jlaur added the enhancement An enhancement or new feature for an existing add-on label Mar 14, 2022
@mvalla mvalla changed the title [openwebnet] Add Auxiliary (AUX) message support to the binding (WHO=9) [openwebnet] Add support for Auxiliary (AUX, WHO=9) messages Mar 16, 2022
@fabgio fabgio marked this pull request as ready for review March 17, 2022 20:27
@fabgio fabgio requested a review from mvalla as a code owner March 17, 2022 20:27
Copy link
Contributor

@mvalla mvalla 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 this contribution. Beside the requested changes, two other things are missing:

@mvalla
Copy link
Contributor

mvalla commented Mar 19, 2022

Remember also to sign all commits otherwise the DCO check will not pass

@fabgio
Copy link
Contributor Author

fabgio commented Mar 22, 2022 via email

@mvalla mvalla added the additional testing preferred The change works for the pull request author. A test from someone else is preferred though. label Mar 22, 2022
@mvalla
Copy link
Contributor

mvalla commented Mar 22, 2022

@lolodomo @fabgio I think before this PR is merged some testing would be useful, so I will first publish this on the marketplace so that users can be invited to do some testing using their configurations.

@fabgio
Copy link
Contributor Author

fabgio commented Mar 27, 2022

@mvalla When are you going to publish the binding for testing? or would you prefer me to do that?

Copy link
Contributor

@mvalla mvalla left a comment

Choose a reason for hiding this comment

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

I did a second review, see new comments

@fabgio
Copy link
Contributor Author

fabgio commented Mar 31, 2022

@mvalla tonight doing further tests the aux thing wasn't able to go online. Still when I did the last checks few days ago it was working properly... this is making me crazy. Just hold ... need some more testing...

@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/openwebnet-binding-beta/129775/1

@mvalla
Copy link
Contributor

mvalla commented Apr 19, 2022

after community testing these changed should be added:

  • explain clearly in README that AUX messages originating from BUS are not supported. Only sending commands from OH is supported for the moment. Create a new issue on GitHub for this.
  • in the AUX channel documentation in the README list all possible AUX values: ON, OFF, TOGGLE, STOP, UP, DOWN, ENABLED, DISABLED, RESET_GEN, RESET_BI, RESET_TRI. Also specify that for the moment only ON/OFF are supported.

Copy link
Contributor

@mvalla mvalla left a comment

Choose a reason for hiding this comment

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

new change requested based on comments received. Remember to mark conversations as Resolved when changes have been commited.

@fabgio fabgio changed the title [openwebnet] Add support for Auxiliary (AUX, WHO=9) messages [openwebnet] Add support for sending Auxiliary (AUX= commands/messages to the bus (WHO=9) Apr 22, 2022
@fabgio fabgio changed the title [openwebnet] Add support for sending Auxiliary (AUX= commands/messages to the bus (WHO=9) [openwebnet] Add support for sending Auxiliary (AUX) commands/messages to the bus (WHO=9) Apr 22, 2022
@fabgio
Copy link
Contributor Author

fabgio commented Apr 23, 2022

Just a Maven question: How can I update artifact's name to include beta[n] postfix?
I have been seeking for a while!
Thanks

@openhab openhab deleted a comment from fabgio Apr 24, 2022
Copy link
Contributor

@mvalla mvalla left a comment

Choose a reason for hiding this comment

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

@fabgio please just implement these final suggested changes, and only them.
@jlaur Based on my review as code owner, after these last requested changes are implemented, the code can be accepted for merging. It is explained that it's an initial support for sending ON/OFF AUX commands on the BUS.

bundles/org.openhab.binding.openwebnet/README.md Outdated Show resolved Hide resolved
bundles/org.openhab.binding.openwebnet/README.md Outdated Show resolved Hide resolved
bundles/org.openhab.binding.openwebnet/README.md Outdated Show resolved Hide resolved
@mvalla mvalla removed the additional testing preferred The change works for the pull request author. A test from someone else is preferred though. label Apr 24, 2022
@mvalla
Copy link
Contributor

mvalla commented Apr 24, 2022

Just a Maven question: How can I update artifact's name to include beta[n] postfix? I have been seeking for a while! Thanks

it's not part of the integrated build process. You can rename the jar/kar manually after it's built.

@mvalla
Copy link
Contributor

mvalla commented May 4, 2022

Maybe is enough to do:

  • Copy as backup your binding directory somewhere else , just to be safe
  • then from openwebnet dir:
git fetch --all
git rebase -i upstream master
# fix all conflicting lines, but you should not find any 
git push -f

Starting a new PR means all this (long) discussion and all change suggestions are lost.

fabgio added 17 commits May 4, 2022 18:22
Signed-off-by: Giovanni Fabiani <fabiani.giovanni@gmail.com>
Signed-off-by: Giovanni Fabiani <fabiani.giovanni@gmail.com>
Signed-off-by: Giovanni Fabiani <fabiani.giovanni@gmail.com>
Signed-off-by: Giovanni Fabiani <fabiani.giovanni@gmail.com>
Signed-off-by: Giovanni Fabiani <fabiani.giovanni@gmail.com>
Signed-off-by: Giovanni Fabiani <fabiani.giovanni@gmail.com>
Signed-off-by: Giovanni Fabiani <fabiani.giovanni@gmail.com>
Signed-off-by: Giovanni Fabiani <fabiani.giovanni@gmail.com>
Signed-off-by: Giovanni Fabiani <fabiani.giovanni@gmail.com>
Signed-off-by: Giovanni Fabiani <fabiani.giovanni@gmail.com>
Signed-off-by: Giovanni Fabiani <fabiani.giovanni@gmail.com>
…me functionality (#11515)

Signed-off-by: Giovanni Fabiani <fabiani.giovanni@gmail.com>
…me functionality #11515)

Signed-off-by: Giovanni Fabiani <fabiani.giovanni@gmail.com>
…b community testing (#11515)

Signed-off-by: Giovanni Fabiani <fabiani.giovanni@gmail.com>
Signed-off-by: Giovanni Fabiani <fabiani.giovanni@gmail.com>
Signed-off-by: Giovanni Fabiani <fabiani.giovanni@gmail.com>
Signed-off-by: Giovanni Fabiani <fabiani.giovanni@gmail.com>
@fabgio
Copy link
Contributor Author

fabgio commented May 4, 2022

@lolodomo @mvalla Ok I finally did an interactive rebase and dropped the unwanted commits. The PR gonna be ok now! Please Let me know...

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.

Final review

fabgio added 2 commits May 8, 2022 10:50
Signed-off-by: Giovanni Fabiani <fabiani.giovanni@gmail.com>
Signed-off-by: Giovanni Fabiani <fabiani.giovanni@gmail.com>
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 niw

@fabgio
Copy link
Contributor Author

fabgio commented May 8, 2022

@lolodomo Thank you so much for your approval and support as well!

@lolodomo lolodomo merged commit 888f962 into openhab:main May 8, 2022
@lolodomo lolodomo added this to the 3.3 milestone May 8, 2022
marcfischerboschio pushed a commit to bosch-io/openhab-addons that referenced this pull request May 16, 2022
…s to the bus (WHO=9) (openhab#12468)

Signed-off-by: Giovanni Fabiani <fabiani.giovanni@gmail.com>
Signed-off-by: Marc Fischer <marc.fischer2@bosch.io>
andan67 pushed a commit to andan67/openhab-addons that referenced this pull request Nov 6, 2022
…s to the bus (WHO=9) (openhab#12468)

Signed-off-by: Giovanni Fabiani <fabiani.giovanni@gmail.com>
andrasU pushed a commit to andrasU/openhab-addons that referenced this pull request Nov 12, 2022
…s to the bus (WHO=9) (openhab#12468)

Signed-off-by: Giovanni Fabiani <fabiani.giovanni@gmail.com>
Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
psmedley pushed a commit to psmedley/openhab-addons that referenced this pull request Feb 23, 2023
…s to the bus (WHO=9) (openhab#12468)

Signed-off-by: Giovanni Fabiani <fabiani.giovanni@gmail.com>
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[openwebnet] add support for AUX (WHO=9)
5 participants