Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 102441

Automation based on tv show

$
0
0

@D5120 wrote:

A wonder if I could get a quick pointer please.

I’m trying to write some automation based on a Plex TV show.

If I view the state of ‘media_player.plex_plex_for_apple_tv_bedroom’, I can see the following entry

media_series_title: Robot Chicken

I can’t quit work out the syntax to do something based on the current TV show.

My automation currently has the condition of the below, however that doesn’t seem to be triggering.

Trigger = idle to playing (this works)

condition:

  • condition: state
    entity_id: media_player.plex_plex_for_apple_tv_bedroom
    state: ‘media_series_title: Robot Chicken’

Action - Call script (this works)

Having a quick look around the forum, there’s the state attribute function…but I couldn’t work that out.

Do I need to look at templating, or am I missing something easy?

Thanks in advance
Darren

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 102441

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>