Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Stream music to Mopidy #81

Open
datdamnzotz opened this issue Mar 14, 2022 · 5 comments
Open

Feature Request: Stream music to Mopidy #81

datdamnzotz opened this issue Mar 14, 2022 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@datdamnzotz
Copy link

Question - Feature request
Is there a way to stream a Plex music library to a mopidy media player?
I'm using the mopidy integration here as various different room media players:
https://github.com/bushvin/hass-integrations#mopidy v1.4.6
This is talking to Mopidy 3.2.0 on various raspberry PI's.

I've tried different card configurations like:

Card Configuration

type: custom:plex-meets-homeassistant
protocol: https
sort: ''
playTrailer: false
showExtras: false
showSearch: true
ip: plex.local
token: <yup>
port: '443'
entity: media_player.mediaPI (or cast | media_player.mediaPI)
libraryName: Music

From the native mopidy media player, the DLNA Server picker coming from plex plays music just fine...
image
I would rather use this interface for the picker, because it rocks.

or is there a good way to format the media_content_id the mopidy integration uses as a pre/post script type of deal coming out of plexmeetshomeassistant.

Movies work fine to the TV.

Checks
Please check below if true:

[x] I am running Home Assistant on HTTP protocol
[x] I am running BOTH Home Assistant AND Plex on HTTPS protocol
[x] My Plex server is accessible through protocol, port and ip/hostname I have specified for the card.
[x] My Plex server is running on HTTPS and has a valid certificate.

Plex Version
Version 1.25.6.5577

@JurajNyiri
Copy link
Owner

Hello, new target player would need to be added.

Could you please share how do you play music from plex on mpd target via a service call?

@datdamnzotz
Copy link
Author

datdamnzotz commented Mar 14, 2022

Currently it is through the mopidy add-on https://github.com/bushvin/hass-integrations#mopidy
It shows up in a media player card like so.

type: media-control
entity: media_player.livingroompi

image

Click the play button
I get the media browser, select DLNA
image

Drill down to the media, and hit the play button.
image

@datdamnzotz
Copy link
Author

That device shows up like this
image

@datdamnzotz
Copy link
Author

Playing looks like this
image

@datdamnzotz
Copy link
Author

datdamnzotz commented Mar 14, 2022

Calling the service like so (sorry had to dig how to do this)

service: media_player.play_media
data:
  media_content_type: music
  media_content_id: http://192.168.1.7:8123/local/audio/justtesting.mp3  or what ever url.
target:
  entity_id: media_player.livingroompi

Plays the file on the device.

@JurajNyiri JurajNyiri added the enhancement New feature or request label Apr 21, 2022
@JurajNyiri JurajNyiri changed the title Question/Feature Request - Stream music to Mopidy Feature Request: Stream music to Mopidy Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants