-
-
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
[androiddebugbridge] Add start intent channel #12438
[androiddebugbridge] Add start intent channel #12438
Conversation
I'm using this version of the binding. https://docs.smarthomej.org/3.2.12-SNAPSHOT/org.smarthomej.binding.androiddebugbridge.html This version has the Intent channel defined already. I have these items working with the binding I'm referencing above. https://community.openhab.org/t/android-debug-binding-adb-notes-for-others/133777 Best, Jay |
Did a quick scan for this PR. Usually it is preferred to seperate bug and enhancements PR. Anyway, did you get in contact with previous contributer that changed the identifier for discovery? |
@lsiepel, yes he is one of the reviewers also I mentioned him in the issue, and for the reference I'm the original contributor. I was working on the new channel when I discovered the issue so I fixed it to been able to tested it. |
@jaywiseman I have no clue, I don't think it will work without changes. |
@cweitkamp did you have a chance to look at this? |
Sry for my late reply. As I already stated in #11881 (comment) for me it looks like the Mac address is the only unique identifier available in both discovery service implementations. The mDNS discovery in general does not require to enable usb debugging in general as requested in the documentation. Imo your approach will fail to discover a new device as long as this requirement is not given. The question now is if we want to restrict the discovery results to rely on this setting or not. May I ask you to slit this PR into two separate ones? One for the discovery issue and one for the enhancement to add the new channel. Thanks. |
Sorry but I can’t agree @cweitkamp.
First of all we don’t have the mac address in both discovery methods, the way currently implemented on the normal discovery is totally wrong and I couldn’t find an easy way to get it, also the serial number used util that pr seems the best option and with this changes is available on both sides. |
Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>
Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>
ea92454
to
a32d000
Compare
Removed all discovery related changes. |
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 the PR. I have made a few minor comments.
.../src/main/java/org/openhab/binding/androiddebugbridge/internal/AndroidDebugBridgeDevice.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/openhab/binding/androiddebugbridge/internal/AndroidDebugBridgeDevice.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/openhab/binding/androiddebugbridge/internal/AndroidDebugBridgeDevice.java
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.androiddebugbridge/src/main/resources/OH-INF/thing/thing-types.xml
Show resolved
Hide resolved
Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>
.../src/main/java/org/openhab/binding/androiddebugbridge/internal/AndroidDebugBridgeDevice.java
Outdated
Show resolved
Hide resolved
.../src/main/java/org/openhab/binding/androiddebugbridge/internal/AndroidDebugBridgeDevice.java
Show resolved
Hide resolved
.../src/main/java/org/openhab/binding/androiddebugbridge/internal/AndroidDebugBridgeDevice.java
Show resolved
Hide resolved
.../src/main/java/org/openhab/binding/androiddebugbridge/internal/AndroidDebugBridgeDevice.java
Show resolved
Hide resolved
.../src/main/java/org/openhab/binding/androiddebugbridge/internal/AndroidDebugBridgeDevice.java
Show resolved
Hide resolved
.../src/main/java/org/openhab/binding/androiddebugbridge/internal/AndroidDebugBridgeDevice.java
Show resolved
Hide resolved
.../src/main/java/org/openhab/binding/androiddebugbridge/internal/AndroidDebugBridgeDevice.java
Show resolved
Hide resolved
@GiviMAD : there is not too much to do so that I can merge your PR. |
Sorry, almost forgot about it, I was messing around trying other things. Thanks for pinging me, I'll go for it. |
Signed-off-by: Miguel Álvarez Díez <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
@jlaur : is it ok for you (as you reviewed this PR without approving it) ? |
* [androiddebugbridge] add start intent channel Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>
* [androiddebugbridge] add start intent channel Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com> Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
* [androiddebugbridge] add start intent channel Signed-off-by: Miguel Álvarez Díez <miguelwork92@gmail.com>
Signed-off-by: Miguel Álvarez Díez miguelwork92@gmail.com
This pr add a new channel for start application intents.
Also fixes the discovery and revert to use the device serial number as identifier on both discovery methods.