You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+40-64Lines changed: 40 additions & 64 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,71 +17,47 @@ Read through these two resources before posting issues to GitHub or the forums.
17
17
## Installation:
18
18
1. 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/`.
19
19
2. Install the card: [Upcoming Media Card](https://github.com/custom-cards/upcoming-media-card)
20
-
3. Add the code to your `configuration.yaml` using the config options below.
21
-
4. Add the code for the card to your `ui-lovelace.yaml`.
22
-
5.**You will need to restart after installation for the component to start working.**
| name | Plex_Recently_Added | no | Name of the sensor. Useful to make multiple sensors with different libraries. |
29
-
| token || yes | Your Plex token [(Find your Plex token)](https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/)|
30
-
| host | localhost | yes | The host Plex is running on. |
31
-
| port | 32400 | yes | The port Plex is running on. |
32
-
| ssl | false | no | Set to true if you use SSL to access Plex. |
33
-
| max | 5 | no | Max number of items to show in sensor. |
34
-
| on_deck | False | no | Set to true to show "on deck" items. |
35
-
| download_images | true | no | Setting this to false will turn off downloading of images, but will require certain Plex settings to work. See below. |
36
-
| 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 `/`. |
37
-
| ssl_cert | false | no | If you provide your own SSL certificate in Plex's network settings set this to true. |
38
-
| section_types | movie, show | no | Allows you to specify which section types to consider [movie, show]. |
39
-
| 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. |
40
-
| exclude_keywords || no | Allows you to specify a list of keywords to be exclude from the sensor if in the title. |
41
-
42
-
#### By default this addon automatically downloads images from Plex to your /www/custom-lovelace/upcoming-media-card/ directory. The directory is automatically created & only images reported in the upcoming list are downloaded. Images are small in size and are removed automatically when no longer needed. Currently & unfortunately, this may not work on all systems.
43
-
44
-
#### If you prefer to not download the images you may set download_images to false, but you either have to set "Secure connections" to "preferred" or "disabled" (no SSL) or have a custom certificate set (these options are found in your Plex server's network settings). This is needed because the default SSL certificate supplied by Plex is for their own domain and not for your Plex server. Your server also needs to be "fully accessible outside your network" if you wish to be able to see images remotely. If your Plex server provides it's own certificate you only need to set ssl_cert to true and download_images to false.
45
-
46
-
</br></br>
20
+
3. Add the code for the card to your `ui-lovelace.yaml`.
21
+
4.**You will need to restart after installation for the component to start working.**
22
+
23
+
### Adding device
24
+
To add the **Plex Recently added** integration to your Home Assistant, use this My button:
If the above My button doesn’t work, you can also perform the following steps manually:
31
+
32
+
- Browse to your Home Assistant instance.
33
+
34
+
- Go to [Settings > Devices & Services](https://my.home-assistant.io/redirect/integrations/).
35
+
36
+
- In the bottom right corner, select the [Add Integration button.](https://my.home-assistant.io/redirect/config_flow_start?domain=plex_recently_added)
37
+
38
+
- From the list, select **Plex Recently added**.
39
+
40
+
- Follow the instructions on screen to complete the setup.
41
+
</details>
42
+
43
+
The number of items in sensor, library types, libraries in general, excluded words and show "on deck" options can be changed later.
44
+
47
45
**Do not just copy examples, please use config options above to build your own!**
48
-
### Sample for minimal config needed in configuration.yaml:
49
-
```yaml
50
-
sensor:
51
-
- platform: plex_recently_added
52
-
token: YOUR_PLEX_TOKEN
53
-
host: 192.168.1.42
54
-
port: 32400
55
-
```
56
-
### Sample for ui-lovelace.yaml:
57
-
```yaml
58
-
- type: custom:upcoming-media-card
59
-
entity: sensor.plex_recently_added
60
-
title: Recently Downloaded
61
-
```
62
-
### Multiple sensor sample for configuration.yaml:
63
-
```yaml
64
-
- platform: plex_recently_added
65
-
name: Recently Added Movies # will create sensor.recently_added_movies
66
-
token: !secret token
67
-
host: !secret host
68
-
port: 32400
69
-
section_types:
70
-
- movie
71
-
72
-
- platform: plex_recently_added
73
-
name: Recently Added TV # will create sensor.recently_added_tv
74
-
token: !secret token
75
-
host: !secret host
76
-
port: 32400
77
-
section_types:
78
-
- show
79
-
exclude_keywords:
80
-
- Walking dead
81
-
- kardashians
82
-
```
83
-
84
-
## \*Currently genres, rating, and studio only work for Movies
46
+
47
+
## FAQ:
48
+
### When I tried it said *"User already configured"*
49
+
This 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
50
+
51
+
### I want to change the config of the integration, how do I do it?
52
+
This is very simple, when you go to the *'Settings/Devices & 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.
53
+
</br><small>(If you want to change Plex address, token or sensors prefix name you will need to readd the integration with your new parameters)</small>
54
+
55
+
### The number of items in sensor is not the amount I set it to be
56
+
The 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 *<small>(for max)</small>* * 3 *<small>(for section types)</small>*)
57
+
58
+
### My sensor is not showing any values and there are no errors
59
+
This 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.
0 commit comments