Hysen Labs
Open-source project
SmartThingsUle/DLNA-PLAYER avatar
SmartThingsUle

DLNA-PLAYER

Generic DLNA Player to Smartthings

100 stars255 forksGroovyLicense varies
01
DEEP OPEN-SOURCE ANALYSIS

DLNA-PLAYER: a SmartThings device type for media renderers

A SmartThings device type that lets the hub send messages and music to almost any DLNA media renderer, with play, stop, volume, and message modes, plus example apps.

02
DEEP OPEN-SOURCE ANALYSIS

What the device type does

DLNA-PLAYER is a SmartThings device type that lets SmartThings send messages and music to almost any DLNA media renderer device. The README reports more than 20 devices confirmed to work and more than 30 waiting on a confirmation list, which gives a sense of the compatibility testing so far. The project is written in Groovy, and the repository also includes example SmartApps that build on the device type.

03
DEEP OPEN-SOURCE ANALYSIS

Supported commands

The player supports a direct set of commands: play, stop, next, forward, mute and unmute, volume control, and showing media description. A message mode setting offers several options: messages enabled, messages disabled, messages on stopped, and messages on playing. These control when the renderer plays a custom message, which is the behavior several of the example apps rely on.

04
DEEP OPEN-SOURCE ANALYSIS

Example SmartApps

Several example applications are described in the README. Sonos Control by SmartThings plays or pauses a Sonos when certain actions take place in the home. Sonos Mood Music plays a selected song or station. Sonos Notify with Sound plays a sound or custom message through a Sonos when the mode changes or other events occur. Media Renderer Events plays a custom message, sound, or RadioTunes station through a media renderer when events happen.

05
DEEP OPEN-SOURCE ANALYSIS

Installation and revision history

Installation goes through the SmartThings IDE. On the New SmartApp page you select the From Code tab, copy the MediaRenderer Connect source from GitHub, paste it into the editor, and publish it For Me. The same process is repeated for the MediaRenderer Player device type, then you activate the media renderers that are found. A revision history notes version 1.9.5 added a protocol fix compatible with the x-rincon-mp3radio format that Sonos needs for external sources, and 1.9.2 added an external TTS function.

07
DEEP OPEN-SOURCE ANALYSIS

Official sources

08
Community notes

Community notes