# Plex, meet Homekit

**URL:** https://forums.plex.tv/t/plex-meet-homekit/225627
**Category:** Apps & Creations
**Tags:** other-third-party
**Created:** [February 15, 2018, 7:05am UTC](https://forums.plex.tv/t/plex-meet-homekit/225627 "2018-02-15T07:05:41Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mpbzh](https://avatars.discourse-cdn.com/v4/letter/m/7ea924/32.png) [@mpbzh](https://forums.plex.tv/u/mpbzh)
#### Post date: [February 15, 2018, 7:05am UTC](https://forums.plex.tv/t/plex-meet-homekit/225627/1 "2018-02-15T07:05:41Z")

</div>

When I was looking for a simple way to automatically dim the lights of my home theater when Plex starts playing, I found that none of the solutions really live up to my expectations.

As I already had a [Homebridge](https://github.com/nfarina/homebridge "https://github.com/nfarina/homebridge") setup up and running, I decided to write a plugin.

Enter **[Homebridge-Plex](https://github.com/mpbzh/homebridge-plex "Homebridge-Plex")**.

Homebridge-Plex adds your Plex Account to your Apple Homekit as a precense sensor. From within your Home app (or any other Homekit app) you can then assign automations, for example lighting scenes to trigger when Plex starts or stops playing.

You filter active sessions by user, player or both. This means you can for example have one presence sensor that is only triggered by your living room AppleTV but not your iPhone (you don’t want the lights to change at home if you’re watching something on your phone on the go). You could even have different light scenes for each user for the same player.

Head over to the [GitHub-Repository](https://github.com/mpbzh/homebridge-plex "Homebridge-Plex") for a quick start guide and feel free to open an issue there if you stumble upon a bug or feel like something is missing.

Oh and this plugin requires a homebridge installation. If you’re not familiar, that’s a small software effectively acting as a Homekit bridge, allowing you to add a variety of devices and software systems that don’t natively support Homekit. You just need a computer that’s always on (like your Plex Server) or a Raspberry Pi.

---

<div class="post-metadata">

### Author: ![MV](https://avatars.discourse-cdn.com/v4/letter/m/ecd19e/32.png) [@MV](https://forums.plex.tv/u/MV)
#### Post date: [March 24, 2018, 7:14am UTC](https://forums.plex.tv/t/plex-meet-homekit/225627/2 "2018-03-24T07:14:10Z")

</div>

Thanks for the effort. Installed the plugin. However how do I obtain an token. i.e how do I do a HTTP post request to [https://plex.tv/users/sign\_in.json](https://plex.tv/users/sign_in.json). Thanks in advance.

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [January 8, 2020, 7:41pm UTC](https://forums.plex.tv/t/plex-meet-homekit/225627/3 "2020-01-08T19:41:11Z")

</div>


