Skip to content
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] Added mDNS discovery for Fire TV Stick #11881

Merged
merged 4 commits into from
Jan 18, 2022

Conversation

cweitkamp
Copy link
Contributor

  • Added mDNS discovery for Fire TV Stick

Signed-off-by: Christoph Weitkamp github@christophweitkamp.de

@cweitkamp cweitkamp added the enhancement An enhancement or new feature for an existing add-on label Dec 29, 2021
editProperties.put(Thing.PROPERTY_FIRMWARE_VERSION, adbConnection.getAndroidVersion());
editProperties.put(Thing.PROPERTY_VENDOR, adbConnection.getBrand());
try {
editProperties.put(Thing.PROPERTY_MAC_ADDRESS, adbConnection.getMacAddress());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately the ro.boot.wifimacaddr property is not available or accessible on all devices but currently it looks like the Mac address is the only unique identifier available in both discovery service implementations.

@cweitkamp cweitkamp force-pushed the feature-adb-mdns-discovery branch from bef2a2a to 8ac75dc Compare December 29, 2021 10:26
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
…rg/openhab/binding/androiddebugbridge/internal/discovery/FireTVStickMDNSDiscoveryParticipant.java


Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
@cweitkamp cweitkamp force-pushed the feature-adb-mdns-discovery branch from 0947682 to 314fca1 Compare January 9, 2022 10:07
@lolodomo
Copy link
Contributor

Is changing the representation property a breaking change?

@cweitkamp
Copy link
Contributor Author

Is changing the representation property a breaking change?

No, I do not think so. It is an internal property which cannot be manipulated the user and if the binding has a proper handling - like I implemented it in this PR - it will be backward compatible.

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
lolodomo
lolodomo previously approved these changes Jan 14, 2022
Copy link
Contributor

@lolodomo lolodomo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
Copy link
Contributor

@lolodomo lolodomo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lolodomo lolodomo merged commit 58ff256 into openhab:main Jan 18, 2022
@lolodomo lolodomo added this to the 3.3 milestone Jan 18, 2022
@cweitkamp cweitkamp deleted the feature-adb-mdns-discovery branch January 18, 2022 08:03
moesterheld pushed a commit to moesterheld/openhab-addons that referenced this pull request Jan 18, 2022
…11881)

* Added mDNS discovery for Fire TV Stick

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
nemerdaud pushed a commit to nemerdaud/openhab-addons that referenced this pull request Jan 28, 2022
…11881)

* Added mDNS discovery for Fire TV Stick

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
NickWaterton pushed a commit to NickWaterton/openhab-addons that referenced this pull request Apr 27, 2022
…11881)

* Added mDNS discovery for Fire TV Stick

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
Signed-off-by: Nick Waterton <n.waterton@outlook.com>
andan67 pushed a commit to andan67/openhab-addons that referenced this pull request Nov 6, 2022
…11881)

* Added mDNS discovery for Fire TV Stick

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
andrasU pushed a commit to andrasU/openhab-addons that referenced this pull request Nov 12, 2022
…11881)

* Added mDNS discovery for Fire TV Stick

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
Signed-off-by: Andras Uhrin <andras.uhrin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants