Sonos bridge and more generally device_description.xml file

[quote=“parkerc, post:13, topic:173694”][quote=“lolodomo, post:10, topic:173694”]I don’t think we can get the icon directly from the Sonos. We will need to store the different icons in the Vera.
[url=http://wiki.micasaverde.com/index.php/Luup_plugin_icons]http://wiki.micasaverde.com/index.php/Luup_plugin_icons[/url][/quote]

As this returns the icon of the Sonos, ([url=http://192.168.x.x:1400/img/icon-ZB100.png]http://192.168.x.x:1400/img/icon-ZB100.png[/url]) can the .json dynamically look to that address ? Can the flash icon url address be calculated by a variable stored in the UI of the device e.g. the Sonos plugin also stores the /img/icon-xxxx.png location?[/quote]

No. That’s why I was constrained to do it differently using the capabilities offered by Micasaverde json files.

This link is interesting as it confirms my assumption that Play:3 will not provide an AudioIn service.
So while Browse AI: seems to work only for me, checking the presence of this service in the description XML file could be an interesting workaround to get all the audio inputs.

[quote=“Brientim, post:14, topic:173694”]Hello,

I would dare to suggest Play 3 follows the same precedence… I have added the two icons for the bridge and Play 5.

<modelNumber>S5</modelNumber> <url>/img/icon-S5.png</url> [/quote]

It looks like you can have ZPS5 too: TravelMarx: Exploring Sonos via UPnP

Looking at the date, being 2 years old this may have been the then naming conventions but there is only limited modules, it looks like with the current firmware they may have now dropped the Zone Player (ZP). As far as I can establish the S3 wasn’t introduced until 2011 and as my Play 5s are only new (Xmas presents from the darling wife) I cannot give any background on the firmware changes over time.

Can your misses have a word with mine :smiley:

Can your misses have a word with mine :D[/quote]

I could request that but we must always be careful of what we ask for. I got the new Sonos, she (We) pick a new house to which we signed the contract on Xmas eve. So it could be very expensive.

Do you know if there is a simple way to list all files in img directory ?

@lolodomo -

Just a thought in regards to the UI icon for Sonos - was it not possible to do something like the IP Camera’s devices do, as they display an changing (or static) image (via a direct link in settings, to an img/snapshoot file/folder location on the camera itself)

It might also be possible for the image to then update from the stored Sonos Image or more dynmaic and show the Albumn art changes too

[quote=“parkerc, post:28, topic:173694”]@lolodomo -

Just a thought in regards to the UI icon for Sonos - was it not possible to do something like the IP Camera’s devices do, as they display an changing (or static) image (via a direct link in settings, to an img/snapshoot file/folder location on the camera itself)

It might also be possible for the image to then update from the stored Sonos Image or more dynmaic and show the Albumn art changes too[/quote]

Can you point me the device or plugin you are taling about please ?
I did not find any device by default in the Vera that could handle camera (or its name is not intuitive…)

[quote=“lolodomo, post:29, topic:173694”][quote=“parkerc, post:28, topic:173694”]@lolodomo -

Just a thought in regards to the UI icon for Sonos - was it not possible to do something like the IP Camera’s devices do, as they display an changing (or static) image (via a direct link in settings, to an img/snapshoot file/folder location on the camera itself)

It might also be possible for the image to then update from the stored Sonos Image or more dynmaic and show the Albumn art changes too[/quote]

Can you point me the device or plugin you are taling about please ?
I did not find any device by default in the Vera that could handle camera (or its name is not intuitive…)[/quote]

Try and add a generic IP Camera.

Alternatively it uses the :device:DigitalSecurityCamera1, xmls if that helps

Oups sorry, I see it now, I have even D_DigitalSecurityCamera1 and D_DigitalSecurityCamera2

Ok, I don’t know how MCV is managing IP Camera. Maybe they copy regurlary the snapshot in a certain file in the Vera (the file use as icon by the device) ?

At my knowloedge, there is no way to have a dynamic link as icon of a device.

But what I imagine for the IP camera gives me an interesting idea. I could automatically copy the image from the Sonos unit in the Vera, no need to have the images in the plugin. And with such a solution, we could probably have the album art as icon.
To be investiguated. We have to avoid to make to many file copy…

just check my play 3:

0 image/png 48 48 24 /img/icon-S3.png

Also the ZP100 in the current D_Sonos1 shows up as the sonos_0 icon.

Could you check the value of the tag modelnumber?

Shows 0.

Coud you copy the first part of the XML so that I can see what I can use ?

<device>
<deviceType>urn:schemas-upnp-org:device:ZonePlayer:1</deviceType>
<friendlyName>192.168.0.5 - Sonos ZP100</friendlyName>
<manufacturer>Sonos, Inc.</manufacturer>
<manufacturerURL>http://www.sonos.com</manufacturerURL>
<modelNumber>ZP100</modelNumber>
<modelDescription>Sonos ZP100</modelDescription>
<modelName>Sonos ZP100</modelName>
<modelURL>http://www.sonos.com/products/zoneplayers/ZP100</modelURL>
<softwareVersion>19.4-60120</softwareVersion>
<hardwareVersion>1.1.3.2-1</hardwareVersion>
<serialNum>00-0E-58-12-92-40:A</serialNum>
<UDN>uuid:RINCON_000E5812924001400</UDN>
<iconList>
<icon>
<id>0</id>
<mimetype>image/png</mimetype>
<width>48</width>
<height>48</height>
<depth>24</depth>
<url>/img/icon-ZP100.png</url>
</icon>
</iconList>
<minCompatibleVersion>19.4-00000</minCompatibleVersion>
<displayVersion>3.8.4</displayVersion>
<extraVersion>m16: 1.0-12170 r8: 0.8-16</extraVersion>
<roomName>Bonus Room</roomName>
<displayName>ZP100</displayName>
<zoneType>2</zoneType>
<feature1>0x05010001</feature1>
<feature2>0x000061b2</feature2>
<feature3>0x00000031</feature3>
<internalSpeakerSize>-1</internalSpeakerSize>

OK. ZP100 is the string I needed. Can you provide the icon now ?

here ya go!