home-assistant.io/source/_integrations/dlna_dmr.markdown

3.0 KiB

title description ha_category ha_release ha_iot_class ha_config_flow ha_codeowners ha_domain ha_platforms ha_ssdp
DLNA Digital Media Renderer Instructions on how to integrate a DLNA DMR device into Home Assistant.
Media Player
0.76 Local Push true
@StevenLooman
@chishm
dlna_dmr
media_player
true

The dlna_dmr platform allows you to control a DLNA Digital Media Renderer, such as DLNA enabled TVs or radios.

Please note that some devices, such as Samsung TVs, are rather picky about the source used to play from. The TTS service might not work in combination with these devices. If the play_media service does not work, please try playing from a DLNA/DMS (such as MiniDLNA).

{% include integrations/config_flow.md %}

Options

Options for DLNA DMR devices can be set going to Configuration -> Devices & Services -> DLNA Digital Media Renderer -> Configuration.

{% configuration_basic %} Event listener port: description: "Local port to listen on for events sent by the DLNA device. If this is not set, a random port will be allocated. Use this if you need a specific incoming port for firewall or NAT reasons." Event listener callback URL: description: "Local URL destination for events sent by the DLNA device. It should be of the form http://{host}:{port}/notify, where keywords {host} and {port} will be automatically filled-in but can be set explicitly here, e.g. http://192.88.99.1:5555/notify. Use this if the local IP address or port seen by Home Assistant is not what the device should connect to, because of Network Address Translation (NAT)." Poll for device availability: description: "Periodically try to connect to the DLNA device, even if it is unavailable. Enable this if SSDP advertisements sent by the device are not received by Home Assistant, e.g. when IP multicast is broken on your network." {% endconfiguration_basic %}

Services

DLNA devices can support a range of features. Depending on the device itself, the following media_player services may be supported:

  • media_player.volume_up, media_player.volume_down, and media_player.volume_set
  • media_player.volume_mute
  • media_player.media_play
  • media_player.media_pause and media_player.media_play_pause
  • media_player.media_stop
  • media_player.media_next_track
  • media_player.media_previous_track
  • media_player.play_media
  • media_player.shuffle_set
  • media_player.repeat_set
  • media_player.select_sound_mode

Playing media

Most DLNA DMR devices can play media from local HTTP servers. For best results, use HTTP instead of HTTPS, and refer to the server using an IP address instead of a hostname, e.g. http://192.168.1.1:8080/song.mp3.

Media sources

The DLNA Digital Media Renderer integration can browse any configured Media Source. Displayed media will be filtered based on the capabilities of the DLNA DMR device.