-
-
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
[boschshc] Add support for Universal Switch I + II #16274
Conversation
eb4d9bd
to
1667f5d
Compare
- add thing type and channel type definitions - re-generate i18n file - add constants - add model classes and enums - implement service and handlers - register handlers in factory - register devices in discovery closes openhab#16244 Signed-off-by: David Pace <dev@davidpace.de>
1667f5d
to
edb8d2d
Compare
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 have no Universal Switches and therefore only did a review of the files.
You changes are as usual: consistent, clean with comments and unit tests - very good work.
Thank you @david-pace
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.
Left a question and minor comment.
...va/org/openhab/binding/boschshc/internal/devices/universalswitch/UniversalSwitchHandler.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.boschshc/src/main/resources/OH-INF/thing/thing-types.xml
Outdated
Show resolved
Hide resolved
Signed-off-by: David Pace <dev@davidpace.de>
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, Let me know when testing is finished and i'll merge the PR.
Hi @lsiepel, I tested the code well with Universal Switch II. It would be good if someone could test with Universal Switch I as well. But of the testers I know, no one has a first generation device. On the other hand, Universal Switch I has the very same service API, just the button names are different and I used the ones specified in the official Bosch API and also confirmed with a Python implementation (line 625). So I'm fairly confident that this will work, too. If you agree that the two sources are enough, we can merge this PR 🚀 |
As it is a new supported device, there is no risc of regression and we have some milestones before the next stable, hopefully it will get some mileage. |
* [boschshc] Support for Universal Switch I + II - add thing type and channel type definitions - re-generate i18n file - add constants - add model classes and enums - implement service and handlers - register handlers in factory - register devices in discovery closes openhab#16244 Signed-off-by: David Pace <dev@davidpace.de> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
* [boschshc] Support for Universal Switch I + II - add thing type and channel type definitions - re-generate i18n file - add constants - add model classes and enums - implement service and handlers - register handlers in factory - register devices in discovery closes openhab#16244 Signed-off-by: David Pace <dev@davidpace.de> Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
* [boschshc] Support for Universal Switch I + II - add thing type and channel type definitions - re-generate i18n file - add constants - add model classes and enums - implement service and handlers - register handlers in factory - register devices in discovery closes openhab#16244 Signed-off-by: David Pace <dev@davidpace.de>
closes #16244