-
-
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] Add CLI for PIN process #15143
Comments
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/androidtv-binding-3-2-0-4-0-0/142203/471 |
@jlaur I notice in your example that you apply the command to the bridge. I don't think that will work here for people with multiple local devices (like me). Is there a mechanism where we can specify the thingId on the cli and match against it? |
Take a look at this one also... It is almost exactly the same use case to trigger a PIN display and submit it back: https://github.com/openhab/openhab-addons/blob/main/bundles/org.openhab.binding.vizio/src/main/java/org/openhab/binding/vizio/internal/console/VizioCommandExtension.java |
Thank you @mlobstein ! This is exactly the logic I was looking for. |
I decided to take a slightly different approach on this. Instead of locking this to the pin, I basically made the interpreter send to any channel. This serves three purposes. 1) It resolves this feature request by enabling pin on the command line. 2) It allows users to also send keypress/keycode from the command line for testing. 3) It allows me to work a little easier with the debug channels when doing testing. PR coming forthwith. |
As requested in #14282 by @jlaur -
Recommend adding a CLI interface for the PIN process similar to the BoschIndego binding.
https://github.com/openhab/openhab-addons/blob/main/bundles/org.openhab.binding.boschindego/src/main/java/org/openhab/binding/boschindego/internal/console/BoschIndegoCommandExtension.java
The text was updated successfully, but these errors were encountered: