-
-
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
[openwebnet] Add support for sending Auxiliary (AUX) commands/messages to the bus (WHO=9) #12468
[openwebnet] Add support for sending Auxiliary (AUX) commands/messages to the bus (WHO=9) #12468
Conversation
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 this contribution. Beside the requested changes, two other things are missing:
- discovery : give a look on how it is done in OpenWebNetDeviceDiscoveryService.java
- event message handling: you should add here the new message type and then implement in the Aux Handler the method
handleMessage()
taking as an example what is done on the Scenario handler and in theupdateDryContactIRState()
method in particular
bundles/org.openhab.binding.openwebnet/src/main/resources/OH-INF/thing/BusAux.xml
Outdated
Show resolved
Hide resolved
...rc/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetAuxiliaryHandler.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetAuxiliaryHandler.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetAuxiliaryHandler.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetAuxiliaryHandler.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetAuxiliaryHandler.java
Outdated
Show resolved
Hide resolved
Remember also to sign all commits otherwise the DCO check will not pass |
Thank you so much for the PR approval and for your support as well!
|
@mvalla When are you going to publish the binding for testing? or would you prefer me to do that? |
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.
I did a second review, see new comments
...java/org/openhab/binding/openwebnet/internal/discovery/OpenWebNetDeviceDiscoveryService.java
Show resolved
Hide resolved
...rc/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetAuxiliaryHandler.java
Outdated
Show resolved
Hide resolved
@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... |
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 |
after community testing these changed should be added:
|
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.
new change requested based on comments received. Remember to mark conversations as Resolved when changes have been commited.
...java/org/openhab/binding/openwebnet/internal/discovery/OpenWebNetDeviceDiscoveryService.java
Show resolved
Hide resolved
bundles/org.openhab.binding.openwebnet/src/main/resources/OH-INF/thing/channels.xml
Outdated
Show resolved
Hide resolved
...rc/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetAuxiliaryHandler.java
Outdated
Show resolved
Hide resolved
Just a Maven question: How can I update artifact's name to include beta[n] postfix? |
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.
it's not part of the integrated build process. You can rename the jar/kar manually after it's built. |
...rc/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetAuxiliaryHandler.java
Show resolved
Hide resolved
...rc/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetAuxiliaryHandler.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetAuxiliaryHandler.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetAuxiliaryHandler.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetAuxiliaryHandler.java
Outdated
Show resolved
Hide resolved
...rc/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetAuxiliaryHandler.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.openwebnet/src/main/resources/OH-INF/thing/BusAux.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.openwebnet/src/main/resources/OH-INF/thing/channels.xml
Outdated
Show resolved
Hide resolved
Maybe is enough to do:
Starting a new PR means all this (long) discussion and all change suggestions are lost. |
Signed-off-by: Giovanni Fabiani <[email protected]>
Signed-off-by: Giovanni Fabiani <[email protected]>
Signed-off-by: Giovanni Fabiani <[email protected]>
Signed-off-by: Giovanni Fabiani <[email protected]>
Signed-off-by: Giovanni Fabiani <[email protected]>
Signed-off-by: Giovanni Fabiani <[email protected]>
Signed-off-by: Giovanni Fabiani <[email protected]>
Signed-off-by: Giovanni Fabiani <[email protected]>
Signed-off-by: Giovanni Fabiani <[email protected]>
Signed-off-by: Giovanni Fabiani <[email protected]>
Signed-off-by: Giovanni Fabiani <[email protected]>
…me functionality (#11515) Signed-off-by: Giovanni Fabiani <[email protected]>
…me functionality #11515) Signed-off-by: Giovanni Fabiani <[email protected]>
…b community testing (#11515) Signed-off-by: Giovanni Fabiani <[email protected]>
Signed-off-by: Giovanni Fabiani <[email protected]>
Signed-off-by: Giovanni Fabiani <[email protected]>
Signed-off-by: Giovanni Fabiani <[email protected]>
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.
Final review
bundles/org.openhab.binding.openwebnet/src/main/resources/OH-INF/thing/channels.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.openwebnet/src/main/resources/OH-INF/thing/channels.xml
Show resolved
Hide resolved
...rc/main/java/org/openhab/binding/openwebnet/internal/handler/OpenWebNetAuxiliaryHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Giovanni Fabiani <[email protected]>
Signed-off-by: Giovanni Fabiani <[email protected]>
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 niw
@lolodomo Thank you so much for your approval and support as well! |
…s to the bus (WHO=9) (openhab#12468) Signed-off-by: Giovanni Fabiani <[email protected]> Signed-off-by: Marc Fischer <[email protected]>
…s to the bus (WHO=9) (openhab#12468) Signed-off-by: Giovanni Fabiani <[email protected]>
…s to the bus (WHO=9) (openhab#12468) Signed-off-by: Giovanni Fabiani <[email protected]> Signed-off-by: Andras Uhrin <[email protected]>
…s to the bus (WHO=9) (openhab#12468) Signed-off-by: Giovanni Fabiani <[email protected]>
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