PlexToInsteon - A script that manages Insteon light levels when watching a movie

Hey all. I have written a Python script that integrates an Insteon ISY-994i based home automation controller with a Plex environment. I’ve been working on it and using it for a while and finally decided it is clean enough to share.

The main goal: When you start a movie on a particular Plex client, have the lights dim (turn on a movie watching lighting scene) to a very low level. When the movie pauses or is stopped the lights return to normal brightness (turn on a normal brightness lighting scene). It is one of those things that just makes your inner nerd giggle every time the lights adjust themselves when you hit play or pause. It isn’t very fault tolerant and if the Plex server stops, it will crash the script. Just re-fire it and it will be good. So there is still room for improvement.

A big disclaimer up front : I am NOT a developer and NOT an expert, but I can google stuff with the best of them. So I know there are some best practices in coding that are not followed here. I’m very open to suggestions for improvement but I don’t anticipate being able to spend a LOT of time working and improving this.

The download, and all installation and setup information are at the following:

I hope this is useful to anyone running an ISY controller for their Insteon home.