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

Easy way to get friendlyName or modelDescription? #880

Open
ms777 opened this issue Dec 31, 2023 · 2 comments
Open

Easy way to get friendlyName or modelDescription? #880

ms777 opened this issue Dec 31, 2023 · 2 comments

Comments

@ms777
Copy link

ms777 commented Dec 31, 2023

... just installed it on my Synology NAS and everything works like a charm!

Is there an easy way to get the friendlyName or modelDescription for the players? I have multiple players in a room, and in the state I only see the somewhat cryptic uuid ?

In the http://192.168.178.61:1400/xml/device_description.xml I see them ...

<root xmlns="urn:schemas-upnp-org:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<device>
<deviceType>urn:schemas-upnp-org:device:ZonePlayer:1</deviceType>
<friendlyName>192.168.178.61 - Sonos One</friendlyName>
<manufacturer>Sonos, Inc.</manufacturer>
<manufacturerURL>http://www.sonos.com</manufacturerURL>
<modelNumber>S13</modelNumber>
<modelDescription>Sonos One</modelDescription>
<modelName>Sonos One</modelName>
<modelURL>http://www.sonos.com/products/zoneplayers/S13</modelURL>
...
@jishi
Copy link
Owner

jishi commented Jan 8, 2024

I don't think I use the device_description.xml content to parse info about the players, most of this is part of the event that tells you which players are in the system.

Could you elaborate on why you have use for the modelName? I fail to see any real need for it, more than for informative purposes.

@ms777
Copy link
Author

ms777 commented Jan 9, 2024

Right now the only human readable identificator for a Sonos device is the roomName. However, I have multiple Sonos devices in my (fortunately quite large) living room. friendlyName or modelDescription would help to identify the different devices in the same room.
I have made a workaround with a lookup on the uuid, which is not very elegant, but works.

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

No branches or pull requests

2 participants