Jellyfin integration

Yes. In this example, a “media_player.jellyfin_firefox”.
They become inactive in HA when inactive in Jellyfin

I have added the integration to HACS but I cannot figure out how to configure it and let home assistant know the address of my Jellyfin server. Does this need setup in configuration.yaml?

I’m trying to script a playlist to play through google home, but I can’t find the way.
Do I use the media_content_id: media-source / jellyfin / etc .... playlistname.xml or is there another line to write?.

Thanks!!

After adding the HACS integration you have to add it like a regular home assistant integration.

I would also be interested in this. I can’t find a way to play a stream url of the playlist from the server either.

It’s a generic question, actually.
The integration generates media ids, and when you browse via Google Cast, the cast integration calls back the integration to get the actual url to play.

I’ve opened a generic questions to see if others have clues:

I’ve been playing around with this a little bit and while it doesn’t use the media source feature, it’s a solid workaround until we figure that out. If you go to a particular item (episode, song, movie) in the Jellyfin web interface, you can generate a stream URL by right clicking on it. You can put that URL in the media_content_id field and as long as your device can access the URL it will play it. That URL does contain what appears to be the actual ID of the item in Jellyfin but using anything mentioned here with that ID doesn’t seem to work.

Hi, this integration works very well for me but I just have a technical question of curiosity, and i can’t find my answer in your code.
How does the polling work ? I mean, in debug mode in HA, I can see that the attributes of the media player that is playing are updated every second. HA polls jellyfin server every second ?
And when you’re not playing any media, HA polls as well at high frequency ?

It is just to be curious of how does it work.
Thanks.

The media playing part is handled through a websocket, which listen for events coming from Jellyfin.
That part is not actually poll but push.

Thank you for your explanation, i understand.
I supposed something like that but was not sure.

Anyway, well done, great integration.

When calling the browse service as below, I get a TypeError: async_browse_item() got an unexpected keyword argument 'id' error, full log here

service: jellyfin.browse
data:
  entity_id: media_player.jellyfin_google_tv_chromecast
  id: f137a2dd21bbc1b99aa5c0f6bf02a805

This is with the latest docker containers for Home Assistant and Jellyfin; I’m actually testing under a clean installation with minimal config due to another issue. It was also occurring with my long-standing setup, but I believe it was fine about six weeks ago when I first posted in this thread. I hadn’t made much use of the browse service in the time since then, so I’m not too sure if a specific change prompted the issue.

I’m using Jellyfin without a password, but to setup the integration it seems that the password field can’t be blank.

Is there a way to use this without a password for my Jellyfin User?

Thanks for your help!

1 Like

Are you able to extract the number of and user list of currently playing streams using this component?
Thanks

Question about using this with google cast.

I have 5 chromecast devices in my house; when I am in the Jellyfin app, I can cast to “Google Cast” which brings up a sub menu showing the individual devices. I’ve included screenshots. My list of devices also includes an Onkyo Receiver, which is outside of that.

It seems the automatically created entities include the receiver, but not the individual cast devices.

Is it possible to somehow manually add the cast devices? I don’t know how specifically cast works under the hood. My guess is no; what has to happen is I initiate casting from the jellyfin app, and once that’s an active player the HA integration would be able to find and control it, but not initiate?

DLNA

Screenshot at 2021-09-07 11-48-48

Hi.

I’ve just discovered Jellyfin integration and decided to try it. Howether, there is something wrong, when I try to set it up. What I did was:

  1. Install it using HACS (no problem with that)
  2. Check conf and restart
  3. After restart, went to Configuration>Integrations>Add integration. There was Jellyfin there, so I chose it and observerd “Please wait while Jellyfin is being setup” message for quite a long time. Finaly message changed to “Error
    Config flow could not be loaded”

How can I trouble shoot that? There is nothing concerning jellyfin in logs, except standard “We found a custom integration jellyfin which has not been tested by Home Assistant. …” message.

Best regards,
Piotr

Thanks for this integration! Love how this integrates with HA’s mediabrowser. One question about that: on my instance, I don’t see any album art, just empty square boxes. Both with individual songs/albums, and with folders, collections, genres, etc. Is this a bug, or are images simply not supported (yet)? Thanks!

No, it works. A common reason for this is mixing http and https, e.g. HA is in https and jellyfin in http, or vice-versa. Browsers typically reject mixed protocols.

Ah, that makes sense. Indeed I use HA via https, but connect to Jellyfin on localhost via http. Jellyfin is also externally accessible via a https reverse proxy, but trying to connect to that throws errors. I’ll investigate further.

OK got it to work in the end on the external https-only reverse proxy URL. Images load very slowly though, and often generate errors (I assume due to timeouts). Given that I also experience slow image loading in Jellyfin itself, I assume this is a Jellyfin issue, not an issue in the HA-integration or its interaction with Jellyfin.

Great work, Koying. Thank you for this! This is the only way I can get my Jellyfin to stream to my Chromecasts right now as I don’t have Android & IOS doesn’t cast. Life saver(wife saver, really).

1 Like