Plex theatre light dimmer (Tautulli)

A blueprint for dimming the lights when a movie or TV-show on Plex starts - and turn back on when paused or stopped.
This is developed for use with Tautulli add-on but it is really just an mqtt listener so in theory, it can be used with anything.

Parameters are configurable - brightness on each state and mqtt topic to listen for.

The automation will only run after sunset so the light won’t be affected unnecessarily.

Attention
The payload of the mqtt packet must contain the key “body” which has the value of one of the following states:

{"body": state}

Where state can be one of the following:

  • resumed
  • paused
  • stopped
  • started

This is very easy to configure in Tautulli by setting the “text” notification in the control panel of Tautulli and setting the “Message body”.

Tested and working with a Philips Hue Cher lamp (works with other bulbs too) connected through zigbee2mqtt. But any lamp can be connected from the drop down menu on configuration

4 Likes
Your body must be 

started 

stopped

paused

resumed

I think there’s a translation error here, unless you want me to perform CPR on myself.

5 Likes

Perhaps I could be more clear, but your payload must contain the key “body” and the value must be one of the listed.
When starting the movie and you want the light to fade, you would send this payload:

{ "topic": "tautulli", "body": "started" }

But I can edit the post so it is more clear. Thank you.

You can take a step further and create sensors based on users and devices to take action in certain areas. Example body {user} ({player}) started playing {title}. This way i know my son Cole Cole RokuTV started playing Teen Titans Go!. Then i can control lights or another example is alert a google home when he watches something he shouldn’t.

Thanks for your suggestion! I will look into implementing this feature soon :slight_smile:

If you want a notification for your son watching a movie, then you would set the “condition” in Tautulli to seperate your son and yourself or devices. Then you can set different topics. Your son (based on account or device) could be “tautulli_son” and yourself could be “tautulli_living_room” or whatever. See the picture below.

But I could look into making this blueprint action based. I have had trouble making the lights fade to a certain brightness when using actions, but the way this script is written, makes the fading work … I will see what I can do.

Works perfectly! Thank you very much! :slight_smile:

1 Like

thank you, works great :+1:

1 Like

@Methical36 @connoleg Thank you! I’m glad it worked for you :smile:

instant succes, i really appreciate the brightness settings and transition
i do wish i could select the scene’s when playing, idle, paused or stopped

Would that be possible?

Yes, I will look into that. I’ll tag you, when I have had the chance to implement scenes.

1 Like

Hello! Can You help me configure this? Im stuck on tautulli mqtt settings. Thank You!

Hi,

Thanks for this! I wonder if it’s possible to select a whole room? For example the living room. I have about 20 zigbee bulbs in my ceiling in the living room and would like to set them to the same state when playing/pause/resuming etc. Am i supposed to make a automation for each bulb? I can’t select multiple lights?

Make a light group for them.

Or probably better a zigbee group in the intergration you are using.