-
-
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
[unifiedremote] Initial contribution #8546
Conversation
Signed-off-by: GiviMAD <miguelwork92@gmail.com>
Travis tests were successfulHey @GiviMAD, |
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 your contribution! I reviewed your code and found only minor things. Good code in general.
...iedremote/src/main/java/org/openhab/binding/unifiedremote/internal/UnifiedRemoteHandler.java
Outdated
Show resolved
Hide resolved
...iedremote/src/main/java/org/openhab/binding/unifiedremote/internal/UnifiedRemoteHandler.java
Outdated
Show resolved
Hide resolved
...iedremote/src/main/java/org/openhab/binding/unifiedremote/internal/UnifiedRemoteHandler.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.unifiedremote/src/main/resources/OH-INF/binding/binding.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.unifiedremote/src/main/resources/OH-INF/thing/thing-types.xml
Show resolved
Hide resolved
Signed-off-by: GiviMAD <miguelwork92@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.
There are some markdown warnings left. You could take a look at target/code-analysis/report.html
.
.../src/main/java/org/openhab/binding/unifiedremote/internal/UnifiedRemoteDiscoveryService.java
Outdated
Show resolved
Hide resolved
...iedremote/src/main/java/org/openhab/binding/unifiedremote/internal/UnifiedRemoteHandler.java
Outdated
Show resolved
Hide resolved
Signed-off-by: GiviMAD <miguelwork92@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.
LGTM
Can you fix the conflicting CODEOWNERS file? |
Done! |
[MeteoAlerte] Update for OH3 (#8801)
Can you fix the conflicting pom.xml file? |
the build finally works! |
Almost done, just resolve these warnings and you are finished!
To deal with the null warnings you should assign the field to a local variable and perform your operations on that local variable instead. |
Signed-off-by: GiviMAD <miguelwork92@gmail.com>
I think I get rid of all the warnings. Please also note I make a small change in the catch clause in the fie UnifiedRemoteHandler.java to consider the thing as offline is the TimeoutException is thrown. And thanks for the tip on how to deal with the nullable type warnings,I wasn't sure about how to solve those. |
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 thought I was done before, but I took another look and found these two things.
These will be my last change suggestions through so fix these and I'll approve and merge this.
Thanks for all your work!
.../src/main/java/org/openhab/binding/unifiedremote/internal/UnifiedRemoteDiscoveryService.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/openhab/binding/unifiedremote/internal/UnifiedRemoteDiscoveryService.java
Outdated
Show resolved
Hide resolved
Signed-off-by: GiviMAD <miguelwork92@gmail.com>
Done! Please note I change the exception control in the UnifiedRemoteHandler.java again, I was testing the binding this morning in my home installation of openHAB (arm Kubernetes cluster) and I'm getting a NotRouteToHostException when thing turns offline. Sorry for the late change and thanks for your help reviewing the pr. |
Done |
Signed-off-by: GiviMAD <miguelwork92@gmail.com>
Signed-off-by: GiviMAD <miguelwork92@gmail.com>
Copied from initial pr(#8494):
Unified Remote Binding.
This binding allow send some command to the unified remote server through its web client interface.
It create some channels to control the mouse, some navigation keys, some media keys, and not much more.
Good day. This is my first contribution to this amazing product. Some days ago I started search for a way to control my computer with openHAB and I decided to try to write this binding that seems to finally be working.
Please let me know if there are any suggestions to improve the binding as I'm still getting in touch with this technology. I will also open a thread in the Add-ons forum pointing to this pr, in case someone wants to try it or have an idea for a better implementation. Thanks in advance for your time.
download binding jar