# Plex and home automation

**URL:** https://forums.plex.tv/t/plex-and-home-automation/77546
**Category:** Dev/API Corner
**Tags:** other-dev
**Created:** [September 26, 2014, 4:38pm UTC](https://forums.plex.tv/t/plex-and-home-automation/77546 "2014-09-26T16:38:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![apuder](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@apuder](https://forums.plex.tv/u/apuder)
#### Post date: [September 26, 2014, 4:38pm UTC](https://forums.plex.tv/t/plex-and-home-automation/77546/1 "2014-09-26T16:38:44Z")

</div>

Hi,

&nbsp;

I have LED lights in my living room and I would like to dim these lights whenever I play a video via the Plex Media Server. I checked the Plex Framework API but that does not seem to cover my use case. Any ideas on how to do this? I would need some hooks that get invoked for play/pause/stop.

&nbsp;

TIA,

Arno

&nbsp;

---

<div class="post-metadata">

### Author: ![David\_Snyder](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/david_snyder/32/1132_2.png) [@David\_Snyder](https://forums.plex.tv/u/David_Snyder)
#### Post date: [September 26, 2014, 4:53pm UTC](https://forums.plex.tv/t/plex-and-home-automation/77546/2 "2014-09-26T16:53:06Z")

</div>

I think the simplest hook to use is working with [Plex Watch](https://forums.plex.tv/topic/72552-plexwatch-plex-notify-script-send-push-alerts-on-new-sessions-and-stopped/) notifications, you can then tie those into IFTTT etc.

It's a tad convoluted but someone has made a workflow [here](https://forums.plex.tv/topic/105749-philips-hue-dim-lights-when-movie-starts/?hl=hue). &nbsp;The far easier option is to just work it into your activities in your Harmony remote (if you have one). &nbsp;There is also a solution for RasPlex... if you search the forums for 'hue' you'll see it.

---

<div class="post-metadata">

### Author: ![alilou](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/alilou/32/141239_2.png) [@alilou](https://forums.plex.tv/u/alilou)
#### Post date: [September 27, 2014, 9:36am UTC](https://forums.plex.tv/t/plex-and-home-automation/77546/3 "2014-09-27T09:36:35Z")

</div>

I do it with PlexWatch and a external script :)

---

<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: [December 21, 2019, 3:04am UTC](https://forums.plex.tv/t/plex-and-home-automation/77546/4 "2019-12-21T03:04:09Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
