#PLEX trigger for specific show

1 messages · Page 1 of 1 (latest)

limpid leaf
#

Hey guys,
I've been trying to create an automation based on watching a specific TV show before bed (most lights off etc.).
I've got most of it done, the only issue is I'm having trouble finding a way to have a trigger based on a specific TV show. Can't seem to find it in the plex or tautulli integration.
Does anyone have any ideas?
Thanks 🙂

limpid leaf
#

if someone does end up replying, please ping me so I get the notification

#

thanks 🙂

limpid leaf
#

bump, in case someone can help 🙂

reef relic
#

Via the UI, Add Trigger > Entity > State. Select your Plex media_player entity. For Attribute, select Series. In the To, enter the series name. ```yaml
alias: Plex Series test
description: ""
triggers:

  • trigger: state
    entity_id:
    • media_player.xbox_plex
      attribute: media_series_title
      to: Manifest
      conditions: []
      actions:
  • action: light.turn_on
    data:
    brightness_pct: 20
    target:
    entity_id: light.living_room_lights
    mode: single
#

Pausing/resuming and going to the next episode may create some undesirable affects because the state change between playing and idle. Resuming and playing the next episode will trigger the automation again with the state change.

limpid leaf
#

@reef relic thanks a bunch for your help! Does this seem correct to you (I did everything via UI)

reef relic
#

It looks like you selected Title instead of Series. (Series uses the media_series_title attribute while Title uses the media_title attribute which refers to the episode title.)

limpid leaf
#

🙂

#

Thanks a bunch!

limpid leaf
reef relic
#

Had a big thing written out on the laptop but looks like i didn't send it. The attribute won't appear in the dropdown unless media is playing with that attribute. When idle, there's only 3 attributes. If you don't want to start a media file to be able to use the dropdown, go into YAML mode and type it in manually.

limpid leaf