Home Assistant component to feed Upcoming Media Card with Plex's recently added media. This component does not require, nor conflict with, the default Plex components.
Read through these two resources before posting issues to GitHub or the forums.
custom_components/plex_recently_added/
.configuration.yaml
using the config options below.ui-lovelace.yaml
.key | default | required | description |
---|---|---|---|
name | Plex_Recently_Added | no | Name of the sensor. Useful to make multiple sensors with different libraries. |
token | yes | Your Plex token (Find your Plex token) | |
host | localhost | yes | The host Plex is running on. |
port | 32400 | yes | The port Plex is running on. |
ssl | false | no | Set to true if you use SSL to access Plex. |
max | 5 | no | Max number of items to show in sensor. |
on_deck | False | no | Set to true to show "on deck" items. |
download_images | true | no | Setting this to false will turn off downloading of images, but will require certain Plex settings to work. See below. |
img_dir | '/upcoming-media-card-images/plex/' | no | This option allows you to choose a custom directory to store images in if you enable download_images. Directory must start and end with a / . |
ssl_cert | false | no | If you provide your own SSL certificate in Plex's network settings set this to true. |
section_types | movie, show | no | Allows you to specify which section types to consider [movie, show]. |
image_resolution | 200 | no | Allows you to change the resolution of the generated images (in px), useful to display higher quality images as a background somewhere. |
exclude_keywords | no | Allows you to specify a list of keywords to be exclude from the sensor if in the title. |
Do not just copy examples, please use config options above to build your own!
sensor:
- platform: plex_recently_added
token: YOUR_PLEX_TOKEN
host: 192.168.1.42
port: 32400
- type: custom:upcoming-media-card
entity: sensor.plex_recently_added
title: Recently Downloaded
- platform: plex_recently_added
name: Recently Added Movies # will create sensor.recently_added_movies
token: !secret token
host: !secret host
port: 32400
section_types:
- movie
- platform: plex_recently_added
name: Recently Added TV # will create sensor.recently_added_tv
token: !secret token
host: !secret host
port: 32400
section_types:
- show
exclude_keywords:
- Walking dead
- kardashians
key | default | example |
---|---|---|
title | $title | "The Walking Dead" |
line1 | $episode | "What Comes After" |
line2 | $day, $date $time | "Monday, 10/31 10:00 PM" Displays time of download. |
line3 | $number - $rating - $runtime | "S01E12 - ★ 9.8 - 01:30" |
line4 | $genres | "Action, Adventure, Comedy" |
icon | mdi:eye-off | https://materialdesignicons.com/icon/eye-off |