music-assistant / hass-music-assistant

Turn your Home Assistant instance into a jukebox, hassle free streaming of your favorite media to Home Assistant media players.
Apache License 2.0
1.3k stars 47 forks source link

Plex DLNA server not being added #520

Closed bmorgan99 closed 2 years ago

bmorgan99 commented 2 years ago

What version of Music Assistant has the issue?

2022.6.6

The problem

The DLNA integration immediately spotted and added my Plex server and I can fully access it from Windows and VLC. I can see in the logs that media_player is trying to hookup but it never happens.

How to reproduce

n/a

Relevant log output

initially 2022-06-26 15:40:59 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.plex

2022-06-26 15:41:14 DEBUG (MainThread) [homeassistant.components.dlna_dms.config_flow] async_step_ssdp: discovery_info SsdpServiceInfo(upnp={'deviceType': 'urn:schemas-upnp-org:device:MediaServer:1', 'friendlyName': 'Plex Media Server: Gameroom', 'manufacturer': 'Plex, Inc.', 'manufacturerURL': 'http://www.plexapp.com/', 'modelDescription': 'Plex Media Server', 'modelName': 'Plex Media Server', 'modelNumber': '1.27.1.5916', 'modelURL': 'http://www.plexapp.com/', 'UDN': 'uuid:117f92ac-9266-cf30-dcd0-66f63d1baeff', 'X_DLNADOC': 'DMS-1.50', 'iconList': {'icon': [{'mimetype': 'image/png', 'width': '260', 'height': '260', 'depth': '24', 'url': '/proxy/ea3d7bca9ffdf9dec5e8/260x260.png'}, {'mimetype': 'image/png', 'width': '120', 'height': '120', 'depth': '24', 'url': '/proxy/1ad6422f43c5de70efb8/120x120.png'}, {'mimetype': 'image/png', 'width': '48', 'height': '48', 'depth': '24', 'url': '/proxy/58a4df6c6f6c44329bd5/48x48.png'}, {'mimetype': 'image/jpeg', 'width': '260', 'height': '260', 'depth': '24', 'url': '/proxy/83ba85a005be00cfa67c/260x260.jpg'}, {'mimetype': 'image/jpeg', 'width': '120', 'height': '120', 'depth': '24', 'url': '/proxy/56f7fd8c853dfcdbd354/120x120.jpg'}, {'mimetype': 'image/jpeg', 'width': '48', 'height': '48', 'depth': '24', 'url': '/proxy/f331422f926de43b6ea7/48x48.jpg'}]}, 'serviceList': {'service': [{'serviceType': 'urn:microsoft.com:service:X_MS_MediaReceiverRegistrar:1', 'serviceId': 'urn:microsoft.com:serviceId:X_MS_MediaReceiverRegistrar', 'SCPDURL': '/X_MS_MediaReceiverRegistrar/117f92ac-9266-cf30-dcd0-66f63d1baeff/scpd.xml', 'controlURL': '/X_MS_MediaReceiverRegistrar/117f92ac-9266-cf30-dcd0-66f63d1baeff/control.xml', 'eventSubURL': '/X_MS_MediaReceiverRegistrar/117f92ac-9266-cf30-dcd0-66f63d1baeff/event.xml'}, {'serviceType': 'urn:schemas-upnp-org:service:ContentDirectory:1', 'serviceId': 'urn:upnp-org:serviceId:ContentDirectory', 'SCPDURL': '/ContentDirectory/117f92ac-9266-cf30-dcd0-66f63d1baeff/scpd.xml', 'controlURL': '/ContentDirectory/117f92ac-9266-cf30-dcd0-66f63d1baeff/control.xml', 'eventSubURL': '/ContentDirectory/117f92ac-9266-cf30-dcd0-66f63d1baeff/event.xml'}, {'serviceType': 'urn:schemas-upnp-org:service:ConnectionManager:1', 'serviceId': 'urn:upnp-org:serviceId:ConnectionManager', 'SCPDURL': '/ConnectionManager/117f92ac-9266-cf30-dcd0-66f63d1baeff/scpd.xml', 'controlURL': '/ConnectionManager/117f92ac-9266-cf30-dcd0-66f63d1baeff/control.xml', 'eventSubURL': '/ConnectionManager/117f92ac-9266-cf30-dcd0-66f63d1baeff/event.xml'}]}}, ssdp_usn='uuid:117f92ac-9266-cf30-dcd0-66f63d1baeff::urn:schemas-upnp-org:device:MediaServer:1', ssdp_st='urn:schemas-upnp-org:device:MediaServer:1', ssdp_location='http://192.168.1.5:32469/DeviceDescription.xml', ssdp_nt=None, ssdp_udn='uuid:117f92ac-9266-cf30-dcd0-66f63d1baeff', ssdp_ext='', ssdp_server='UPnP/1.0 DLNADOC/1.50 Platinum/1.0.5.13', ssdp_headers={'Location': 'http://192.168.1.5:32469/DeviceDescription.xml', 'Cache-Control': 'max-age=1800', 'Server': 'UPnP/1.0 DLNADOC/1.50 Platinum/1.0.5.13', 'EXT': '', 'BOOTID.UPNP.ORG': '1656203119', 'CONFIGID.UPNP.ORG': '15716', 'USN': 'uuid:117f92ac-9266-cf30-dcd0-66f63d1baeff::urn:schemas-upnp-org:device:MediaServer:1', 'ST': 'urn:schemas-upnp-org:device:MediaServer:1', 'Date': 'Sun, 26 Jun 2022 20:40:55 GMT', '_location_original': 'http://192.168.1.5:32469/DeviceDescription.xml', 'location': 'http://192.168.1.5:32469/DeviceDescription.xml', '_timestamp': datetime.datetime(2022, 6, 26, 15, 40, 58, 132316), '_host': '192.168.1.5', '_port': 57455, '_local_addr': ('192.168.1.9', 50907), '_remote_addr': ('192.168.1.5', 57455), '_udn': 'uuid:117f92ac-9266-cf30-dcd0-66f63d1baeff'}, x_homeassistant_matching_domains={'dlna_dms'})
2022-06-26 15:41:14 DEBUG (MainThread) [homeassistant.components.dlna_dms.config_flow] _async_parse_discovery: location: http://192.168.1.5:32469/DeviceDescription.xml, USN: uuid:117f92ac-9266-cf30-dcd0-66f63d1baeff::urn:schemas-upnp-org:device:MediaServer:1

