and here are the sensors, Just remember you need the Plex Recently Added from hacs, this is based on those sensors. you will get something like this:
hope it helps you. please share your final card image and config
sensors:
############################################
########### Home Cinema Sensors ###########
############################################
- platform: template
sensors:
plex_recently_movies_name_1:
friendly_name: "Movie 1 name"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[1]['title'] }}"
- platform: template
sensors:
plex_recently_movies_poster_1:
friendly_name: "Movie 1 poster"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[1]['poster'] }}"
- platform: template
sensors:
plex_recently_movies_fanart_1:
friendly_name: "Movie 1 fanart"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[1]['fanart'] }}"
- platform: template
sensors:
plex_recently_movies_flag_1:
friendly_name: "Movie 1 play status"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[1]['flag'] }}"
- platform: template
sensors:
plex_recently_movies_year_1:
friendly_name: "Movie 1 Year"
icon_template: mdi:movie-roll
value_template: "{% set text = state_attr('sensor.recently_added_movies', 'data')[1]['aired'] %}{{ text.split('-')[0].strip()}}"
- platform: template
sensors:
plex_recently_movies_play_movie_1:
friendly_name: "Movie 1 play button"
icon_template: mdi:movie-roll
value_template: >-
{ "library_name": "Movies", "title": "{{states('sensor.plex_recently_movies_name_1')}}", "year": "{{states('sensor.plex_recently_movies_year_1') }}" }
- platform: template
sensors:
plex_recently_movies_name_2:
friendly_name: "Movie 2 name"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[2]['title'] }}"
- platform: template
sensors:
plex_recently_movies_poster_2:
friendly_name: "Movie 2 poster"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[2]['poster'] }}"
- platform: template
sensors:
plex_recently_movies_fanart_2:
friendly_name: "Movie 2 fanart"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[2]['fanart'] }}"
- platform: template
sensors:
plex_recently_movies_flag_2:
friendly_name: "Movie 2 play status"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[2]['flag'] }}"
- platform: template
sensors:
plex_recently_movies_year_2:
friendly_name: "Movie 2 Year"
icon_template: mdi:movie-roll
value_template: "{% set text = state_attr('sensor.recently_added_movies', 'data')[2]['aired'] %}{{ text.split('-')[0].strip()}}"
- platform: template
sensors:
plex_recently_movies_play_movie_2:
friendly_name: "Movie 2 play button"
icon_template: mdi:movie-roll
value_template: >-
{ "library_name": "Movies", "title": "{{states('sensor.plex_recently_movies_name_2')}}", "year": "{{states('sensor.plex_recently_movies_year_2') }}" }
- platform: template
sensors:
plex_recently_movies_name_3:
friendly_name: "Movie 3 name"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[3]['title'] }}"
- platform: template
sensors:
plex_recently_movies_poster_3:
friendly_name: "Movie 3 poster"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[3]['poster'] }}"
- platform: template
sensors:
plex_recently_movies_fanart_3:
friendly_name: "Movie 3 fanart"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[3]['fanart'] }}"
- platform: template
sensors:
plex_recently_movies_flag_3:
friendly_name: "Movie 3 play status"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[3]['flag'] }}"
- platform: template
sensors:
plex_recently_movies_year_3:
friendly_name: "Movie 3 Year"
icon_template: mdi:movie-roll
value_template: "{% set text = state_attr('sensor.recently_added_movies', 'data')[3]['aired'] %}{{ text.split('-')[0].strip()}}"
- platform: template
sensors:
plex_recently_movies_play_movie_3:
friendly_name: "Movie 3 play button"
icon_template: mdi:movie-roll
value_template: >-
{ "library_name": "Movies", "title": "{{states('sensor.plex_recently_movies_name_3')}}", "year": "{{states('sensor.plex_recently_movies_year_3') }}" }
- platform: template
sensors:
plex_recently_movies_name_4:
friendly_name: "Movie 4 name"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[4]['title'] }}"
- platform: template
sensors:
plex_recently_movies_poster_4:
friendly_name: "Movie 4 poster"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[4]['poster'] }}"
- platform: template
sensors:
plex_recently_movies_fanart_4:
friendly_name: "Movie 4 fanart"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[4]['fanart'] }}"
- platform: template
sensors:
plex_recently_movies_flag_4:
friendly_name: "Movie 4 play status"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[4]['flag'] }}"
- platform: template
sensors:
plex_recently_movies_year_4:
friendly_name: "Movie 4 Year"
icon_template: mdi:movie-roll
value_template: "{% set text = state_attr('sensor.recently_added_movies', 'data')[4]['aired'] %}{{ text.split('-')[0].strip()}}"
- platform: template
sensors:
plex_recently_movies_play_movie_4:
friendly_name: "Movie 4 play button"
icon_template: mdi:movie-roll
value_template: >-
{ "library_name": "Movies", "title": "{{states('sensor.plex_recently_movies_name_4')}}", "year": "{{states('sensor.plex_recently_movies_year_4') }}" }
- platform: template
sensors:
plex_recently_movies_name_5:
friendly_name: "Movie 5 name"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[5]['title'] }}"
- platform: template
sensors:
plex_recently_movies_poster_5:
friendly_name: "Movie 5 poster"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[5]['poster'] }}"
- platform: template
sensors:
plex_recently_movies_fanart_5:
friendly_name: "Movie 5 fanart"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[5]['fanart'] }}"
- platform: template
sensors:
plex_recently_movies_flag_5:
friendly_name: "Movie 5 play status"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[5]['flag'] }}"
- platform: template
sensors:
plex_recently_movies_name_6:
friendly_name: "Movie 6 name"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[6]['title'] }}"
- platform: template
sensors:
plex_recently_movies_poster_6:
friendly_name: "Movie 7 poster"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[6]['poster'] }}"
- platform: template
sensors:
plex_recently_movies_fanart_6:
friendly_name: "Movie 6 fanart"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[6]['fanart'] }}"
- platform: template
sensors:
plex_recently_movies_flag_6:
friendly_name: "Movie 6 play status"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[6]['flag'] }}"
- platform: template
sensors:
plex_recently_movies_year_6:
friendly_name: "Movie 6 Year"
icon_template: mdi:movie-roll
value_template: "{% set text = state_attr('sensor.recently_added_movies', 'data')[6]['aired'] %}{{ text.split('-')[0].strip()}}"
- platform: template
sensors:
plex_recently_movies_play_movie_6:
friendly_name: "Movie 6 play button"
icon_template: mdi:movie-roll
value_template: >-
{ "library_name": "Movies", "title": "{{states('sensor.plex_recently_movies_name_6')}}", "year": "{{states('sensor.plex_recently_movies_year_6') }}" }
- platform: template
sensors:
plex_recently_movies_name_7:
friendly_name: "Movie 7 name"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[7]['title'] }}"
- platform: template
sensors:
plex_recently_movies_poster_7:
friendly_name: "Movie 7 poster"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[7]['poster'] }}"
- platform: template
sensors:
plex_recently_movies_fanart_7:
friendly_name: "Movie 7 fanart"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[7]['fanart'] }}"
- platform: template
sensors:
plex_recently_movies_flag_7:
friendly_name: "Movie 7 play status"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[7]['flag'] }}"
- platform: template
sensors:
plex_recently_movies_year_7:
friendly_name: "Movie 7 Year"
icon_template: mdi:movie-roll
value_template: "{% set text = state_attr('sensor.recently_added_movies', 'data')[7]['aired'] %}{{ text.split('-')[0].strip()}}"
- platform: template
sensors:
plex_recently_movies_play_movie_7:
friendly_name: "Movie 7 play button"
icon_template: mdi:movie-roll
value_template: >-
{ "library_name": "Movies", "title": "{{states('sensor.plex_recently_movies_name_7')}}", "year": "{{states('sensor.plex_recently_movies_year_7') }}" }
- platform: template
sensors:
plex_recently_movies_name_8:
friendly_name: "Movie 8 name"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[8]['title'] }}"
- platform: template
sensors:
plex_recently_movies_poster_8:
friendly_name: "Movie 8 poster"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[8]['poster'] }}"
- platform: template
sensors:
plex_recently_movies_fanart_8:
friendly_name: "Movie 8 fanart"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[8]['fanart'] }}"
- platform: template
sensors:
plex_recently_movies_flag_8:
friendly_name: "Movie 8 play status"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[8]['flag'] }}"
- platform: template
sensors:
plex_recently_movies_year_8:
friendly_name: "Movie 8 Year"
icon_template: mdi:movie-roll
value_template: "{% set text = state_attr('sensor.recently_added_movies', 'data')[8]['aired'] %}{{ text.split('-')[0].strip()}}"
- platform: template
sensors:
plex_recently_movies_play_movie_8:
friendly_name: "Movie 8 play button"
icon_template: mdi:movie-roll
value_template: >-
{ "library_name": "Movies", "title": "{{states('sensor.plex_recently_movies_name_8')}}", "year": "{{states('sensor.plex_recently_movies_year_8') }}" }
- platform: template
sensors:
plex_recently_movies_name_9:
friendly_name: "Movie 9 name"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[9]['title'] }}"
- platform: template
sensors:
plex_recently_movies_poster_9:
friendly_name: "Movie 9 poster"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[9]['poster'] }}"
- platform: template
sensors:
plex_recently_movies_fanart_9:
friendly_name: "Movie 9 fanart"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[9]['fanart'] }}"
- platform: template
sensors:
plex_recently_movies_flag_9:
friendly_name: "Movie 9 play status"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[9]['flag'] }}"
- platform: template
sensors:
plex_recently_movies_year_9:
friendly_name: "Movie 9 Year"
icon_template: mdi:movie-roll
value_template: "{% set text = state_attr('sensor.recently_added_movies', 'data')[9]['aired'] %}{{ text.split('-')[0].strip()}}"
- platform: template
sensors:
plex_recently_movies_play_movie_9:
friendly_name: "Movie 9 play button"
icon_template: mdi:movie-roll
value_template: >-
{ "library_name": "Movies", "title": "{{states('sensor.plex_recently_movies_name_9')}}", "year": "{{states('sensor.plex_recently_movies_year_9') }}" }
- platform: template
sensors:
plex_recently_movies_name_10:
friendly_name: "Movie 10 name"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[10]['title'] }}"
- platform: template
sensors:
plex_recently_movies_poster_10:
friendly_name: "Movie 10 poster"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[10]['poster'] }}"
- platform: template
sensors:
plex_recently_movies_fanart_10:
friendly_name: "Movie 10 fanart"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[10]['fanart'] }}"
- platform: template
sensors:
plex_recently_movies_flag_10:
friendly_name: "Movie 10 play status"
icon_template: mdi:movie-roll
value_template: "{{ state_attr('sensor.recently_added_movies', 'data')[10]['flag'] }}"
- platform: template
sensors:
plex_recently_movies_year_10:
friendly_name: "Movie 10 Year"
icon_template: mdi:movie-roll
value_template: "{% set text = state_attr('sensor.recently_added_movies', 'data')[10]['aired'] %}{{ text.split('-')[0].strip()}}"
- platform: template
sensors:
plex_recently_movies_play_movie_10:
friendly_name: "Movie 10 play button"
icon_template: mdi:movie-roll
value_template: >-
{ "library_name": "Movies", "title": "{{states('sensor.plex_recently_movies_name_10')}}", "year": "{{states('sensor.plex_recently_movies_year_10') }}" }
############# TV Shows Plex ###############
### 1 ###
- platform: template
sensors:
plex_recently_tvshow_title_1:
friendly_name: "tv show episode name"
icon_template: mdi:television-classic
value_template: "{{ state_attr('sensor.recently_added_tv_shows', 'data')[1]['episode'] }}"
- platform: template
sensors:
plex_recently_tvshow_poster_1:
friendly_name: "tv show 1 poster"
icon_template: mdi:television-classic
value_template: "{{ state_attr('sensor.recently_added_tv_shows', 'data')[1]['poster'] }}"
- platform: template
sensors:
plex_recently_tvshow_fanart_1:
friendly_name: "tv show 1 fanart"
icon_template: mdi:television-classic
value_template: "{{ state_attr('sensor.recently_added_tv_shows', 'data')[1]['fanart'] }}"
- platform: template
sensors:
plex_recently_tvshow_flag_1:
friendly_name: "tv show 1 play status"
icon_template: mdi:television-classic
value_template: "{{ state_attr('sensor.recently_added_tv_shows', 'data')[1]['flag'] }}"
- platform: template
sensors:
plex_recently_tvshow_play_tvshow_1:
friendly_name: "tv show 1 play button"
icon_template: mdi:television-classic
value_template: >-
{ "library_name": "TV_Shows", "show_name": "{{ state_attr('sensor.recently_added_tv_shows', 'data')[1]['title'] }}", "season_number": "{{ state_attr('sensor.recently_added_tv_shows', 'data')[1]['number'].split('E')[-2] | replace('S',' ') }}", "episode_number": "{{state_attr('sensor.recently_added_tv_shows', 'data')[1]['number'].split('E')[1] }}" }
### 2 ###
- platform: template
sensors:
plex_recently_tvshow_title_2:
friendly_name: "tv show 2 episode name"
icon_template: mdi:television-classic
value_template: "{{ state_attr('sensor.recently_added_tv_shows', 'data')[2]['episode'] }}"
- platform: template
sensors:
plex_recently_tvshow_poster_2:
friendly_name: "tv show 2 poster"
icon_template: mdi:television-classic
value_template: "{{ state_attr('sensor.recently_added_tv_shows', 'data')[2]['poster'] }}"
- platform: template
sensors:
plex_recently_tvshow_fanart_2:
friendly_name: "tv show 2 fanart"
icon_template: mdi:television-classic
value_template: "{{ state_attr('sensor.recently_added_tv_shows', 'data')[2]['fanart'] }}"
- platform: template
sensors:
plex_recently_tvshow_flag_2:
friendly_name: "tv show 2 play status"
icon_template: mdi:television-classic
value_template: "{{ state_attr('sensor.recently_added_tv_shows', 'data')[2]['flag'] }}"
- platform: template
sensors:
plex_recently_tvshow_play_tvshow_2:
friendly_name: "tv show 2 play button"
icon_template: mdi:television-classic
value_template: >-
{ "library_name": "TV_Shows", "show_name": "{{ state_attr('sensor.recently_added_tv_shows', 'data')[2]['title'] }}", "season_number": "{{ state_attr('sensor.recently_added_tv_shows', 'data')[2]['number'].split('E')[-2] | replace('S',' ') }}", "episode_number": "{{state_attr('sensor.recently_added_tv_shows', 'data')[2]['number'].split('E')[1] }}" }
### 3 ###
- platform: template
sensors:
plex_recently_tvshow_title_3:
friendly_name: "tv show 3 episode name"
icon_template: mdi:television-classic
value_template: "{{ state_attr('sensor.recently_added_tv_shows', 'data')[3]['episode'] }}"
- platform: template
sensors:
plex_recently_tvshow_poster_3:
friendly_name: "tv show 3 poster"
icon_template: mdi:television-classic
value_template: "{{ state_attr('sensor.recently_added_tv_shows', 'data')[3]['poster'] }}"
- platform: template
sensors:
plex_recently_tvshow_fanart_3:
friendly_name: "tv show 3 fanart"
icon_template: mdi:television-classic
value_template: "{{ state_attr('sensor.recently_added_tv_shows', 'data')[3]['fanart'] }}"
- platform: template
sensors:
plex_recently_tvshow_flag_3:
friendly_name: "tv show 3 play status"
icon_template: mdi:television-classic
value_template: "{{ state_attr('sensor.recently_added_tv_shows', 'data')[3]['flag'] }}"
- platform: template
sensors:
plex_recently_tvshow_play_tvshow_3:
friendly_name: "tv show 3 play button"
icon_template: mdi:television-classic
value_template: >-
{ "library_name": "TV_Shows", "show_name": "{{ state_attr('sensor.recently_added_tv_shows', 'data')[3]['title'] }}", "season_number": "{{ state_attr('sensor.recently_added_tv_shows', 'data')[3]['number'].split('E')[-2] | replace('S',' ') }}", "episode_number": "{{state_attr('sensor.recently_added_tv_shows', 'data')[3]['number'].split('E')[1] }}" }
### 4 ###
- platform: template
sensors:
plex_recently_tvshow_title_4:
friendly_name: "tv show 4 episode name"
icon_template: mdi:television-classic
value_template: "{{ state_attr('sensor.recently_added_tv_shows', 'data')[4]['episode'] }}"
- platform: template
sensors:
plex_recently_tvshow_poster_4:
friendly_name: "tv show 4 poster"
icon_template: mdi:television-classic
value_template: "{{ state_attr('sensor.recently_added_tv_shows', 'data')[4]['poster'] }}"
- platform: template
sensors:
plex_recently_tvshow_fanart_4:
friendly_name: "tv show 4 fanart"
icon_template: mdi:television-classic
value_template: "{{ state_attr('sensor.recently_added_tv_shows', 'data')[4]['fanart'] }}"
- platform: template
sensors:
plex_recently_tvshow_flag_4:
friendly_name: "tv show 4 play status"
icon_template: mdi:television-classic
value_template: "{{ state_attr('sensor.recently_added_tv_shows', 'data')[4]['flag'] }}"
- platform: template
sensors:
plex_recently_tvshow_play_tvshow_4:
friendly_name: "tv show 4 play button"
icon_template: mdi:television-classic
value_template: >-
{ "library_name": "TV_Shows", "show_name": "{{ state_attr('sensor.recently_added_tv_shows', 'data')[4]['title'] }}", "season_number": "{{ state_attr('sensor.recently_added_tv_shows', 'data')[4]['number'].split('E')[-2] | replace('S',' ') }}", "episode_number": "{{state_attr('sensor.recently_added_tv_shows', 'data')[4]['number'].split('E')[1] }}" }
### 5 ###
- platform: template
sensors:
plex_recently_tvshow_title_5:
friendly_name: "tv show 5 episode name"
icon_template: mdi:television-classic
value_template: "{{ state_attr('sensor.recently_added_tv_shows', 'data')[5]['episode'] }}"
- platform: template
sensors:
plex_recently_tvshow_poster_5:
friendly_name: "tv show 5 poster"
icon_template: mdi:television-classic
value_template: "{{ state_attr('sensor.recently_added_tv_shows', 'data')[5]['poster'] }}"
- platform: template
sensors:
plex_recently_tvshow_fanart_5:
friendly_name: "tv show 5 fanart"
icon_template: mdi:television-classic
value_template: "{{ state_attr('sensor.recently_added_tv_shows', 'data')[5]['fanart'] }}"
- platform: template
sensors:
plex_recently_tvshow_flag_5:
friendly_name: "tv show 5 play status"
icon_template: mdi:television-classic
value_template: "{{ state_attr('sensor.recently_added_tv_shows', 'data')[5]['flag'] }}"
- platform: template
sensors:
plex_recently_tvshow_play_tvshow_5:
friendly_name: "tv show 5 play button"
icon_template: mdi:television-classic
value_template: >-
{ "library_name": "TV_Shows", "show_name": "{{ state_attr('sensor.recently_added_tv_shows', 'data')[5]['title'] }}", "season_number": "{{ state_attr('sensor.recently_added_tv_shows', 'data')[5]['number'].split('E')[-2] | replace('S',' ') }}", "episode_number": "{{state_attr('sensor.recently_added_tv_shows', 'data')[5]['number'].split('E')[1] }}" }