sensor.plex_recently_added icon indicating copy to clipboard operation
sensor.plex_recently_added copied to clipboard

[Feature Request] Exclude watched from results

Open DenielTorres opened this issue 4 years ago • 3 comments

Is your feature request related to a problem? Please describe. When setting hide_unflagged in the upcoming_media_card component it grabs the first X number of movies and then filters out the watched elements. Causing the list to be always shorter than the set number. Similar functionality has been implemented with the Kodi component.

Describe the solution you'd like It would be great if this component could already send a differentiator between flagged and not flagged items. Like here: https://github.com/boralyl/kodi-recently-added/issues/4

DenielTorres avatar Feb 06 '21 22:02 DenielTorres

any progress here?

pimp1310 avatar Mar 27 '22 14:03 pimp1310

nothing?

pimp1310 avatar May 15 '22 18:05 pimp1310

i get it over a second sensor to work, now i only see the unwatched movies

add this template sensor to your configuration.yaml

  • platform: template sensors: plex_unwatched: value_template: "{{ states('sensor.plex_recently_added_movies') }}" attribute_templates: data: "{{ state_attr('sensor.plex_recently_added_movies', 'data') | selectattr('flag', 'defined') | selectattr('flag', 'eq', true) | list }}"

then give the widget the new sensor : sensor.plex_unwatched

and now you only have the unwatched movies in this example.

pimp1310 avatar May 22 '22 09:05 pimp1310

The latest official/original Upcoming Media Card offers the ability to list the watched shows, or filter/sort by any attribute. You can do this now with any Integration that Upcoming Media Card supports.

mkanet avatar May 30 '24 18:05 mkanet