Home Assistant Media Integrations: Plex, Kodi, and Jellyfin
This post may contain affiliate links. As an Amazon Associate we earn from qualifying purchases. Disclosure.
Your media setup and your smart home should talk to each other -- but most people run them as two completely separate systems. Connecting Plex, Kodi, or Jellyfin to Home Assistant takes under an hour and unlocks automations that actually change how you use a room.
Most smart home guides treat media as an afterthought. That's a mistake. Your TV time is probably the most predictable behavior pattern in your entire home. And predictable behavior is exactly what Home Assistant automations feed on, an idea our broader smart home automation guide (linked below in Related Articles) covers in more depth.
TL;DR: Connecting Plex, Kodi, or Jellyfin to Home Assistant turns playback state into an automation trigger. On Home Assistant's opt-in analytics (checked November 2026), Google Cast is active on about half of the installations that report their integrations, Sonos on roughly 16%, Music Assistant on about 11%, and Plex, Jellyfin, and Kodi on about 3%, 1.5%, and 1% each. One automation, dim lights when a movie starts, justifies the whole setup.
How Does the Plex Integration Work in Home Assistant?
The official Plex integration is part of Home Assistant itself and has been for a very long time: the integration page dates it to release 0.7.4. Nothing extra to install. A Plex Media Server on your network is usually discovered automatically, and if the server has been claimed by a Plex account, Home Assistant asks you to authenticate. Each actively streaming client (Apple TV, Roku, a browser tab) then shows up as its own media_player entity with states like playing, paused, and idle, alongside sensors for current activity and library sizes.
Worth saying what "my Home Assistant" actually is here, because it changes what you should expect from any of this. Mine is Home Assistant OS on a Raspberry Pi 5 that sits on a DIN rail inside the electrical panel, fed by a Mean Well MDR-60-5 supply putting out 5 V at 10 A. It isn't a box on a shelf behind the TV. That decision has a price tag I accepted with my eyes open: when Home Assistant is down, the lights in this house don't work at all. So every integration I bolt on gets judged as something the electrical panel now depends on, not as a toy.
The most useful automation in this category: when the player state changes to playing and the time is after 7 PM, set the living room lights to 15% brightness. When it hits paused or idle, restore them to 80%. That's one short automation. No third-party apps, no Webhooks, no IFTTT.
Pause Plex When the Doorbell Rings
This one surprises people. You can call media_player.media_pause as an action in any automation. Set your doorbell sensor as the trigger, add a condition checking that a player is currently in state playing, and the action pauses playback.
The doorbell on this build is a Reolink Video Doorbell PoE with the matching Chime. I picked the PoE version over the battery one deliberately, and I'd make the same call again: a doorbell that never needs charging is a doorbell you can put an automation behind. A battery unit that sleeps to save power reports its button press late, and late is useless when the point is to pause playback before the second ring. The Chime is the part people skip and then miss, because it keeps the "someone is at the door" signal working even when the automation layer is having a bad day.
It works. Takes under five minutes to configure.
What About Jellyfin, the Self-Hosted Alternative?
Jellyfin is free, open source, and runs entirely on your own hardware. It doesn't need an account, a subscription, or an internet connection. Jellyfin has been an official integration since Home Assistant 2021.12: go to Settings > Devices & services, add Jellyfin, and enter the server URL and a user. The old community integration (koying/jellyfin_ha) hasn't had a commit since October 2022 and was removed from the HACS catalog at its author's request, so don't start there.
You don't need HACS for any of the three servers on this page. If you're curious what it was, and what replaced it in 2026.11, see the HACS installation guide.
Once set up, Jellyfin shows up much like Plex. According to the docs, every media session connected to the server becomes a media_player entity with media information, playback progress, and playback controls, and clients that support it also get a remote entity for sending remote-control commands. The stated limits are modest: the integration is tested against Jellyfin server 10.6.4 and later, and the media browser covers music, movie, and TV show libraries only.
Hardware-wise, Jellyfin is happy on any small x86 machine with a recent integrated GPU. A direct-play library needs almost nothing. Transcoding is what costs you, and that depends far more on your file formats than on the server badge.
One thing worth flagging: a Raspberry Pi running Home Assistant OS is not the right host for a media server. Mine is on a DIN rail with a single job, and I'd rather it stayed that way. Put the library on separate hardware and let Home Assistant talk to it over the network.

