Jellyfin
Jellyfin 集成会将 Jellyfin 服务器作为媒体源公开到 Home Assistant 中。 当前仅支持音乐、电影和电视剧资料库。其他资料库不会显示在媒体浏览器中。此集成已在 Jellyfin server 10.6.4 及更高版本上测试通过。
此外,此集成还会将每个连接到 Jellyfin 服务器的媒体会话设置为 Home Assistant 中的媒体播放器,以便为每个会话提供媒体控制。
在 Home Assistant 中以播放器上下文浏览媒体时,会显示所有 Movie 和 Series 类型的资料库。
如果客户端支持,此集成还会创建一个 Remote 实体,用于向客户端发送遥控命令。例如,可以让客户端向右移动两次、向下移动一次,然后选择当前焦点项:
此集成可通过 UI 配置。前往 设置 > 设备与服务 添加。
Options
To define options for Jellyfin, follow these steps:
-
In Home Assistant, go to Settings > Devices & services.
-
If multiple instances of Jellyfin are configured, choose the instance you want to configure.
-
On the card, select the cogwheel
. - If the card does not have a cogwheel, the integration does not support options for this device.

-
Edit the options, then select Submit to save the changes.
操作
浏览媒体
您可以使用 media_player.browse_media 操作逐步浏览 Jellyfin 资料库,以查找想要播放的媒体。
开始浏览时,不设置 media_content_id 即可浏览根节点。
示例:
响应
搜索媒体
您可以使用 media_player.search_media 操作查找想要播放的媒体。
示例:
响应
播放媒体
要在任意播放器上播放媒体,您首先需要通过浏览媒体或搜索媒体找到想播放内容的 media_content_id。
示例:
在支持播放的 Jellyfin 客户端上播放电影。

