Jump to content
mopsiptv

Home Assistant - media_player.play_media with emby?

Recommended Posts

mopsiptv

Hello! Excuse my bad English.

I want to create a button on my dashboard that launches a specific video or playlist on my TV (Shield TV)

Anyone know how to do this? is it even possible?

Help would really be appreciated!

// Marcus, sweden

Share this post


Link to post
Share on other sites
Luke

Hi, have you tried using our remote control features to send content to our Android TV app?

Share this post


Link to post
Share on other sites
mopsiptv
36 minutes ago, Luke said:

Hi, have you tried using our remote control features to send content to our Android TV app?

Thank you for answering me! :)

I have this in my configuration.yaml :
media_player:
  - platform: emby
    host: 192.168.1.4
    port: 1337
    api_key: !secret api_emby

i know how to play/pause/volume control but not how to start a movie from home assistant. is it possible? :)

Share this post


Link to post
Share on other sites
cayars

What "Home Assistant" are you referring to?  Got a link to the product?

Share this post


Link to post
Share on other sites
mopsiptv
33 minutes ago, cayars said:

What "Home Assistant" are you referring to?  Got a link to the product?

I maby posted this topic in the wrong section :P 

This is it: https://www.home-assistant.io  

Share this post


Link to post
Share on other sites
mopsiptv
18 hours ago, Luke said:

Hi, have you tried using our remote control features to send content to our Android TV app?

Luke do you know how to do what i want? Is it possible to get a URL link for a movie/episode in my libary ? 

Share this post


Link to post
Share on other sites
chef

Try POST to this URL:

 

"http://localhost:8096/emby/Sessions/YOUR_SESSION_ID_TO_CONTROL/Playing?api_key=YOUR_API_KEY"

 

With something like this in the body:

 

{\"Arguments\":{\"ItemId\":\"MEDIA_ITEM_INTERNAL_ID\"}}"

 

I haven't exactly tried this (I will put it in POSTMAN now to see what works). But in the meantime, for more information I can point you to this git page:

 

https://github.com/MediaBrowser/Emby/wiki/Remote-control

 

 

 

Share this post


Link to post
Share on other sites
cayars

Nice find!

  • Like 1

Share this post


Link to post
Share on other sites
mopsiptv
20 hours ago, chef said:

I haven't exactly tried this (I will put it in POSTMAN now to see what works). But in the meantime, for more information I can point you to this git page:

 

Thank you! please do :) 

Share this post


Link to post
Share on other sites
Luke

Why wouldn't it be?

Share this post


Link to post
Share on other sites
mopsiptv
Posted (edited)

Just found out how to do it so i dont need help anymore

Edited by mopsiptv

Share this post


Link to post
Share on other sites
mopsiptv
Posted (edited)

nvm

Edited by mopsiptv

Share this post


Link to post
Share on other sites
mopsiptv
Posted (edited)

nvm

Edited by mopsiptv

Share this post


Link to post
Share on other sites
Luke
On 8/10/2020 at 2:40 PM, mopsiptv said:

Just found out how to do it so i dont need help anymore

What was the solution?

Share this post


Link to post
Share on other sites
mopsiptv
Posted (edited)
On 22/08/2020 at 18:21, Luke said:

What was the solution?

I followed the guide linked above. Took some time for me to understand it xD new to this!

But it works really good! I just added music playlists, but i want to start the music playlist in shuffle mode. Is that possible? There is no option for that what i can see? :) :

The following values should be included within post data:

ItemIds - A comma-delimited list of item id's
PlayCommand - PlayNow, PlayNext or PlayLast
StartPositionTicks - If supplied, this is the position in which the first title should start at.
MediaSourceId - If supplied, this is the media source that should be used for the first item
AudioStreamIndex - If supplied, this is the audio stream that should be used for the first item
SubtitleStreamIndex - If supplied, this is the subtitle stream that should be used for the first item
StartIndex - If supplied, and if playing a list of items, this is the index of the first item that should be played.

and, it is not possible to start casting with this? to play music on my google home speaker

Edited by mopsiptv

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...