SmartThings Community

RELEASE Generic Media Renderer (DLNA Speakers). Cheap Sonos Alternative (Update V2)

dth_speakers
dth_voice
dth_alerts

(S Gord) #248

I’m using Foobar and control works fine via ST, but when using the Sonos Smart App to play a song, it shows the tracks in the Foobar library but says Unavailable next to each track. Has anybody seen this? Or does the library on Foobar not work with this?


(Ule) #249

Hi @sgord, I have test the MR Device and is working fine with foobar2000, I have loaded some songs in playlist and start plying pushing play button in device interface from smartthings, the next track and previous track work fine, try to control the foobar2000 from device interface just to confirm the device is working fine, maybe the problem is in the app and not in the device


(S Gord) #250

@ule. Hey thanks! I can control foobar2000 just fine from within ST. It will play the songs, but I’m trying to have it play a specific song/sound for certain options. I dont really understand the whole control point portion of this setup though.


(Ule) #251

Hi @sgord, Try to use the app “Sonos notify with sound” you can select some previous played song to use in some alert,
The text to Speech function is not working in SmartThings plataform, try avoid use that function, I hope in some short time ST fix the bug. Remember that Music Device is not a control point to load music playlist, is mainly to send alert messages and continue your playlist, you must to control your music with some advanced DLNA control point like the listed in first post.


(Ule) #252

Hi, sorry by delay, now I have and Android phone and I have fixed the error when you try to install the players from the media renderer connect, please update the Mediarenderer Connect App and install your speakers

This problem was present just in android devices.


(Alex) #253

Thank you!

I experienced the problem, but didn’t have a chance to follow up. This is a fantastic project, thank you for your continual support and development!


SmartThings Text-To-Speech for Sonos (playText) not working?
(Ule) #254

Hi, I have found a work around the problem with Text To Speach function.
Smartthings plataform have problems to convert tex to to audio long time ago and they have not a date to fix it

A replace function calls a google service to convert on the fly.

If you are a user: You must to update the DLNA PLAYER device
And to use the modified smartapps with the new function. (I have mod some smartapps from smartthings )
This must to be a temporal fix until SmartThings fix the problem.

If you are a programer: You must to add the new function and replace the call of the old function with the new one on yours smart apps

Thanks for follow this development

Read the next post


(Jake Hughes) #255

@sgord I did finally get it to work. Actually picked up two other and grouped them so I have a “voice” for the whole house by sending to the group instead of individual. That said, I recently rebuilt everything onto the v2 Hub, and since then it’s clipping the end of the audio off no matter what I do with the delay timers. I’m assuming this is a side-effect of upgrading but still investigating…


(Manana546) #256

I tried the updated connect app (v1.9.1), but I’m still having issues with discovery of MediaRenderers.
According to the log a number of devices are found, showing up as the one below:

