Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Home Assistant Jellyfin Integration: How It Works

· 6 min read · Home Automation

In this article
  1. What Is Jellyfin and Why Pair It with Home Assistant?
  2. How the Integration Works
  3. Setting Up the Integration
  4. Practical Automations and Dashboards
  5. Common Issues and Troubleshooting
  6. Comparing with Other Media Server Integrations
  7. Costs and Hardware Considerations
  8. Security and Privacy Considerations
  9. Frequently Asked Questions

Yes, Home Assistant and Jellyfin can work together seamlessly, giving you a unified smart-home dashboard that controls your media server alongside your lights, sensors, and automations. This integration lets you monitor what’s playing, control playback, and trigger automations based on media events—all without leaving the Home Assistant interface.

What Is Jellyfin and Why Pair It with Home Assistant?

Jellyfin is a free, open-source media server that organizes your movies, TV shows, music, and photos, then streams them to any device. Home Assistant is a free, open-source home automation platform that connects hundreds of smart devices and services. Pairing them means your media server becomes just another part of your smart home ecosystem.

For example, you can set up an automation that dims your lights when a movie starts playing on Jellyfin, or have your TV turn off when playback pauses for more than 15 minutes. You can also view your Jellyfin library on a Home Assistant dashboard and launch a movie with a single tap.

How the Integration Works

Home Assistant connects to Jellyfin through its official integration, which uses the Jellyfin API. Once configured, Home Assistant can:

  • Show currently playing media (title, season, episode, progress, and poster).
  • Control playback: play, pause, stop, and seek.
  • Expose media players as entities that can be used in automations and scripts.
  • List libraries and browse media items.
  • Trigger events when playback starts, stops, or changes.

The integration works over your local network by default, but you can configure it to work remotely if you have a secure connection set up. It supports multiple Jellyfin users and can switch between them.

Setting Up the Integration

To get started, you need a running Jellyfin server and a Home Assistant instance. The setup process is straightforward:

  1. In Home Assistant, go to Settings > Devices & Services and click Add Integration.
  2. Search for “Jellyfin” and select it.
  3. Enter the URL of your Jellyfin server (e.g., http://192.168.1.100:8096).
  4. Provide a Jellyfin username and password (or an API key if you prefer).
  5. Home Assistant will discover available devices and add them as media player entities.

After setup, you’ll see entities like media_player.jellyfin for each active Jellyfin client. You can then add these to your dashboard or use them in automations.

Practical Automations and Dashboards

The real power comes from combining Jellyfin with other Home Assistant entities. Here are some ideas:

  • Movie night mode: When playback starts, dim the lights to 20% and set the thermostat to a comfortable temperature. When playback stops, restore the previous settings.
  • Pause reminder: If playback is paused for more than 10 minutes, send a notification to your phone asking if you want to stop the movie.
  • Media dashboard: Create a dashboard card that shows the Jellyfin library, lets you browse genres, and starts playback on your TV.
  • Sync with presence: When you leave home, pause all active Jellyfin sessions to save bandwidth.

To build these, you use Home Assistant’s automation editor. For example, the trigger would be state of the Jellyfin media player changing to “playing”, and the action would be a service call to light.turn_on with a brightness value.

Common Issues and Troubleshooting

While the integration is reliable, you might run into a few issues:

  • Connection errors: Ensure the Jellyfin server URL is correct and reachable from Home Assistant. If you use HTTPS with a self-signed certificate, you may need to disable SSL verification in the integration options.
  • Multiple users: The integration logs in as a specific user. If that user doesn’t have access to certain libraries, those items won’t appear. Create a dedicated user with appropriate permissions.
  • Playback control not working: Some Jellyfin clients (like web players) may not support remote control. Try using the official Jellyfin app on Android TV or iOS, which generally works better.
  • Slow discovery: If devices don’t appear immediately, restart Home Assistant and wait a few minutes.

If you’re still stuck, check the Home Assistant logs (Settings > System > Logs) for any Jellyfin-related errors.

Comparing with Other Media Server Integrations

You might also consider Plex or Emby, which have similar Home Assistant integrations. Here’s a quick comparison:

  • Jellyfin: Fully open-source and free, no premium features locked behind a paywall. The Home Assistant integration is official and actively maintained.
  • Plex: Proprietary but polished, with a robust Home Assistant integration. Requires a Plex account and some features (like hardware transcoding) are paid.
  • Emby: The commercial parent of Jellyfin. Its Home Assistant integration is community-based and less official.

If you value privacy and zero cost, Jellyfin is the best choice. If you prefer a more polished client experience, Plex might be worth considering.

Costs and Hardware Considerations

Both Jellyfin and Home Assistant are free to use. You’ll only pay for the hardware that runs them. A Raspberry Pi 4 or an old PC can handle both for a small household. For multiple simultaneous streams, you’ll want a more powerful machine with hardware transcoding support (e.g., Intel Quick Sync).

There are no subscription fees, but you may need to invest in a network-attached storage (NAS) device if you have a large media library. Many users run Jellyfin and Home Assistant on the same server to save electricity and simplify management.

Security and Privacy Considerations

Since Jellyfin and Home Assistant are self-hosted, you control your data. However, you must secure them:

  • Use strong passwords and enable two-factor authentication on both systems.
  • Keep your software updated to patch vulnerabilities.
  • If you expose them to the internet, use a reverse proxy with HTTPS and consider a VPN instead.
  • Don’t use default ports; change them to non-standard ones (e.g., 8123 for Home Assistant, 8096 for Jellyfin) to reduce automated attacks.

By default, the integration only works on your local network, which is the safest option. If you need remote access, set up a secure tunnel like WireGuard or Tailscale.

Frequently Asked Questions

Can I control Jellyfin with voice assistants like Alexa or Google Home?

Yes, but not directly. You can create a Home Assistant script that starts a specific movie or playlist, then expose that script to Alexa or Google Home via the Home Assistant Cloud or a custom skill. You’ll need to set up the respective integrations in Home Assistant first.

Does the integration work with Jellyfin’s live TV feature?

Yes, live TV channels appear as media sources. You can start watching a channel through Home Assistant, and the media player entity will show the channel name and current program. However, channel switching may be limited depending on the client.

Can I use Home Assistant to cast Jellyfin to a Chromecast?

Yes. You can use the built-in Cast integration in Home Assistant to send a Jellyfin stream URL to a Chromecast device. The easiest way is to use a Jellyfin client that supports casting, then control it through Home Assistant.

Why don’t I see any devices after adding the integration?

Make sure you have an active Jellyfin client (like the web player or a mobile app) playing something. Home Assistant only creates media player entities for clients that are currently connected. If nothing is playing, the entity might not appear until a client is active.

Is there a way to sync watch history between Jellyfin and Home Assistant?

Not natively, but you can create automations that record playback events to a database or file. For example, you could use the history integration to log when a movie finishes, then use that data in a dashboard or report.