SmartThings Community

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

dth_speakers
dth_voice
dth_alerts
(Chuck) #34

I have not tried BigTalker yet, but using the Sonos code, I have setup notifications for people coming and going. Used Events to Trigger Alerts, and Custom Messages (which appears to create a instant TTS mp3 routed from amazon servers, played on your device). Have not cared to try any music streams yet.

When looking at your DLNA device, the lower PLAY button activates a internet radio station. It is easy to confuse that with the above PLAY button.

On my Fiance’s iPhone, i installed the program ULE recommended “Browse UPnP” for iOS on the App Store and it showed many of the devices around my house that were DLNA. You then click on the item and it states the schemas. You need to look for “urn:schemas-upnp-org:device:MediaRenderer:1”

I did not have any luck with various Free iOS apps for sending custom notifications to iPhone or iPad yet.

After some searching, and testing, i can recommend a similar app for Android, its called “UPnP Tool” on the Google Play Store.

That will allow you to verify if your device states MediaRenderer:1.

Glad to hear it’s working on the Squeezebox. Id love to buy some cheap $40 Android tablets and mount them in various rooms however none seem to have very good speakers.

Hopefully I can make some time this weekend to play some more, you guys are making me jealous!

0 Likes

Alarm that plays a song or sound on the mobile device
Portable speakers - mid range - restricted to sonos for a long time?
(Greg) #35

Anyone know of an iOS app that will act as a DLNA renderer? This would work perfectly with my current setup of old iPhone Manything security cameras.

0 Likes

(Ule) #36

New version available v 1.5

0 Likes

(Isriam) #37

thank you for the update! if anyone can find an ios app that is a dlna renderer that would be awesome

1 Like

(Greg) #38

@ule @chuckc81 I installed the UPnPlay app on a 2-3 year old Galaxy3 Tablet, but have’t had any luck discovering it as a media renderer. Do you have any tips for getting this app to work? If it’s an os limitation, any thoughts on how far I’ll have to roll back android to get it to work?

Thanks

0 Likes

(Brian S. Lowrance) #39

@ule

I have the devicetype and smartapp installed. When I launch the app, it just continuously scans without finding anything.
My UPNP player is on 10.0.0.13 and here is what Live Logging shows when it scans that IP:

10:54:41 PM: debug Executing GET /MediaRenderer/desc.xml HTTP/1.1
HOST: 10.0.0.13:49154

That’s it, it shows others hosts as well that are not media renderer’s, but it doesn’t request /MediaRenderer/desc.xml for those like it does the expected device (10.0.0.13). Here is a log from another host that is not a DLNA / MediaRenderer device:

10:54:37 PM: debug Executing GET / HTTP/1.1
HOST: 10.0.0.144:1025

The DLNA MediaRenderer device is a Yamaha RX-V671 and lists it is DLNA 1.5 certified. UPNP Browser did show "urn:schemas-upnp-org:device:MediaRenderer:1"
http://usa.yamaha.com/products/audio-visual/av-receivers-amps/rx/rx-v671_black_u/

When I visit http://10.0.0.13:49154/MediaRenderer/desc.xml in my browser, I get the following XML:

<root xmlns="urn:schemas-upnp-org:device-1-0" xmlns:ms="urn:microsoft-com:wmc-1-0" xmlns:pnpx="http://schemas.microsoft.com/windows/pnpx/2005/11" xmlns:df="http://schemas.microsoft.com/windows/2008/09/devicefoundation" xmlns:yamaha="urn:schemas-yamaha-com:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<device ms:X_MS_SupportsWMDRM="true">
<dlna:X_DLNADOC xmlns:dlna="urn:schemas-dlna-org:device-1-0">DMR-1.50</dlna:X_DLNADOC>
<pnpx:X_compatibleId>MS_DigitalMediaDeviceClass_DMR_V001</pnpx:X_compatibleId>
<pnpx:X_deviceCategory>MediaDevices Multimedia.DMR MediaDevice.DMC</pnpx:X_deviceCategory>
<pnpx:X_hardwareId>VEN_0033&DEV_0006&REV_01</pnpx:X_hardwareId>
<df:X_deviceCategory>Multimedia.DMR</df:X_deviceCategory>
<microsoft:magicPacketWakeSupported xmlns:microsoft="urn:schemas-microsoft-com:WMPNSS-1-0">0</microsoft:magicPacketWakeSupported>
<microsoft:magicPacketSendSupported xmlns:microsoft="urn:schemas-microsoft-com:WMPNSS-1-0">1</microsoft:magicPacketSendSupported>
<deviceType>urn:schemas-upnp-org:device:MediaRenderer:1</deviceType>
<friendlyName>RX-V671</friendlyName>
<manufacturer>YAMAHA CORPORATION</manufacturer>
<manufacturerURL>http://www.yamaha.com/</manufacturerURL>
<modelDescription>AV Receiver</modelDescription>
<modelName>RX-V671</modelName>
<modelNumber>V671</modelNumber>
<modelURL>http://www.yamaha.com/</modelURL>
<serialNumber>xxxxxxxx</serialNumber>
<UDN>uuid:9ab0c000-f668-11de-9976-xxxxxxxxxxxx</UDN>
<iconList>
<icon>
<mimetype>image/jpeg</mimetype>
<width>48</width>
<height>48</height>
<depth>24</depth>
<url>/Icons/48x48.jpg</url>
</icon>
<icon>
<mimetype>image/jpeg</mimetype>
<width>120</width>
<height>120</height>
<depth>24</depth>
<url>/Icons/120x120.jpg</url>
</icon>
<icon>
<mimetype>image/png</mimetype>
<width>48</width>
<height>48</height>
<depth>24</depth>
<url>/Icons/48x48.png</url>
</icon>
<icon>
<mimetype>image/png</mimetype>
<width>120</width>
<height>120</height>
<depth>24</depth>
<url>/Icons/120x120.png</url>
</icon>
</iconList>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:AVTransport:1</serviceType>
<serviceId>urn:upnp-org:serviceId:AVTransport</serviceId>
<SCPDURL>/AVTransport/desc.xml</SCPDURL>
<controlURL>/AVTransport/ctrl</controlURL>
<eventSubURL>/AVTransport/event</eventSubURL>
</service>
<service>
<serviceType>urn:schemas-upnp-org:service:RenderingControl:1</serviceType>
<serviceId>urn:upnp-org:serviceId:RenderingControl</serviceId>
<SCPDURL>/RenderingControl/desc.xml</SCPDURL>
<controlURL>/RenderingControl/ctrl</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/desc.xml</SCPDURL>
<controlURL>/ConnectionManager/ctrl</controlURL>
<eventSubURL>/ConnectionManager/event</eventSubURL>
</service>
</serviceList>
<presentationURL>http://10.0.0.13/</presentationURL>
</device>
<yamaha:X_device>
<yamaha:X_URLBase>http://10.0.0.13:80/</yamaha:X_URLBase>
<yamaha:X_serviceList>
<yamaha:X_service>
<yamaha:X_specType>
urn:schemas-yamaha-com:service:X_YamahaRemoteControl:1
</yamaha:X_specType>
<yamaha:X_controlURL>/YamahaRemoteControl/ctrl</yamaha:X_controlURL>
<yamaha:X_unitDescURL>/YamahaRemoteControl/desc.xml</yamaha:X_unitDescURL>
</yamaha:X_service>
</yamaha:X_serviceList>
</yamaha:X_device>
</root>
0 Likes

