{"id":13586389,"url":"https://github.com/custom-components/sensor.plex_recently_added","last_synced_at":"2025-04-07T15:31:45.447Z","repository":{"id":33303239,"uuid":"155499113","full_name":"custom-components/sensor.plex_recently_added","owner":"custom-components","description":"▶️ Plex component to feed Upcoming Media Card.","archived":false,"fork":false,"pushed_at":"2024-05-23T01:11:02.000Z","size":187,"stargazers_count":76,"open_issues_count":15,"forks_count":60,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-05-23T02:52:37.631Z","etag":null,"topics":["hacs","home-assistant","home-assistant-integration"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/custom-components.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["maykar"]}},"created_at":"2018-10-31T04:32:05.000Z","updated_at":"2024-05-28T03:25:40.176Z","dependencies_parsed_at":"2024-04-03T01:29:26.314Z","dependency_job_id":"d96c512f-6a41-43bc-a473-f3b83c4b86a8","html_url":"https://github.com/custom-components/sensor.plex_recently_added","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/custom-components%2Fsensor.plex_recently_added","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/custom-components%2Fsensor.plex_recently_added/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/custom-components%2Fsensor.plex_recently_added/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/custom-components%2Fsensor.plex_recently_added/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/custom-components","download_url":"https://codeload.github.com/custom-components/sensor.plex_recently_added/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247679535,"owners_count":20978069,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacs","home-assistant","home-assistant-integration"],"created_at":"2024-08-01T15:05:32.113Z","updated_at":"2025-04-07T15:31:45.164Z","avatar_url":"https://github.com/custom-components.png","language":"Python","funding_links":["https://github.com/sponsors/maykar"],"categories":["Python"],"sub_categories":[],"readme":"# Plex Recently Added Component\n\nHome Assistant component to feed [Upcoming Media Card](https://github.com/custom-cards/upcoming-media-card) with\nPlex's recently added media.\u003c/br\u003e\nThis component does not require, nor conflict with, the default Plex components.\u003c/br\u003e\u003c/br\u003e\n\n### **New Features! ⭐**\n* Added support for Plex 'deep_links' in sensor attributes (Direct URLs to each TV Episode \u0026 Movie on Plex Web).\n* Added support for 'season_num' \u0026 'episode_num' in sensor attributes for TV Episodes.\n\u003cbr\u003e\n\u003cbr\u003e\n### Issues\nRead through these two resources before posting issues to GitHub or the forums.\n* [troubleshooting guide](https://github.com/custom-cards/upcoming-media-card/blob/master/troubleshooting.md)\n* [@thomasloven's lovelace guide](https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins).\n\n## Installation:\n1. Install this component by copying [these files](https://github.com/custom-components/sensor.plex_recently_added/tree/master/custom_components/plex_recently_added) to `custom_components/plex_recently_added/`.\n2. Install the card: [Upcoming Media Card](https://github.com/custom-cards/upcoming-media-card)\n3. Add the code for the card to your `ui-lovelace.yaml`.\n4. **You will need to restart after installation for the component to start working.**\n\n### Adding device\nTo add the **Plex Recently added** integration to your Home Assistant, use this My button:\n\n\u003ca href=\"https://my.home-assistant.io/redirect/config_flow_start?domain=plex_recently_added\" class=\"my badge\" target=\"_blank\"\u003e\u003cimg src=\"https://my.home-assistant.io/badges/config_flow_start.svg\"\u003e\u003c/a\u003e\n\n\u003cdetails\u003e\u003csummary style=\"list-style: none\"\u003e\u003ch3\u003e\u003cb style=\"cursor: pointer\"\u003eManual configuration steps\u003c/b\u003e\u003c/h3\u003e\u003c/summary\u003e\n\nIf the above My button doesn’t work, you can also perform the following steps manually:\n\n- Browse to your Home Assistant instance.\n\n- Go to [Settings \u003e Devices \u0026 Services](https://my.home-assistant.io/redirect/integrations/).\n\n- In the bottom right corner, select the [Add Integration button.](https://my.home-assistant.io/redirect/config_flow_start?domain=plex_recently_added)\n\n- From the list, select **Plex Recently added**.\n\n- Follow the instructions on screen to complete the setup.\n\u003c/details\u003e\n\nThe number of items in sensor, library types, libraries in general, excluded words and show \"on deck\" options can be changed later.\n\n**Do not just copy examples, please use config options above to build your own!**\n\n## FAQ:\n### When I tried it said *\"User already configured\"*\nThis is because the integration uses the Plex token as a part of its *unique_id* so it does not colide with other instances of the same integration\n\n### I want to change the config of the integration, how do I do it?\nThis is very simple, when you go to the *'Settings/Devices \u0026 services/Plex Recently Added'* you will see your instance of the Plex Recently Added integration and on the right side you will see **Configure** button, when you press it you can change all necessary config you might need to change and click submit, the instance then should restart and show new values basen on your new settings.\n\u003c/br\u003e\u003csmall\u003e(If you want to change Plex address, token or sensors prefix name you will need to readd the integration with your new parameters)\u003c/small\u003e\n\n### The number of items in sensor is not the amount I set it to be\nThe sensor you most likely mean is the merged sensor which shows all the data (also sorted) that are in the other sensors, meaning if you've set your man number if values to 7 and you've got 3 section types (movie, show, artist) the total number of items in the merged sensor will be 21 (7 *\u003csmall\u003e(for max)\u003c/small\u003e* * 3 *\u003csmall\u003e(for section types)\u003c/small\u003e*)\n\n### My sensor is not showing any values and there are no errors\nThis may be caused by incorrectly set *Libraries to consider* you can change them in [Config](#i-want-to-change-the-config-of-the-integration-how-do-i-do-it) where if you've configured your Plex token and address right will now show all libraries in dropdown selection.\n\n### Card Content Defaults\n\n| key   | default                      | example                                             |\n| ----- | ---------------------------- | --------------------------------------------------- |\n| title | $title                       | \"The Walking Dead\"                                  |\n| line1 | $episode                     | \"What Comes After\"                                  |\n| line2 | $day, $date $time            | \"Monday, 10/31 10:00 PM\" Displays time of download. |\n| line3 | $number - $rating - $runtime | \"S01E12 - ★ 9.8 - 01:30\"                            |\n| line4 | $genres                      | \"Action, Adventure, Comedy\"                         |\n| icon  | mdi:eye-off                  | https://materialdesignicons.com/icon/eye-off        |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcustom-components%2Fsensor.plex_recently_added","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcustom-components%2Fsensor.plex_recently_added","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcustom-components%2Fsensor.plex_recently_added/lists"}