MediaRenderer device found[devicetype:04, mac:XXX, ip:XXX, port:XXX, ssdpPath:/, …

I can also see that the method to add them to the state dictionary is called, and the device is recognized between calls to the locationHandler.

However, the device is still not listed in the GUI.
The issue is the same both using the Android app and the simulator.

Is anyone else seeing this?

I’m not too familiar with the design of SmartApps yet, but the designs of the mediaRendererDiscovery function suggests that it is supposed to be called periodically at “refreshInterval”. This does not seem to happen.
Neither can I find any information on the refreshInterval attribute in the documentation?


(Ule) #257

HI @Manana546, Could you give me more information?, what Mediarenderer model do you want to add?
Could you send me the log when you try to add the MR
The Mediarenderer is found by other control point listed in first post?

Thanks


(Manana546) #258

@ule It is a HEOS 7 (http://usa.denon.com/heos-7-large-home-speaker-system). It can be found by other control points, from the ones in your first post i have only tried “Network Audio Remote Android”, but that one worked.

I have added a more comprehensive log below:

15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:05: trace Host: 192.168.14.31:80 - 192.168.14.31:80
15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:05: debug Device (0017881764C2) was already found in state with ip = 192.168.14.31:80.
15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:05: trace [uuid:2f402f80-da50-11e1-9b23-0017881764c2:[ssdpUSN:uuid:2f402f80-da50-11e1-9b23-0017881764c2, verified:true, networkAddress:C0A80E1F, name:Olskroken (192.168.14.31), serialNumber:0017881764c2, deviceAddress:0050, mac:0017881764C2, devicetype:04, hub:ad1c9cf5-5065-45b3-8880-6db2064eadfd, ssdpPath:/description.xml, ssdpTerm:urn:schemas-upnp-org:device:basic:1, stringCount:03]]
15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:05: trace SSDP DISCOVERY EVENTS
15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:05: trace Location: devicetype:04, mac:0017881764C2, networkAddress:C0A80E1F, deviceAddress:0050, stringCount:03, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-0017881764c2, ssdpTerm:urn:schemas-upnp-org:device:basic:1
15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:05: trace NON-HUE EVENT devicetype:04, mac:0017881764C2, networkAddress:C0A80E1F, deviceAddress:0050, stringCount:03, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-0017881764c2, ssdpTerm:uuid:2f402f80-da50-11e1-9b23-0017881764c2
15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:05: trace Location: devicetype:04, mac:0017881764C2, networkAddress:C0A80E1F, deviceAddress:0050, stringCount:03, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-0017881764c2, ssdpTerm:uuid:2f402f80-da50-11e1-9b23-0017881764c2
15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:05: trace NON-HUE EVENT devicetype:04, mac:0017881764C2, networkAddress:C0A80E1F, deviceAddress:0050, stringCount:03, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-0017881764c2::upnp:rootdevice, ssdpTerm:upnp:rootdevice
15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:05: trace Location: devicetype:04, mac:0017881764C2, networkAddress:C0A80E1F, deviceAddress:0050, stringCount:03, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-0017881764c2::upnp:rootdevice, ssdpTerm:upnp:rootdevice
15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:04: trace Host: 192.168.14.31:80 - 192.168.14.31:80
15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:04: debug Device (0017881764C2) was already found in state with ip = 192.168.14.31:80.
15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:04: trace [uuid:2f402f80-da50-11e1-9b23-0017881764c2:[ssdpUSN:uuid:2f402f80-da50-11e1-9b23-0017881764c2, verified:true, networkAddress:C0A80E1F, name:Olskroken (192.168.14.31), serialNumber:0017881764c2, deviceAddress:0050, mac:0017881764C2, devicetype:04, hub:ad1c9cf5-5065-45b3-8880-6db2064eadfd, ssdpPath:/description.xml, ssdpTerm:urn:schemas-upnp-org:device:basic:1, stringCount:03]]
15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:04: trace SSDP DISCOVERY EVENTS
15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:04: trace Location: devicetype:04, mac:0017881764C2, networkAddress:C0A80E1F, deviceAddress:0050, stringCount:03, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-0017881764c2, ssdpTerm:urn:schemas-upnp-org:device:basic:1
15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:04: trace NON-HUE EVENT devicetype:04, mac:0017881764C2, networkAddress:C0A80E1F, deviceAddress:0050, stringCount:03, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-0017881764c2, ssdpTerm:uuid:2f402f80-da50-11e1-9b23-0017881764c2
15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:04: trace Location: devicetype:04, mac:0017881764C2, networkAddress:C0A80E1F, deviceAddress:0050, stringCount:03, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-0017881764c2, ssdpTerm:uuid:2f402f80-da50-11e1-9b23-0017881764c2
15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:04: trace NON-HUE EVENT devicetype:04, mac:0017881764C2, networkAddress:C0A80E1F, deviceAddress:0050, stringCount:03, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-0017881764c2::upnp:rootdevice, ssdpTerm:upnp:rootdevice
15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:04: trace Location: devicetype:04, mac:0017881764C2, networkAddress:C0A80E1F, deviceAddress:0050, stringCount:03, ssdpPath:/description.xml, ssdpUSN:uuid:2f402f80-da50-11e1-9b23-0017881764c2::upnp:rootdevice, ssdpTerm:upnp:rootdevice
15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:04: trace NON-HUE EVENT devicetype:04, mac:0005CD467294, networkAddress:C0A80E9F, deviceAddress:EB64, stringCount:03, ssdpPath:/, ssdpUSN:uuid:e85d14ac-60ae-1b4e-0080-0005cd467294::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1
15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:04: trace Location: devicetype:04, mac:0005CD467294, networkAddress:C0A80E9F, deviceAddress:EB64, stringCount:03, ssdpPath:/, ssdpUSN:uuid:e85d14ac-60ae-1b4e-0080-0005cd467294::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1
ff8b168b-c62e-4733-a995-301167f7b5dd 17:54:04: debug MediaRenderer device found[devicetype:04, mac:0005CD467294, ip:C0A80E9F, port:EB64, ssdpPath:/, ssdpUSN:uuid:e85d14ac-60ae-1b4e-0080-0005cd467294::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1, hub:ad1c9cf5-5065-45b3-8880-6db2064eadfd]
ff8b168b-c62e-4733-a995-301167f7b5dd 17:54:04: debug MediaRenderer device found[devicetype:04, mac:0005CD467294, ip:C0A80E9F, port:EB64, ssdpPath:/, ssdpUSN:uuid:e85d14ac-60ae-1b4e-0080-0005cd467294::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1, hub:ad1c9cf5-5065-45b3-8880-6db2064eadfd]
15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:04: trace NON-HUE EVENT devicetype:04, mac:0005CD467294, networkAddress:C0A80E9F, deviceAddress:EB64, stringCount:03, ssdpPath:/, ssdpUSN:uuid:e85d14ac-60ae-1b4e-0080-0005cd467294::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1
15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:04: trace Location: devicetype:04, mac:0005CD467294, networkAddress:C0A80E9F, deviceAddress:EB64, stringCount:03, ssdpPath:/, ssdpUSN:uuid:e85d14ac-60ae-1b4e-0080-0005cd467294::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1
ff8b168b-c62e-4733-a995-301167f7b5dd 17:54:04: debug MediaRenderer device found[devicetype:04, mac:0005CD467294, ip:C0A80E9F, port:EB64, ssdpPath:/, ssdpUSN:uuid:e85d14ac-60ae-1b4e-0080-0005cd467294::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1, hub:ad1c9cf5-5065-45b3-8880-6db2064eadfd]
ff8b168b-c62e-4733-a995-301167f7b5dd 17:54:04: debug MediaRenderer device found[devicetype:04, mac:0005CD467294, ip:C0A80E9F, port:EB64, ssdpPath:/, ssdpUSN:uuid:e85d14ac-60ae-1b4e-0080-0005cd467294::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1, hub:ad1c9cf5-5065-45b3-8880-6db2064eadfd]
15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:04: trace NON-HUE EVENT devicetype:04, mac:0005CD467294, networkAddress:C0A80E9F, deviceAddress:EB64, stringCount:03, ssdpPath:/, ssdpUSN:uuid:e85d14ac-60ae-1b4e-0080-0005cd467294::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1
15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:04: trace Location: devicetype:04, mac:0005CD467294, networkAddress:C0A80E9F, deviceAddress:EB64, stringCount:03, ssdpPath:/, ssdpUSN:uuid:e85d14ac-60ae-1b4e-0080-0005cd467294::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1
15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:04: trace NON-HUE EVENT devicetype:04, mac:0005CD467294, networkAddress:C0A80E9F, deviceAddress:EB64, stringCount:03, ssdpPath:/, ssdpUSN:uuid:e85d14ac-60ae-1b4e-0080-0005cd467294::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1
15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:04: trace Location: devicetype:04, mac:0005CD467294, networkAddress:C0A80E9F, deviceAddress:EB64, stringCount:03, ssdpPath:/, ssdpUSN:uuid:e85d14ac-60ae-1b4e-0080-0005cd467294::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1

(Ule) #259

Hi @Manana546, I think you have other smartapp connect who has take control over the mediaRenderer

15d1aba8-07ca-47ca-83fa-02f7f76db227 17:54:04: debug Device (0017881764C2) was already found in state with ip = 192.168.14.31:80.

the 15d1aba8-07ca-47ca-83fa-02f7f76db227 is the other smartapp connect who has take control

the Mediarenderer connect must to be app id : ff8b168b-c62e-4733-a995-301167f7b5dd (in your system)

ff8b168b-c62e-4733-a995-301167f7b5dd 17:54:04: debug MediaRenderer device found[devicetype:04, mac:0005CD467294, ip:C0A80E9F, port:EB64, ssdpPath:/, ssdpUSN:uuid:e85d14ac-60ae-1b4e-0080-0005cd467294::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1, hub:ad1c9cf5-5065-45b3-8880-6db2064eadfd]

I suggest you to uninstall the device from the other smartapp and try to find the mediarenderer again with the Mediarenderer Connect, I think the other smartapp do not limit the upnp search.


(Manana546) #260

The device at 192.168.14.31:80 is my HUE bridge. I removed all but one MediaRenderer and it is at 192.168.14.159.

Just to be safe i also removed the HUE completely from smartthings, but unforturnately that doesnt help.
I added a line in the beginning of the mediaRendererDiscovery, the discoverMediaRenderers and the verifyMediaRendererPlayer functions to keep track of them.

Log:

78bdf52b-3709-438b-827b-d9e688d8de57 7:52:15 AM: trace daysOk = true
78bdf52b-3709-438b-827b-d9e688d8de57 7:52:15 AM: debug startTime: 2015-09-23T05:00:00.000+0200, endTime: 2015-09-23T14:00:00.000+0200, t0: Thu Sep 24 05:52:15 UTC 2015
78bdf52b-3709-438b-827b-d9e688d8de57 7:52:15 AM: trace motionActiveHandler(motion: active), timeOfDay: 2015-09-23T05:00:00.000+0200, endTime: 2015-09-23T14:00:00.000+0200
4d9b3106-25b6-4674-a134-3e9eb6d4da33 7:52:15 AM: debug Motion active
c5d259aa-15f5-4b80-9ce8-fcb83057093b 7:52:15 AM: debug Parse returned [name:motion, value:active, descriptionText:Livingroom Window detected motion]
c5d259aa-15f5-4b80-9ce8-fcb83057093b 7:52:15 AM: debug motion
c5d259aa-15f5-4b80-9ce8-fcb83057093b 7:52:15 AM: debug motion with tamper alarm
c5d259aa-15f5-4b80-9ce8-fcb83057093b 7:52:15 AM: debug description: zone status 0x0022 -- extended status 0x00
84331174-ed11-4a07-800b-ac97b12ca9f2 7:50:29 AM: debug MediaRenderer device found[devicetype:04, mac:0005CD467294, ip:C0A80E9F, port:E319, ssdpPath:/, ssdpUSN:uuid:e85d14ac-60ae-1b4e-0080-0005cd467294::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1, hub:ad1c9cf5-5065-45b3-8880-6db2064eadfd]
84331174-ed11-4a07-800b-ac97b12ca9f2 7:50:29 AM: debug MediaRenderer device found[devicetype:04, mac:0005CD467294, ip:C0A80E9F, port:E319, ssdpPath:/, ssdpUSN:uuid:e85d14ac-60ae-1b4e-0080-0005cd467294::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1, hub:ad1c9cf5-5065-45b3-8880-6db2064eadfd]
84331174-ed11-4a07-800b-ac97b12ca9f2 7:50:29 AM: debug MediaRenderer device found[devicetype:04, mac:0005CD467294, ip:C0A80E9F, port:E319, ssdpPath:/, ssdpUSN:uuid:e85d14ac-60ae-1b4e-0080-0005cd467294::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1, hub:ad1c9cf5-5065-45b3-8880-6db2064eadfd]
84331174-ed11-4a07-800b-ac97b12ca9f2 7:50:29 AM: debug MediaRenderer device found[devicetype:04, mac:0005CD467294, ip:C0A80E9F, port:E319, ssdpPath:/, ssdpUSN:uuid:e85d14ac-60ae-1b4e-0080-0005cd467294::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1, hub:ad1c9cf5-5065-45b3-8880-6db2064eadfd]
84331174-ed11-4a07-800b-ac97b12ca9f2 7:50:28 AM: debug discoverMediaRenderers called
84331174-ed11-4a07-800b-ac97b12ca9f2 7:50:28 AM: debug mediaRendererDiscovery called

(Ule) #261

Hi @Manana546, I can see it now, the mac address is different, I think the smartthing hub is not catching the confirmation response from the media renderer, I have experience this kind of problem once in 100 times when I install and uninstall the media renderer, I dont know why happens, but the solution I have follow is to change the mediarenderer ip address, you can change the ip directly in your mediarenderer or you can change it in the router. try it


(Manana546) #262

Well, that’s a bit annoying.

I changed the IP of the mediarenderer and now the discovery seems to work better when used in the Android app. The GUI still shows “0 devices” but the log seems a lot better.
Calling the discovery from the simulator still suffers from the same disapearance of confirmation responses.

EDIT: I also tried accessing 192.168.14.138:58137 in my browser, and that returns a proper XML. Added it to the post.

Log when using the Android app:

814a87be-65bb-4751-bd9e-05a287b0f676 09:44:57: debug verifyMediaRendererPlayer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:57: debug mediaRendererDiscovery called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:52: debug verifyMediaRenderer ip:192.168.14.138:58137 ssdpPath:/
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:52: debug verifyMediaRenderer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:52: debug verifyMediaRendererPlayer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:52: debug mediaRendererDiscovery called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:47: debug verifyMediaRenderer ip:192.168.14.138:58137 ssdpPath:/
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:47: debug verifyMediaRenderer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:47: debug verifyMediaRendererPlayer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:47: debug mediaRendererDiscovery called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:42: debug verifyMediaRenderer ip:192.168.14.138:58137 ssdpPath:/
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:42: debug verifyMediaRenderer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:42: debug verifyMediaRendererPlayer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:42: debug mediaRendererDiscovery called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:36: debug verifyMediaRenderer ip:192.168.14.138:58137 ssdpPath:/
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:36: debug verifyMediaRenderer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:36: debug verifyMediaRendererPlayer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:36: debug mediaRendererDiscovery called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:31: debug verifyMediaRenderer ip:192.168.14.138:58137 ssdpPath:/
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:31: debug verifyMediaRenderer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:31: debug verifyMediaRendererPlayer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:31: debug mediaRendererDiscovery called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:26: debug verifyMediaRenderer ip:192.168.14.138:58137 ssdpPath:/
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:26: debug verifyMediaRenderer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:26: debug verifyMediaRendererPlayer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:26: debug mediaRendererDiscovery called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:22: debug MediaRenderer device found[devicetype:04, mac:0005CD467294, ip:C0A80E8A, port:E319, ssdpPath:/, ssdpUSN:uuid:e85d14ac-60ae-1b4e-0080-0005cd467294::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1, hub:ad1c9cf5-5065-45b3-8880-6db2064eadfd]
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:22: debug MediaRenderer device found[devicetype:04, mac:0005CD467294, ip:C0A80E8A, port:E319, ssdpPath:/, ssdpUSN:uuid:e85d14ac-60ae-1b4e-0080-0005cd467294::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1, hub:ad1c9cf5-5065-45b3-8880-6db2064eadfd]
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:22: debug MediaRenderer device found[devicetype:04, mac:0005CD467294, ip:C0A80E8A, port:E319, ssdpPath:/, ssdpUSN:uuid:e85d14ac-60ae-1b4e-0080-0005cd467294::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1, hub:ad1c9cf5-5065-45b3-8880-6db2064eadfd]
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:22: debug MediaRenderer device found[devicetype:04, mac:0005CD467294, ip:C0A80E8A, port:E319, ssdpPath:/, ssdpUSN:uuid:e85d14ac-60ae-1b4e-0080-0005cd467294::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1, hub:ad1c9cf5-5065-45b3-8880-6db2064eadfd]
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:21: debug discoverMediaRenderers called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:21: debug mediaRendererDiscovery called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:15: debug verifyMediaRenderer ip:192.168.14.138:58137 ssdpPath:/
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:15: debug verifyMediaRenderer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:15: debug verifyMediaRendererPlayer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:15: debug mediaRendererDiscovery called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:10: debug verifyMediaRenderer ip:192.168.14.138:58137 ssdpPath:/
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:10: debug verifyMediaRenderer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:10: debug verifyMediaRendererPlayer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:10: debug mediaRendererDiscovery called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:05: debug verifyMediaRenderer ip:192.168.14.138:58137 ssdpPath:/
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:05: debug verifyMediaRenderer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:05: debug verifyMediaRendererPlayer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:44:05: debug mediaRendererDiscovery called
814a87be-65bb-4751-bd9e-05a287b0f676 09:43:59: debug verifyMediaRenderer ip:192.168.14.138:58137 ssdpPath:/
814a87be-65bb-4751-bd9e-05a287b0f676 09:43:59: debug verifyMediaRenderer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:43:59: debug verifyMediaRendererPlayer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:43:59: debug mediaRendererDiscovery called
814a87be-65bb-4751-bd9e-05a287b0f676 09:43:54: debug verifyMediaRenderer ip:192.168.14.138:58137 ssdpPath:/
814a87be-65bb-4751-bd9e-05a287b0f676 09:43:54: debug verifyMediaRenderer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:43:54: debug verifyMediaRendererPlayer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:43:54: debug mediaRendererDiscovery called
814a87be-65bb-4751-bd9e-05a287b0f676 09:43:49: debug verifyMediaRenderer ip:192.168.14.138:58137 ssdpPath:/
814a87be-65bb-4751-bd9e-05a287b0f676 09:43:49: debug verifyMediaRenderer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:43:49: debug verifyMediaRendererPlayer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:43:49: debug mediaRendererDiscovery called
814a87be-65bb-4751-bd9e-05a287b0f676 09:43:44: debug verifyMediaRenderer ip:192.168.14.138:58137 ssdpPath:/
814a87be-65bb-4751-bd9e-05a287b0f676 09:43:44: debug verifyMediaRenderer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:43:44: debug verifyMediaRendererPlayer called
814a87be-65bb-4751-bd9e-05a287b0f676 09:43:44: debug mediaRendererDiscovery called
814a87be-65bb-4751-bd9e-05a287b0f676 09:43:41: debug MediaRenderer device found[devicetype:04, mac:0005CD467294, ip:C0A80E8A, port:E319, ssdpPath:/, ssdpUSN:uuid:e85d14ac-60ae-1b4e-0080-0005cd467294::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1, hub:ad1c9cf5-5065-45b3-8880-6db2064eadfd]
814a87be-65bb-4751-bd9e-05a287b0f676 09:43:41: debug MediaRenderer device found[devicetype:04, mac:0005CD467294, ip:C0A80E8A, port:E319, ssdpPath:/, ssdpUSN:uuid:e85d14ac-60ae-1b4e-0080-0005cd467294::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1, hub:ad1c9cf5-5065-45b3-8880-6db2064eadfd]
814a87be-65bb-4751-bd9e-05a287b0f676 09:43:41: debug MediaRenderer device found[devicetype:04, mac:0005CD467294, ip:C0A80E8A, port:E319, ssdpPath:/, ssdpUSN:uuid:e85d14ac-60ae-1b4e-0080-0005cd467294::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1, hub:ad1c9cf5-5065-45b3-8880-6db2064eadfd]
814a87be-65bb-4751-bd9e-05a287b0f676 09:43:41: debug MediaRenderer device found[devicetype:04, mac:0005CD467294, ip:C0A80E8A, port:E319, ssdpPath:/, ssdpUSN:uuid:e85d14ac-60ae-1b4e-0080-0005cd467294::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1, hub:ad1c9cf5-5065-45b3-8880-6db2064eadfd]
814a87be-65bb-4751-bd9e-05a287b0f676 09:43:38: debug discoverMediaRenderers called
814a87be-65bb-4751-bd9e-05a287b0f676 09:43:38: debug mediaRendererDiscovery called

XML from 192.168.14.138:58137

<root xmlns="urn:schemas-upnp-org:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<device>
<deviceType>urn:schemas-denon-com:device:AiosDevice:1</deviceType>
<friendlyName>Bedroom</friendlyName>
<manufacturer>Denon</manufacturer>
<manufacturerURL>http://www.denon.com</manufacturerURL>
<modelName>HEOS 7</modelName>
<modelNumber>DWS-7000 3.0</modelNumber>
<serialNumber>NOT CONFIGURED</serialNumber>
<UDN>XXXXXXXXXXXXXXXXXXXXX</UDN>
<deviceList>
<device>
<pnpx:X_hardwareId xmlns:pnpx="http://schemas.microsoft.com/windows/pnpx/2005/11">VEN_121&DEV_30</pnpx:X_hardwareId>
<pnpx:X_compatibleId xmlns:pnpx="http://schemas.microsoft.com/windows/pnpx/2005/11">MS_DigitalMediaDeviceClass_DMR_V001</pnpx:X_compatibleId>
<pnpx:X_deviceCategory xmlns:pnpx="http://schemas.microsoft.com/windows/pnpx/2005/11">MediaDevices</pnpx:X_deviceCategory>
<df:X_deviceCategory xmlns:df="http://schemas.microsoft.com/windows/2008/09/devicefoundation">Multimedia.DMR</df:X_deviceCategory>
<df:X_containerId xmlns:df="http://schemas.microsoft.com/windows/2008/09/devicefoundation">{5cb01ae2-3a9e-1a10-0080-0005cd467294}</df:X_containerId>
<dlna:X_DLNADOC xmlns:dlna="urn:schemas-dlna-org:device-1-0">DMR-1.50</dlna:X_DLNADOC>
<deviceType>urn:schemas-upnp-org:device:MediaRenderer:1</deviceType>
<friendlyName>Bedroom</friendlyName>
<manufacturer>Denon</manufacturer>
<manufacturerURL>http://www.denon.com</manufacturerURL>
<modelName>HEOS 7</modelName>
<modelNumber>DWS-7000 3.0</modelNumber>
<serialNumber>NOT CONFIGURED</serialNumber>
<UDN>YYYYYYYYYYYYYYYYYYYYYYYYYYYY</UDN>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:RenderingControl:1</serviceType>
<serviceId>urn:upnp-org:serviceId:RenderingControl</serviceId>
<SCPDURL>RenderingControl/scpd.xml</SCPDURL>
<controlURL>RenderingControl/control</controlURL>
<eventSubURL>RenderingControl/event</eventSubURL>
</service>
<service>
<serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</serviceType>
<serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId>
<SCPDURL>ConnectionManager/scpd.xml</SCPDURL>
<controlURL>ConnectionManager/control</controlURL>
<eventSubURL>ConnectionManager/event</eventSubURL>
</service>
<service>
<serviceType>urn:schemas-upnp-org:service:AVTransport:1</serviceType>
<serviceId>urn:upnp-org:serviceId:AVTransport</serviceId>
<SCPDURL>AVTransport/scpd.xml</SCPDURL>
<controlURL>AVTransport/control</controlURL>
<eventSubURL>AVTransport/event</eventSubURL>
</service>
</serviceList>
</device>
<device>
<deviceType>urn:schemas-denon-com:device:AiosServices:1</deviceType>
<friendlyName>AiosServices</friendlyName>
<manufacturer>Denon</manufacturer>
<manufacturerURL>http://www.denon.com</manufacturerURL>
<modelName>HEOS 7</modelName>
<modelNumber>DWS-7000 3.0</modelNumber>
<serialNumber>NOT CONFIGURED</serialNumber>
<UDN>ZZZZZZZZZZZZZZZZZZZZ</UDN>
<serviceList>
<service>
<serviceType>urn:schemas-denon-com:service:GroupControl:1</serviceType>
<serviceId>urn:denon-com:serviceId:GroupControl</serviceId>
<SCPDURL>GroupControl/scpd.xml</SCPDURL>
<controlURL>GroupControl/control</controlURL>
<eventSubURL>GroupControl/event</eventSubURL>
</service>
<service>
<serviceType>urn:schemas-denon-com:service:ZoneControl:2</serviceType>
<serviceId>urn:denon-com:serviceId:ZoneControl</serviceId>
<SCPDURL>ZoneControl/scpd.xml</SCPDURL>
<controlURL>ZoneControl/control</controlURL>
<eventSubURL>ZoneControl/event</eventSubURL>
</service>
<service>
<serviceType>urn:schemas-denon-com:service:ErrorHandler:1</serviceType>
<serviceId>urn:denon-com:serviceId:ErrorHandler</serviceId>
<SCPDURL>ErrorHandler/scpd.xml</SCPDURL>
<controlURL>ErrorHandler/control</controlURL>
<eventSubURL>ErrorHandler/event</eventSubURL>
</service>
</serviceList>
</device>
</deviceList>
<presentationURL>settings</presentationURL>
</device>
</root>

(Manana546) #263

I have now identified the main issue!
It seems the XML structure in my device is a bit different from what the SmartApp expects.

The root.device contains a deviceList that contains the relevant devices, but the SmartApp only consideres the root.device at the moment. By including the devices in the deviceList I have now managed to get my renderer detected, but so far I have not achieved any playback or control.


(Ule) #264

Hi @Manana546, I can see the problem with the xml, the structure of description file , I´m going to add a loop to search inside the devices.

Let me some time to do it.

I will need you help me to test it,


(Ule) #265

Hi @Manana546, i will need the original file without replaced the xxxx and the yyy, I need to know what uuid is sent in the initial searching.


(Ule) #266

Hi @Manana546, I have update the media renderer connect, I have supposed the UDN of the device type is the same of the search of urn:schemas-upnp-org:device:MediaRenderer:1 , Try to use it and send me your comments.


(Manana546) #267

Hi @ule , your assumption is correct! The initial uuid is the yyyyy in my file.

The updated SmartApp can successfully discover and add the device, but control is not working and the speaker icon says “no present”. I had a brief look at the devicetype but could not see anything requiring change, but maybe I’m overlooking something.