UPnP DimmableLight Device
(Ule) #40

HI rayzubock

I have updated the media renderer conect, now show in logs the MR found

Update the MR connect , the new file is in github

Launch the connect from phone app , and verify the logs in IDE

The logs can show me the problem and I can fix it.

Send me the logs.

Example:

MediaRenderer device found [devicetype:04, mac:00077777777, ip:C0A8778C, port:1F62, ssdpPath:/description.xml, ssdpUSN:uuid:5f9ec1b3-ed59-2365-4530-0008f31f8854::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1, hub:b323a0c3-2c0d-495c-46d6-12d3bb66676c]

Thanks

0 Likes

(Brian S. Lowrance) #41

PM’d you the logs from the updated version.

0 Likes

(Greg) #42

@chuckc81 how did the sabrent receiver work? Would love to get this app working but I don’t have any compatible hardware.

0 Likes

#43

Just an update for me. UPnpPlay was not work for me on android b/c by default the local media renderer is disabled. A settings changed got it to work and I got some sounds to play. Now I just need to work on some viable use cases. :smile:

And as for the “My Apps” section not appearing after selecting “+”. Apparently you need to log out of the android app and log back in to see it. I know see that option and see all of my custom apps. Hopefully that doesn’t need to be done everytime I add a new SmartApp.

0 Likes

(Daniel Hamel) #44

Hey man, it’s working great except i get a error when refreshing:
java.lang.SecurityException: Invoking methods on class groovy.lang.GString$2 is not allowed @ line 268

0 Likes

(Ule) #45

Hi @trueppp , I have updated the code with the new fixes, please share your media renderer model to increase the working list, thanks

0 Likes

Rocki = Cheap Sonos Alternative?
(Daniel Hamel) #46

Will test,

Im using Kodi (on PC) and XBMC on ARM

0 Likes

(Daniel Hamel) #47

Getting this when trying to update the DeviceType:

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
script14248972482462092552932.groovy: 141: Method definition not expected here. Please define the method at an appropriate place or perhaps try using a block/Closure instead. at line: 141 column: 1. File: script14248972482462092552932.groovy @ line 141, column 1.
def parse(description) {
^

1 error

0 Likes

(Ule) #48

Sorry I did not replace all the code, fixed, thanks

0 Likes

(Daniel Hamel) #49

Working great now :smiley: thanks.

Should Custom messages work?

0 Likes

(Ule) #50

Yes , Custom message works, some times Custom Messages take more time to play, you can adjust the delay before message in preference. I use “sonos notify with sound” to test the app, the Media Renderer app works with any sonos app, send your comments to improve the device

0 Likes

#51

On the squeezebox boom the alert sounds are working fine, but I cannot get a custom message to play. I’ve tested this on my actual Sonos, and there is no problem there.

I also cannot get the weather report function to work on my squeezebox, but I can play any music URL with no problem. So it’s functioning as a DLNA renderer but something is preventing it from doing all that it should.

0 Likes

(Ule) #52

Hi @pd_ in player preference there is delay before messages, some media renderers take more time to play a http file, try to increase the time before the message, if you have problems to resume the playing song you can increase the time between actions,

0 Likes

(Daniel Hamel) #53

Ok, my Kodi box takes about 8 seconds to load a file so that must be it…I lose the start of any local song I push.

Also…do you know a good way to get a radio station to work? I start this up on my player: http://4293.live.streamtheworld.com:80/CKOIFMAAC_SC. I can select it but it wont start on any device that I have through smartthings

0 Likes