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

Hi
This seems like a great tool, but it keeps crashing on me. It scans my home and finds my Onkyo receiver and LG flat screen as DLNA devices, I select them and click next and I always get a message ‘SmartThings has crashed’. I’ve installed both the app and the device code in the smart things IDE. Has anyone else experienced this?
Thanks!

Hi @loz, SmartThings have problems with their servers, some times I get crash problem too when I install several devices to test, but after 8:00 PM I have less problems, could you verify what error appears in “live logging” from IDE, If the error its something like “to much actions 20 per second” its problem from smartthings servers, I suggest to install one by one your renderers, try and tell me what happens or if other error its appearing .

Thanks for the quick reply @ule - The crash is still happening irrespective of time. I am running the app on an LG G3 with Android 5 (Lollipop). Here is a copy and paste of the log -


6:07:22 AM: debug getChildDevices(false), children=1
6:05:25 AM: trace Scheduling ‘scheduledRefreshHandler’ for InstalledSmartApp: a3745f7d-f811-4f22-a571-e279ec89115d
6:05:24 AM: trace Deleting scheduled job ‘scheduledRefreshHandler’ for InstalledSmartApp: a3745f7d-f811-4f22-a571-e279ec89115d
6:05:24 AM: debug Executing lan discovery urn:schemas-upnp-org:device:MediaRenderer:1 on Home Hub via sendHubCommand
6:05:24 AM: debug syncDevices()
6:05:25 AM: debug MediaRenderer device found[devicetype:04, mac:0009B047ED09, ip:C0A80130, port:22B8, ssdpPath:/upnp_descriptor_0, ssdpUSN:uuid:5db0e44e-09e4-4eb9-aaed-4e0909b900b9::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1, hub:eb3081a9-f8a4-4ab4-a5ef-e1c857158a5a]
6:04:17 AM: debug MediaRenderer device found[devicetype:04, mac:0009B047ED09, ip:C0A80130, port:22B8, ssdpPath:/upnp_descriptor_0, ssdpUSN:uuid:5db0e44e-09e4-4eb9-aaed-4e0909b900b9::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1, hub:eb3081a9-f8a4-4ab4-a5ef-e1c857158a5a]
6:04:17 AM: trace Scheduling ‘scheduledRefreshHandler’ for InstalledSmartApp: a3745f7d-f811-4f22-a571-e279ec89115d
6:04:17 AM: trace Deleting scheduled job ‘scheduledRefreshHandler’ for InstalledSmartApp: a3745f7d-f811-4f22-a571-e279ec89115d
6:04:17 AM: debug Executing lan discovery urn:schemas-upnp-org:device:MediaRenderer:1 on Home Hub via sendHubCommand
6:04:17 AM: trace Home and null provided…creating subscription
6:04:17 AM: debug syncDevices()
6:04:16 AM: trace Scheduling ‘scheduledActionsHandler’ for InstalledSmartApp: a3745f7d-f811-4f22-a571-e279ec89115d
6:04:16 AM: trace Deleting all scheduled jobs for InstalledSmartApp: a3745f7d-f811-4f22-a571-e279ec89115d
6:04:16 AM: trace MediaRender (Connect) is attempting to unsubscribe from all events
6:04:16 AM: trace Deleting all scheduled jobs for InstalledSmartApp: a3745f7d-f811-4f22-a571-e279ec89115d

HI @loz, I dont see any error in logs, I have tryed several times the installation rigth now , and all its ok, I dont have an android to verify if android is the problem.
1.- in github I have leave 4 files, some have the description “old”, please verifiy you have installed the files MediaRenderer_Connect.groovy (v 1.5) and MediaRenderer_Player.groovy (v1.8). maybe you have installed some old in conbination with a new file.
I suggest you start over, close android app, and open it again
In android “My Apps section” select MediaRenderer (connect) and uninstall it
In android “Dasboard section” select the plus icon to open the “SmartSetup” section
In Android inside smartSetup select “My Apps” and the “MediaRenderer Connect” app.
follow the instructions in the app.
Select just 1 mediarenderer in list once your devices were found, this just to verify if some device is not blocking someting.
Could you clean your logs in ide page and copy all logs from MediaRenderer connect and speaker devices if you cant install the renderers.
I going to get and adroid device to test if android is getting problems, in iphone is working fine.

