-
-
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
[androidtv] AndroidTV Binding initial contribution #14282
Conversation
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Reduces functions in handler. Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
A test jar is available through the marketplace at https://community.openhab.org/t/androidtv-binding-3-2-0-4-0-0/142203 |
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Adds i18n info
Created: openhab/openhab-docs#2001 (Now merged) and As per guidelines |
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Fixes thing not coming online
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Merge in isLoggedIn fixes
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Adds DynamicCOmmandDescriptionProvider and bug fixes
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Just to be clear on my intentions, I'm fine with adding the CLI commands as an alternative however I'm going to leave the channel in place as well as some users do prefer this method. Also, as this has been on the marketplace for 6 months now we would already have to update there anyway. |
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Updated to the newest snapshot and I'm getting an NPE on start. Just pushed a commit to resolve that.
|
@wborn checking in again on this. We're getting close to the code getting locked for the 4.0.0 release and I'd really like to get this merged in for that. Thanks! |
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Google updated the GoogleTV protocol to version 4.39. Two minor commits have be pushed to update the login string to resolve an issue posted to the forum and to make a few small changes to the checks and logging for the PIN process. |
@wborn - what is the status of your review? |
@wborn Please let me know if there's anything else for this. Thanks! |
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 addressing the comments. 👍
Sorry, I was a bit busy but I've added a few more comments below:
...binding.androidtv/src/main/java/org/openhab/binding/androidtv/internal/AndroidTVHandler.java
Outdated
Show resolved
Hide resolved
...binding.androidtv/src/main/java/org/openhab/binding/androidtv/internal/AndroidTVHandler.java
Outdated
Show resolved
Hide resolved
...binding.androidtv/src/main/java/org/openhab/binding/androidtv/internal/AndroidTVHandler.java
Outdated
Show resolved
Hide resolved
...ain/java/org/openhab/binding/androidtv/internal/protocol/googletv/GoogleTVMessageParser.java
Outdated
Show resolved
Hide resolved
...ain/java/org/openhab/binding/androidtv/internal/protocol/googletv/GoogleTVMessageParser.java
Outdated
Show resolved
Hide resolved
...java/org/openhab/binding/androidtv/internal/protocol/shieldtv/ShieldTVConnectionManager.java
Outdated
Show resolved
Hide resolved
...java/org/openhab/binding/androidtv/internal/protocol/shieldtv/ShieldTVConnectionManager.java
Outdated
Show resolved
Hide resolved
...java/org/openhab/binding/androidtv/internal/protocol/shieldtv/ShieldTVConnectionManager.java
Outdated
Show resolved
Hide resolved
...java/org/openhab/binding/androidtv/internal/protocol/shieldtv/ShieldTVConnectionManager.java
Show resolved
Hide resolved
...java/org/openhab/binding/androidtv/internal/protocol/shieldtv/ShieldTVConnectionManager.java
Show resolved
Hide resolved
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
@wborn I've pushed several commits to resolve the bulk of the comments. I've left comments on the rest for your consideration. EDIT: Also to note, I've not had time to do thorough regression testing on these changes. I don't see any reason they should fail, and they all compile clean, but just noting for record. |
@wborn Checking in to see if there's anything else on this. |
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 addressing the comments! I've added a few more below. After that I think it's nice and clean. 🙂
bundles/org.openhab.binding.androidtv/src/main/resources/OH-INF/addon/addon.xml
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.androidtv/src/main/resources/OH-INF/i18n/androidtv.properties
Outdated
Show resolved
Hide resolved
...ain/java/org/openhab/binding/androidtv/internal/protocol/googletv/GoogleTVMessageParser.java
Outdated
Show resolved
Hide resolved
...ain/java/org/openhab/binding/androidtv/internal/protocol/shieldtv/ShieldTVMessageParser.java
Outdated
Show resolved
Hide resolved
...binding.androidtv/src/main/java/org/openhab/binding/androidtv/internal/AndroidTVHandler.java
Outdated
Show resolved
Hide resolved
...java/org/openhab/binding/androidtv/internal/protocol/shieldtv/ShieldTVConnectionManager.java
Outdated
Show resolved
Hide resolved
...java/org/openhab/binding/androidtv/internal/protocol/shieldtv/ShieldTVConnectionManager.java
Outdated
Show resolved
Hide resolved
...java/org/openhab/binding/androidtv/internal/protocol/shieldtv/ShieldTVConnectionManager.java
Outdated
Show resolved
Hide resolved
...java/org/openhab/binding/androidtv/internal/protocol/shieldtv/ShieldTVConnectionManager.java
Outdated
Show resolved
Hide resolved
...java/org/openhab/binding/androidtv/internal/protocol/shieldtv/ShieldTVConnectionManager.java
Outdated
Show resolved
Hide resolved
...ain/java/org/openhab/binding/androidtv/internal/protocol/shieldtv/ShieldTVMessageParser.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
@wborn I've pushed the fixes as requested. I'm going to push the current code to the addon marketplace as well. |
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.
Many thanks! 👍 Let's merge it! 🚀
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com> Signed-off-by: Matt Myers <mmyers75@icloud.com>
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com> Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
This is the initial contribution of the AndroidTV binding. AndroidTV has a unique place in the market where it exists in several different vendors in the market. This creates the basic binding framework and adds the Nvidia ShieldTV protocol (which was reverse engineered from the Nvidia ShieldTV Android App) and version 2 of the GoogleTV protocol (which was reverse engineered from the GoogleTV Android App). Discovery is provided by mDNS.
All devices use the GoogleTV protocol as the base for command/control/information. The Nvidia ShieldTV adds the ShieldTV protocol on top for additional metadata and application control.
This version provides connectivity, authentication via the on-screen PIN based process, PKI support for certificates, keypress support for all identified keys, and app control/awareness/information.
This is a follow-on to the original shieldtv PR (#13934) which was closed in favor of a more encompassing androidtv binding to better support the community.
Fixes #14315