vmichalak / sonos-controller

Java API for controlling SONOS players
MIT License
43 stars 9 forks source link

Discovers other devices than Sonos #3

Open esba opened 7 years ago

esba commented 7 years ago

When doing SonosDiscovery.discover(), I can see other devices in the list, not only Sonos. For instance it also finds my Philips Hue bridge.

Example of found Sonos device (uudi removed): Device{ip='192.168.10.107', descriptionUrl='http://192.168.10.107:1400/xml/device_description.xml', server='Linux UPnP/1.0 Sonos/35.3-37210 (ZPS1)', serviceType='urn:schemas-upnp-org:device:ZonePlayer:1', usn='uuid:RINCON_XXXXXXXXXXXXXXXXX::urn:schemas-upnp-org:device:ZonePlayer:1'}

Example of non-Sonos device, Hue Brigde (uudi removed): Device{ip='192.168.10.105', descriptionUrl='http://192.168.10.105:80/description.xml', server='Linux/3.14.0 UPnP/1.0 IpBridge/1.16.0', serviceType='upnp:rootdevice', usn='uuid:XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX::upnp:rootdevice'}

I can see you are using SSDPClient.discover(1000, "**urn:schemas-upnp-org:device:ZonePlayer:1**"); when discovering, but doesn't seem to work correct. I don't know if the issues is in the sonos-controller library or in the SSDP library. Great library anyway, I really enjoy testing all the capabilities!

PS. Sorry to bother you again ;)

vmichalak commented 7 years ago

Sorry, I don't have Philips Hue and i don't understand why your Philips Hue Bridge respond to SSDP Request. I check and the request is correctly sended ... It's really strange