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

Jellyfin Integration Dead #127737

Closed
coolhand72 opened this issue Oct 6, 2024 · 12 comments
Closed

Jellyfin Integration Dead #127737

coolhand72 opened this issue Oct 6, 2024 · 12 comments

Comments

@coolhand72
Copy link

coolhand72 commented Oct 6, 2024

The problem

Ever since the Jellyfin 10.9 upgrade, the integration does not communicate any information at all from my jellyfin server. When I delete the integration, I am able to re-install it with the appropriate credentials, so that part works. But after that, no media players are populated, and the integration reports 0 watching. Please refer to this issue for some history. I currently have Jellyfin at the core of my multimedia entertainment automations, but if it is no longer being supported, I will need to rework those automations. Just looking for some guidance on the future of this integration.

What version of Home Assistant Core has the issue?

core-2024.10.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Jellyfin

Link to integration documentation on our website

https://www.home-assistant.io/integrations/jellyfin

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented Oct 6, 2024

Hey there @j-stienstra, @ctalkington, mind taking a look at this issue as it has been labeled with an integration (jellyfin) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of jellyfin can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign jellyfin Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


jellyfin documentation
jellyfin source
(message by IssueLinks)

@joostlek
Copy link
Member

joostlek commented Oct 6, 2024

Please add more info about what your issue is, this issue doesn't add a lot of information that can help solving the issue you have

@coolhand72
Copy link
Author

Please take a look at this thread all the way to the end for greater context, but ever since the Jellyfin 10.9 upgrade, the integration does not communicate any information at all from my jellyfin server. When I delete the integration, I am able to re-install it with the appropriate credentials, so that part works. But after that, no media players are populated, and the integration reports 0 watching.

I am running Jellyfin on a docker container and home assistant also on a docker container on the same host. There are no logs.

@joostlek
Copy link
Member

joostlek commented Oct 6, 2024

Please enrich the issue itself instead of linking to other resources, this way issues can be picked up easier

@coolhand72
Copy link
Author

I would be happy to provide you additional information if you can tell me what you need to troubleshoot?

One user in other thread pointed out there were probably some API changes, at least looking at the TypeScript API client project, it is listed as "breaking changes" for the new 10.9.x releases of Jellyfin.

https://typescript-sdk.jellyfin.org/index.html#md:breaking-changes

And further, looking at jellyfin/jellyfin-apiclient-python#43 there might be a general issue with the latest pything client, so I assume there is a bit more work to be done.

And further that, after updating from 10.8.x to latest 10.9.x HA always reported "0 watching", which was used for some server shutdown automation but broke after the Jellyfin update 😸 thats why I took a look into this. Sorry for not having any clue how to solve this issue.

Then PixelPusher247, " changed to a webhook implementation and hadn't tried the integration again. After testing it right now it added a new media player on playback. All seems to work again. Closing issue. "

I don't know what pixelpusher247's solution was, but they closed the issue. Myself and other users continue to experience the same problem.

@joostlek
Copy link
Member

joostlek commented Oct 6, 2024

Okay so just update the issue for what you're experiencing and then someone can take a look.

@coolhand72
Copy link
Author

updated

@ctalkington
Copy link
Contributor

ctalkington commented Oct 9, 2024

I do think we can make a few updates since the new release of the python client but I'm personally not sure what is causing the issue for 10.9. I personally run 10.9.11 and have media players reporting playback status and active counts.

Do you encounter any errors with debugging on? What does your diagnostics dump look like? What types of clients?

@ctalkington
Copy link
Contributor

One thought, maybe try the Session Cleaner plugin, https://github.com/jellyfin/jellyfin-plugin-sessioncleaner

I do run this and it's scheduled task. I believe I originally ran into some issue in a 10.9.x release that lead me to install it. Worth a shot.

You could also try clearing the list of Devices from admin. Do you have any devices with special characters? I'm not aware of any issues with such but just throwing some thoughts out there.

Id also check the jellyfin logs when you expect playback to be reported to see if something is failing or being blocked.

@syphernl
Copy link
Contributor

I was experiencing the same issue (and also #126067).

It seems to have been resolved by removing the Jellyfin integration, restarting and adding it again.
New devices (my Google TV Streamer I added 2 week ago) that were not being picked up, show up in the integration just fine after re-adding the integration. The Active Clients entity is working fine as well.

However, what is (still) not working:

  • Clicking the pause button on the media_player.
  • Opening the media_player popup, going to Browse Media, selecting media and clicking play. Does nothing.

@coolhand72
Copy link
Author

Solution: It turns out, the solution for me was to double check the credentials of the jellyfin user profile being used with the integration. I don't know if it was required before, and if so, I don't know how it would have changed, but the check box for 'Allow this user to manage the server' was unchecked. After checking the box, the integration immediately worked. Thanks @ctalkington for your help and suggestions.

@ctalkington
Copy link
Contributor

I was experiencing the same issue (and also #126067).

It seems to have been resolved by removing the Jellyfin integration, restarting and adding it again. New devices (my Google TV Streamer I added 2 week ago) that were not being picked up, show up in the integration just fine after re-adding the integration. The Active Clients entity is working fine as well.

However, what is (still) not working:

* Clicking the `pause` button on the media_player.

* Opening the `media_player` popup, going to Browse Media, selecting media and clicking `play`. Does nothing.

feel f

I was experiencing the same issue (and also #126067).

It seems to have been resolved by removing the Jellyfin integration, restarting and adding it again. New devices (my Google TV Streamer I added 2 week ago) that were not being picked up, show up in the integration just fine after re-adding the integration. The Active Clients entity is working fine as well.

However, what is (still) not working:

* Clicking the `pause` button on the media_player.

* Opening the `media_player` popup, going to Browse Media, selecting media and clicking `play`. Does nothing.

Id have to review logic but control of media player depends on what the client reports to jellyfin as capabilites. If you believe your device supports playback control, please post a new issue with diagnostics

@github-actions github-actions bot locked and limited conversation to collaborators Nov 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants