-
-
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
[enocean] Improved device discovery and added SMACK capability (#10156) #10157
[enocean] Improved device discovery and added SMACK capability (#10156) #10157
Conversation
…hab#10156) * Added SMACK teach in * Teached in devices can be teach out on a repeated teach in * Improved detection of RPS devices, device types can be better distinguished now * Bugfixes for discovery fallback to GenericThings * Responses to message requests are send automatically now, no need for linking SEND_COMMAND channel Fixes openhab#10156 Signed-off-by: Daniel Weber <uni@fruggy.de>
f5f4e8d
to
68a5fdf
Compare
...ding.enocean/src/main/java/org/openhab/binding/enocean/internal/EnOceanBindingConstants.java
Show resolved
Hide resolved
...inding.enocean/src/main/java/org/openhab/binding/enocean/internal/EnOceanHandlerFactory.java
Show resolved
Hide resolved
...g.enocean/src/main/java/org/openhab/binding/enocean/internal/config/EnOceanBridgeConfig.java
Outdated
Show resolved
Hide resolved
.../main/java/org/openhab/binding/enocean/internal/discovery/EnOceanDeviceDiscoveryService.java
Outdated
Show resolved
Hide resolved
...cean/src/main/java/org/openhab/binding/enocean/internal/handler/EnOceanBaseThingHandler.java
Outdated
Show resolved
Hide resolved
logger.debug("Exception during activating smack teach in: {}", e.getMessage()); | ||
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR, | ||
"Smack packet could not be send"); |
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.
The log message could be removed, as the status update is already logged by the framework. You could include the exception's message in the status detail message.
The state change originated by updateStatus() is logged to events.log. Including the status detail message.
Same for below.
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 am not really sure what you mean with status detail message. I hope my change is ok now. I changed this and other occurences. Thanks for the hint 👍
...inding.enocean/src/main/java/org/openhab/binding/enocean/internal/messages/EventMessage.java
Outdated
Show resolved
Hide resolved
...n/java/org/openhab/binding/enocean/internal/messages/Responses/RDLearnedClientsResponse.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.enocean/src/main/resources/OH-INF/thing/bridge.xml
Outdated
Show resolved
Hide resolved
…ab#10156) * Code improvements after CR Fixes openhab#10156 Signed-off-by: Daniel Weber <uni@fruggy.de>
Hi Fabian @fwolter, thanks a lot for your review hints 👍 I hope you are fine with my improvements. Have a nice weekend. |
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
Actually all newly added loggings to info should be debug or trace, but I see that lowering the severity would make it inconsistent to the existing code, so I'll merge it anyway.
info
should be used for example when a new OSGi component started. There are almost no use cases where info
should be used in bindings.
Would be awesome if you could file a follow-up PR to adjust all the info log levels!
…hab#10157) * Added SMACK teach in * Teached in devices can be teach out on a repeated teach in * Improved detection of RPS devices, device types can be better distinguished now * Bugfixes for discovery fallback to GenericThings * Responses to message requests are send automatically now, no need for linking SEND_COMMAND channel Fixes openhab#10156 Signed-off-by: Daniel Weber <uni@fruggy.de> Signed-off-by: John Marshall <john.marshall.au@gmail.com>
…hab#10157) * Added SMACK teach in * Teached in devices can be teach out on a repeated teach in * Improved detection of RPS devices, device types can be better distinguished now * Bugfixes for discovery fallback to GenericThings * Responses to message requests are send automatically now, no need for linking SEND_COMMAND channel Fixes openhab#10156 Signed-off-by: Daniel Weber <uni@fruggy.de>
…hab#10157) * Added SMACK teach in * Teached in devices can be teach out on a repeated teach in * Improved detection of RPS devices, device types can be better distinguished now * Bugfixes for discovery fallback to GenericThings * Responses to message requests are send automatically now, no need for linking SEND_COMMAND channel Fixes openhab#10156 Signed-off-by: Daniel Weber <uni@fruggy.de>
Fixes #10156
Signed-off-by: Daniel Weber uni@fruggy.de