OK I did a re-install of everything. I have v1.5 of connect, and 1.8 of player. I re-setup the app inside ST Android and still having the same issue - can I send you a PM of some screenshots as I don’t want to annoy people by filling up this thread with copies of lots of lines of troubleshooting log code?

ok, try to send all the log

I’ve been having the same issue. Actually SmartThings has been crashing a lot after the last update, not just the media renderer. I also always get it now when trying to view device event history, etc… might be the Smartthings app!!!

@Ule I’ve managed to finally get it working. I’m still getting a lot of crash issues and messages, but after re-installing it a few times now the ‘speaker’ shows up in my ‘things’ section (it never did before) and I was able to start working on specific phrases for actions (doors opening etc.)

Some interesting thing to note (research info for you?):

I connected it to my LG TV (my LG TV is a DLNA device) and this plays every sound/phrase, even custom ones, with about a 5 second delay (e.g. I open a door, and 5 seconds later the phrase plays). After playing the phrase, it will go back to whatever audio was playing on the TV. It can only control the volume once and the TV stays at that volume once it reverts back to what you were listening to. If you activate a phrase a second time, the volume on the TV will not adjust. You have to power cycle to TV to get this feature again… and obviously the TV has to be on for it to play anything, which is not always practical… so for me I am most interested in using my DLNA receiver…

I have an Onkyo TX-NR717 DLNA receiver - this will only play the pre-installed phrases and the delay is longer at about 10 seconds. After playing the phrase it doesn’t go back to the previous input you were listening too. It just sits there in DLNA mode with nothing to play, but it will play a new sound if you action another phrase. It will not play a custom phrase… if you choose this the volume still adjusts but no audio comes out. The volume seems to adjust each time a phrase plays.

I’m happy to test, or provide other info if this is helpful. I’m not really a coder, but I am patient to test lots of setup scenarios - and hopefully I can add value to your great project that way.

Thanks for everything you are doing!

Loz

Hi @loz,

There are many mediaRenderers models, each one have different hardware but accept the same commands, a control point is the software to manage a media renderer, this programs can send and receive commands from MR, they works very well to send audio and change volume, Smart Things acts like control point but have limitation, it takes a lot of time in several commands, and the best way to play a song is to send several commands a one time, this kind of commands can freeze your media renderer, in each player inside the app there is a preference button, you can adjust the time between actions to verify if your mediaRenderer works better with some more seconds, just try to increase the seconds and test, If you find the best settings you can share the info to update the app and leave a default value to your renderer model , in this way other users going to have a better experience.

Please tell me what smartapp are you using to send the message.

Try first with sonos Notify with sound, you can find it in (+) > Actions > music > “play a sound or custom message through your sonos…”

Please tell me what control point are you using, try to use the control points I suggest in the first post, its better the container control point if your system support it, if not the denon app works fine to resume the last song, those control point needa a media server where your music is located, if you dont have a media server you can try with Technics music app.

Read the first post if you dont know what is control point or settings.

I think your TV can works increasing the time between actions.

When you send a message , you can set the volume message, the system will change the volume before play the message, and revert before play the previous song, But this actions take more time and process, your MediaRenderer can crash if the time between actions is not enough.

I suggest no to change the volume when message just to verify if the MR play the message and return to the last song, after your MR works fine try to change the volume in message and verify if changing the volume require more time between actions.

Some MR takes more time to play a url from internet, if your Internet service is slow it can takes more even if the audio is small, I think the MR cache the audio because in a second try the audio plays faster.

tip: once you have config sonos notify with sound , you can trigger the sound just pushing the app button, if you dont have some switches or sensors , you can set the action with a mode change.

let me know your experiences

Version Player v 1.9 and connector v1.9 released.

No present device status added
More stability
5 min auto correct port in software devices

Its necessary to update MediaRenderer Connect and Dlna-Player You must uninstall all your MediaRenderes and install again after update.

This update its a requeriment if you want to use airplay or bluetooth speakers from PC server

Check this post : [RELEASE] Airplay and Bluetooth Speakers Working from PC server

