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

UpnpAddonFinder execute M-SEARCH ST: ssdp:all #3918

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

andrewfg
Copy link
Contributor

@andrewfg andrewfg commented Dec 12, 2023

Potentially fixes openhab/openhab-addons#16036

In the above-mentioned issue, it has been reported that the UPnpAddonFinder may not be finding computers which are running the deconz application. Whereas by contrast the deconz binding's bridge discovery (based on UpnpDiscoveryParticipant) does find the respective computer.

A potential reason could be that UpnpAddonFinder issues a root device search (M-SEARCH ST: upnp:rootdevice) and perhaps the deconz application has a bug whereby it does not respond to root device searches.

On the other hand the UpnpDiscoveryService issues both a root device search plus also a 'catch-all' search (M-SEARCH ST: ssdp:all) so perhaps the deconz application does respond to the latter search but not the former.

Notes:

  1. this is currently a hypothesis only, subject to user testing and confirmation.
  2. if this hypothesis is proven, it confirms that the deconz application is buggy.

Signed-off-by: Andrew Fiddian-Green software@whitebear.ch

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg andrewfg requested a review from a team as a code owner December 12, 2023 15:36
@andrewfg
Copy link
Contributor Author

@jlaur you may want to test this hypothesis before confirming the (potential) fix. It means that you would have to do a full OH build with this fix in order to test it.

@mherwege just for info..

@andrewfg andrewfg changed the title UPnpAddonFinder execute M-SEARCH ST: ssdp:all UpnpAddonFinder execute M-SEARCH ST: ssdp:all Dec 12, 2023
@andrewfg
Copy link
Contributor Author

@mherwege / @kaikreuzer I am inclined to think that we should merge this one anyway, since -- even if it does not resolve the deconz issue -- it does align the behaviour of UpnpAddonFinder and UpnpDiscoveryService. => WDYT?

@mherwege
Copy link
Contributor

LGTM

Copy link
Member

@J-N-K J-N-K left a comment

Choose a reason for hiding this comment

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

LGTM. I agree the services should be aligned.

@J-N-K J-N-K added this to the 4.1 milestone Dec 12, 2023
@J-N-K J-N-K merged commit 8082daa into openhab:main Dec 12, 2023
3 checks passed
andrewfg added a commit to andrewfg/openhab-core that referenced this pull request Dec 17, 2023
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg andrewfg deleted the fix-deconz-discovery branch August 25, 2024 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[deconz] Binding suggestion not working
3 participants