Why Use Kodi to Turn the Lights Off When the Movie Starts?
Kodi is one of the oldest media integrations in the project. The Home Assistant Kodi integration docs list it as introduced before release 0.7. It uses the Kodi JSON-RPC API over your local network. No cloud, no account. Discovery is the preferred way to set it up, and it needs Kodi's web interface enabled; done by hand it's Kodi's IP address and port (default: 8080).
The classic automation: when media_player.kodi changes to state playing and media_content_type equals movie, turn off all lights in the room. When it changes to paused, set lights to 30%. When idle, restore to full brightness.
Kodi's media_content_type attribute is what lets you tell a movie apart from a TV episode: the integration reports movie for films and tvshow for episodes. That matters if your automation should only fire for feature-length playback. Check what your own player reports under Settings > Tools > States before you build on it.
What I like about Kodi for automation on paper: it exposes media_duration and media_position as attributes. That's enough to build a sunset-style automation that gradually dims lights as the movie progresses, hitting minimum brightness by the 20-minute mark.
How Do You Set Up Multi-Room Audio With Sonos and Chromecast?
For music throughout the house, you don't need a single media server. Home Assistant supports Sonos (official integration), Chromecast/Google Home speakers (official, auto-discovered), and Home Assistant Cast. That last one is easy to misread: it doesn't stream music, it shows a Home Assistant dashboard view on a Chromecast screen, and the docs note it needs your instance reachable over https.
smart home audio guide
A Sonos Era 100 (launched in March 2023 at 279 EUR, and listed at 229 EUR on Sonos's eurozone store in November 2026) appears as a media_player entity once you add the Sonos integration. You can group multiple Sonos speakers using the media_player.join action and split them with media_player.unjoin. Google speakers are different: the Cast integration doesn't support join, so their groups get built in the Google Home app.
The speakers I actually own are Google: a Nest Mini and a Nest Hub Max, both carried over from the flat. They earned their way into the house plan, and I'm buying more rather than switching brands, which is not something I say about much of the older gear. The casting target on the TV side is a Philips set running Android TV, so Home Assistant Cast and the Google speakers land on the same discovery layer with no bridge in between. The honest limitation: Google speakers are a cloud-attached ecosystem, and a house whose logic lives on a local Raspberry Pi treats them as an output surface, never as the thing holding the automation.
Music Assistant deserves a correction here. It isn't a HACS integration any more, and it doesn't do beat detection. It's a music server that, on Home Assistant OS, runs as an app (the new name for add-ons since 2026.2), paired with an official integration that arrived in Home Assistant 2024.12; the old custom integration on GitHub is marked deprecated. Its players show up as ordinary media_player entities, and it plays from streaming providers and local files.
Beat-reactive lighting is a separate job. For WLED strips, the WLED project's own answer is Audio Reactive WLED, which its documentation says became an official usermod in WLED 0.14.0 and has shipped in every official release since 0.15.0. It needs an audio feed into the controller: a microphone, a line-in adapter, another WLED instance, or a PC running audio-sync software.

How Do You Build a Movie Night Scene?
A Home Assistant scene named movie_night can hold the entire state: lights at 8%, blinds closed, TV input switched to HDMI-2, the player queued up. You trigger it with one tap on a dashboard button, a voice command, or automatically when you sit down. For that last trigger I'd point you at ceiling-mounted mmWave sensors rather than a PIR, and I have those plus a 24 GHz presence sensor on the Zigbee mesh here. A PIR sees motion; a person watching a film stops producing motion about four minutes in.
Once a scene like that works, customizing your Home Assistant dashboard lets you pin it as a one-tap button.
Here's where I have to be straight with you, because this is the part most guides quietly gloss over. This house has twelve Somfy io blind motors and a Dexxo Smart io on the garage door, and they all run through a TaHoma Switch. The TaHoma is not connected to Home Assistant. So the cover.living_room_blinds line in a scene like this describes the architecture I'm building toward, not something that fires in my hallway tonight. Anyone telling you their blinds drop on a movie trigger should be able to name the integration doing it, because the bridge is the hard part, not the YAML.
The scene config itself is straightforward. Set the cover entity to position 0, set all light entities to brightness 20 and color temperature 2700K, and set the player entity to the idle state. Home Assistant won't start playback from a scene, but you can add a media_player.play_media action in an accompanying script.
Don't overthink the first version. Start with just lights. Add cover control in a second pass, once you've actually verified your blind motors are reachable from Home Assistant rather than assuming they are.
What Is the Media Player Dashboard Card?
Every media_player entity you add, Plex, Jellyfin, Kodi, Sonos, Chromecast, can go straight into the built-in Media control card. The card displays album art, track title, playback controls, and a volume slider. No custom card required.
Home Assistant add-ons guide
You can place multiple media player cards on a single dashboard view and arrange them by room. The tile card is worth a second look too. The 2026.6 release notes describe media player tile features with a source picker, a sound mode picker, volume controls with mute, and playback buttons you can choose and reorder, which makes a single tile act like a small remote.
That's the whole system. Plex, Kodi, and Jellyfin each take about 20 minutes to connect. The automations that come out the other side. Lights that respond to what you're watching, a doorbell that politely pauses your show. Are the kind of thing that make guests ask "wait, how did you do that?"
Which Media Add-ons Actually Earn a Slot?
A note on words first. Since Home Assistant 2026.2, add-ons are officially called apps, and most of what this page covers were never add-ons anyway: Plex, Jellyfin, Kodi, Cast, and Sonos are integrations. The only true app in the list below is the Music Assistant server.
Not every media add-on earns a permanent slot. Plenty get installed, admired for a week, then quietly removed once the novelty wears off and nothing in the house depends on them.
Here's the short list worth starting from, in rough order of how often it fires in a typical setup:
- Music Assistant: the backbone. It puts streaming providers and local files behind ordinary media player entities, so a track or player-state change can nudge a light.
- Plex or Jellyfin integration: powers "movie mode," the one automation that justifies the rest of this article.
- Cast integration: lets automations push a doorbell snapshot or a weather briefing to a Google speaker or display.
- Mini Media Player card: not an add-on at all, but a community Lovelace card (still maintained, with a release in May 2026) that makes all of the above readable in one place. It installs from the Marketplace, which replaced HACS in 2026.11.
Why bother wiring media into Home Assistant at all? Because viewing and listening habits are among the most predictable signals a house produces, far more repeatable than door sensors or weather. Once you know a film usually starts after dark, that moment becomes a reliable trigger for lighting, climate, and a "do not disturb" flag that silences non-urgent notifications.
A word of caution on beat-reactive lighting. It looks incredible in demo videos and gets old fast in a living room. Honestly, I think beat-reactive lighting is the single most overrated feature in the media-automation space, it demos beautifully and gets switched off by week two in almost every setup that tries it. If you want to keep it, scope it to one accent fixture and trigger it only during music playback, never during dialogue-heavy shows. Run it house-wide and you'll disable it within a week.
If you're starting fresh, install Music Assistant first, get one solid "movie mode" automation working, and stop there for a month. Add the next piece only when you catch yourself reaching for a remote that an automation could have replaced. That restraint is the difference between a media setup you use and a pile of add-ons you forgot you installed.
The thread running through all of this is restraint. Media automation rewards the person who adds one piece, lives with it, and only then reaches for the next. Build it that way and the result feels invisible, which is exactly the point.
Frequently Asked Questions
Does the Plex integration work without a Plex Pass subscription?
Home Assistant's Plex integration documentation lists no Plex Pass requirement. The integration connects to your Plex Media Server on the local network, and if the server has been claimed by a Plex account it asks you to authenticate once. After that you'll see what's playing, pause or resume, and use playback state as an automation trigger. What Plex itself puts behind Plex Pass is a separate question, so check Plex's own plan page for features on the Plex side.
Can I use Jellyfin as a trigger for Home Assistant automations?
Yes. Jellyfin is an official Home Assistant integration (in core since 2021.12), so there's nothing to install from HACS or the Marketplace. Add it under Settings > Devices & services, and every media session connected to the Jellyfin server becomes a media_player entity. You can trigger automations when state changes to "playing", "paused", or "idle". The usual pattern is a "playing" trigger that dims the lights and an "idle" trigger, delayed by about ten minutes, that restores them.
How do I add multi-room audio with Chromecast and Home Assistant?
Set up each Chromecast or Google Home speaker as a media_player entity in Home Assistant -- they're auto-discovered if they're on the same subnet. For Google speakers, build the speaker group in the Google Home app, because Home Assistant's Cast integration doesn't support the media_player.join action. The docs say join only works on multiroom systems that support player groups. Sonos is one of those: with the official Sonos integration you can group speakers from Home Assistant with media_player.join and split them again with media_player.unjoin. Music Assistant is the other common route for mixed-brand setups.
Sources & References
- Home Assistant - Plex Media Server integration home-assistant.io
- Home Assistant - Jellyfin integration home-assistant.io
- Home Assistant - Kodi integration home-assistant.io
- Home Assistant - Sonos integration home-assistant.io
- Home Assistant - Music Assistant integration home-assistant.io
- Home Assistant - Google Cast integration home-assistant.io