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
- Create a webhook – add a Plex webhook pointing to a small server on the home network.
- Read the event – filter
media.play,media.pauseandmedia.stopfor the living room player. - Call the Hue bridge – switch to a dim scene on play and restore the previous scene on pause or stop.
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.