-
-
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 Smoke Detector II #16357
Conversation
Signed-off-by: Patrick Gell <patgit023@gmail.com>
@david-pace |
Perhaps this can help with some context: #16093 (comment) |
Interestingly the exact same question was asked in #14562 (comment). We use an openHAB system channel and translate the Bosch-specific communication quality to an openHAB-specific signal strength as discussed here. The mapping is:
As you can see, GOOD is the best Bosch communication quality, so it is translated to the best openHAB signal strength 4 which is labeled as "excellent" in the UI. In my opinion this is the best mapping but if you have a better idea feel free to propose a different mapping. |
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.
Looks great 😎
Just some things to double-check:
- did you re-generate the i18n file in the end after having edited everything in
thing-types.xml
? - Did you check that there are no SAT warnings in
target/code-analysis/report.html
?
} | ||
|
||
private void updateChannels(CommunicationQualityServiceState communicationQualityServiceState) { | ||
logger.debug("***** update communication quality with {}", communicationQualityServiceState.quality); |
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.
Is this log really needed?
If so, maybe we should remove the asterisks and Capitalize all log messages: Updating communication quality for Smoke Detector II with value {}
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.
upps, that was just a debug while I did some troubleshooting and used the asterisks to find it faster in the log 😬
will remove the whole log
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.
log has been removed
Signed-off-by: Patrick Gell <patgit023@gmail.com>
|
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 adding support for this new device!
Signed-off-by: Patrick Gell <patgit023@gmail.com> Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
Add Smoke Detector 2
Description
This PR adds support of the smoke detector 2 to the Bosch Smart Home Binding (#16243 )
Testing
Your pull request will automatically be built and available under the following folder:
org.openhab.binding.boschshc/4.2.0-SNAPSHOT