then every 2 minutes

http://192.168.1.5:32469/DeviceDescription.xml
2022-06-26 14:17:45 DEBUG (MainThread) [homeassistant.components.dlna_dms] SSDP SsdpChange.ALIVE notification of device uuid:117f92ac-9266-cf30-dcd0-66f63d1baeff::urn:schemas-upnp-org:device:MediaServer:1 at http://192.168.1.5:32469/DeviceDescription.xml

Additional information

homeassistant.components.media_player: debug homeassistant.components.dlna_dms: debug homeassistant.components.dlna_dmr: debug

What version of Home Assistant Core are your running

2022.6.7

What type of installation are you running?

Home Assistant Supervised

On what type of hardware are you running?

Generic x86-64 (e.g. Intel NUC)

erkr commented 2 years ago

Hi Welcome to MA. Just to be sure. Are you trying to use Plex as a media provider (not supported, mount a share to the raw media is an option. Described in the FAQ)? Or as a player? Best Eric

bmorgan99 commented 2 years ago

Yes, I guess my comprehension is lacking. Is that feature coming? I'll give the mount thing a go.

On Mon, Jun 27, 2022 at 2:56 AM Eric @.***> wrote:

Hi Welcome to MA. Just to be sure. Are you trying to use Plex as a media provider (not supported, mount a share to the raw media is an option. Described in the FAQ)? Or as a player? Best Eric

— Reply to this email directly, view it on GitHub https://github.com/music-assistant/hass-music-assistant/issues/520#issuecomment-1167011336, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHEX2GBGOWGA6B43T33TRF3VRFNCVANCNFSM5Z4S5O5Q . You are receiving this because you authored the thread.Message ID: @.***>

-- Bruce Morgan @.***

marcelveldt commented 2 years ago

No, Music Assistant connecting to another Music Server (Like Plex, Emby, LMS etc.) will probably never be implemented as MA is considered a (Music-only/focused) alternative for those. But you never know. If it receives much user votes, never say never....

The other way around, MA being a (DLNA) source for those Media Servers is more likely to happen. In that case the music collection lives in MA and it can share that with the other platforms, just like it can send playback to supported platforms now.

If you want your music in MA, connect it to your streaming provider(s) or make sure it can access the local files. Development focus for MA will be in extending the features and have more music providers supported, including a way to directly connect a NAS/remote file location instead of mount workarounds.

erkr commented 2 years ago

@bmorgan99 I will close this issue here. Feel free to add a feature request in the discussions section for Plex server support. Best Eric