Just updated ST (Android version was updated tonight) and re-setup everything to Version 1.9. I’m finding the DLNA players, but am getting a new error when I try to proceed with the rest of the process. ‘Error - bad state. Unable to complete page configuration’. My log is this (much shorter than before):

1:22:43 AM: debug MediaRenderer device found[devicetype:04, mac:0009B047ED09, ip:C0A80130, port:22B8, ssdpPath:/upnp_descriptor_0, ssdpUSN:uuid:5db0e44e-09e4-4eb9-aaed-4e0909b900b9::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1, hub:eb3081a9-f8a4-4ab4-a5ef-e1c857158a5a]
1:22:42 AM: debug Executing lan discovery urn:schemas-upnp-org:device:MediaRenderer:1 on Home Hub via sendHubCommand

I get the same error. Can not complete the process…

I haven’t been able to get this to work relably no matter what version… PLAYED the barking dogs well, but that was it… no announcements… uninstalled, reinstalled… now I can’t even complete the process without the error… ‘bad state. Unabnle to complete the page configuration’. Can anyone get this new version to work without errors?

e59d1584-9743-4785-bc1f-cab97de32ee7 10:33:19 PM: debug MediaRenderer device found[devicetype:04, mac:7085C6E86BE0, ip:C0A8010A, port:C000, ssdpPath:/4/description.xml, ssdpUSN:uuid:29bbe0e1-1a6e-47f6-8f8d-7085c6e86be0::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1, hub:9c02a2f1-b731-4044-9d53-97ddecdc5230]
e59d1584-9743-4785-bc1f-cab97de32ee7 10:33:19 PM: debug MediaRenderer device found[devicetype:04, mac:9CBB3008ADE1, ip:C0A80110, port:C000, ssdpPath:/description.xml, ssdpUSN:uuid:773e1b66-1dd2-11b2-8237-bb14964cd44c::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1, hub:9c02a2f1-b731-4044-9d53-97ddecdc5230]
e59d1584-9743-4785-bc1f-cab97de32ee7 10:33:19 PM: debug MediaRenderer device found[devicetype:04, mac:9CBB3008ADE1, ip:C0A80110, port:C000, ssdpPath:/description.xml, ssdpUSN:uuid:773e1b66-1dd2-11b2-8237-bb14964cd44c::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1, hub:9c02a2f1-b731-4044-9d53-97ddecdc5230]
e59d1584-9743-4785-bc1f-cab97de32ee7 10:33:19 PM: debug MediaRenderer device found[devicetype:04, mac:7085C6E86BE0, ip:C0A8010A, port:C000, ssdpPath:/4/description.xml, ssdpUSN:uuid:29bbe0e1-1a6e-47f6-8f8d-7085c6e86be0::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1, hub:9c02a2f1-b731-4044-9d53-97ddecdc5230]
e59d1584-9743-4785-bc1f-cab97de32ee7 10:33:18 PM: debug Executing lan discovery urn:schemas-upnp-org:device:MediaRenderer:1 on Home Hub via sendHubCommand

Hi @loz, I have tested rigth now and all is working fine, I have not andorid to test, I’m installing from iphone. there are not problems , warnings or somethinge else. if therer are problems with code, in logs must apeears the problems, but in logs you sent there are not problems, I think must be android problem or smartthings problems, could you try with an ios device?

Unfortunately I don’t have an iOS device :frowning: I am not an ‘Apple’ household. How could we approach troubleshooting the Android world - happy to try and help where I can.

I too have only android devices, and I’ve tested 3 with all the same results. I agree, the issue is more than likely Smartthings on Android. It happens at the last step as soon as you press done. Once you press done, you get the error, with nothing logged. What would you suggest to try and trouble shoot the issue?

Thank you;

I have opened a ticket on this issue as it seems to potentially be a bigger issue…

Are any other Android users having this issue :

See this post as well, other android users are apparently getting the same or simular error…

Error - bad state. Unable to complete page configuration.

1 Like

I installed arc welder for chrome on my laptop and run the old ST android app on there for all my config for now. 1.7.2 crashed on almost everything right now.

Ray,

Where did you get the old .apk for smartthings? I may go with that option until they fix the app.

Thank you;

Here is 1.6.9