DLNA Digital Media Renderer
The DLNA Digital Media Renderer integration集成将 Home Assistant 与您的设备、服务等连接和集成。 [Learn more] allows you to control a DLNA Digital Media Renderer
Note that some devices, such as Samsung TVs, are rather picky about the source used to play from. The TTS action might not work in combination with these devices. If the play_media action does not work, please try playing from a DLNA/DMS (such as MiniDLNA
配置
要将 DLNA Digital Media Renderer integration 添加到您的 Home Assistant 实例中,请使用此 My 按钮:
DLNA Digital Media Renderer 可以被 Home Assistant 自动发现。如果发现了实例, 它将显示为 已发现。您可以立即进行设置。
手动配置步骤
如果没有自动发现,请不要担心!您可以设置一个 手动集成条目:
-
浏览到您的 Home Assistant 实例。
-
转到
设置 > 设备与服务。 -
在右下角,选择
Add Integration 按钮。 -
从列表中选择 DLNA Digital Media Renderer。
-
按照屏幕上的说明完成设置。
Options
Options for DLNA DMR devices can be set by going to Settings > Devices & services > DLNA Digital Media Renderer > Configuration.
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.
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).
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.
Actions
DLNA devices can support a range of features. Depending on the device itself, the following media_player actions may be supported:
-
media_player.volume_up
,media_player.volume_down
, andmedia_player.volume_set
media_player.volume_mute
media_player.media_play
-
media_player.media_pause
andmedia_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.