The idea

Dimming the lights before a film is a small ritual that is easy to forget. Plex sends a webhook every time playback starts, pauses or stops, so the lights can simply follow what is on screen.

Setup

  1. Create a webhook – add a Plex webhook pointing to a small server on the home network.
  2. Read the event – filter media.play, media.pause and media.stop for the living room player.
  3. Call the Hue bridge – switch to a dim scene on play and restore the previous scene on pause or stop.
plex-hue.js
1if (event === 'media.play') setScene('movie');2if (event === 'media.pause' || event === 'media.stop') setScene('relax');

Result

Press play and the room fades down. Pause for a snack and the lights come back up. No remote, no app.

Explore with AI