Hi everyone ![]()
As announced in the topic of Home Assistant integrations to port, here is Jellyfin & Emby: a single integration for both servers (Jellyfin is a fork of Emby, the API is common), which automatically detects which server it is communicating with. @AlexTrovato, this is your request from August ![]()
[screenshot of the dashboard]
What it does
One device per player (TV app, phone, browser):
play, pause, stop, previous, next, rewind and fast forward, volume, mute
the playback state, compatible with the Music widget on the dashboard
the current title and remaining time
« during the intro » and « during the credits »: under Jellyfin 10.10+ with a segments plugin (Chapter Segments Provider, Intro SkipperâŠ), under Emby with its intro detection
One server device: current plays, transcodes, a summary of « who is watching what » and a counter per library.
Scenes
Four triggers, Playback started / paused / resumed / stopped, filterable by player and media type (movie, episode, music, live TVâŠ):
A movie starts on the living room TV â dim the lights
Pause â turn them back on
And two scene actions:
Display a message on a player: « Someone is at the door » over the movie
Play a media on a player: search for a title in the library (movie, series, album, artist, playlist) and play it, randomly if needed
Widgets
- Now playing: who is watching what, where, with the posters
- Player: the current playback in remote control (background image, title, remaining time, buttons). Blank setting = it follows what is playing; or choose a specific player
- Recently added: the posters of the latest movies, series or albums, the new episodes grouped by series
Installation
Gladys 5.1 minimum.
- Create an API key for Gladys: under Jellyfin, Dashboard â API Keys; under Emby, Settings â Advanced â API Keys
- In Gladys: Integrations â Multimedia â Jellyfin & Emby
- Enter the server URL (
http://server-ip:8096, or your https address) and the key, then Test the connection - Discovery tab: add the server and your players
A player only appears when it is connected to the server: open the app on the TV, then click on « Search for players ».
What I would like you to test 
I tested it on Jellyfin 10.11 and 12.1 and on Emby 4.10, with a simulated player. I am missing real conditions:
- your TV apps (Android TV, Fire TV, LG, SamsungâŠ): the buttons, the volume, the on-screen message
- Emby: everything, and especially the intro and the credits
- a server behind a reverse proxy: if the WebSocket does not pass, the integration falls back to a query every 15 s (let me know if this is the case, the logs report it)
In case of trouble, the integration logs, visible in Gladys, help me a lot.
This is a 0.2.0: the 1.0 will come with your feedback. Code, FR/EN doc and tests: GitHub - guim31/gladys-jellyfin · GitHub
