Giter VIP home page Giter VIP logo

Comments (8)

patrik996 avatar patrik996 commented on August 25, 2024 1

Just give us the ability to name the sensors entity. Then you can just add two sensors like below.
Right now it gets a random sensor.plex_recently_added_2 name which can change on the next reboot.

  - platform: plex_recently_added
    token: !secret plex_api_key
    host: !secret docker_host
    port: 32400
    ssl: false
    ssl_cert: false
    download_images: false
    max: 5
    section_types:
    - movie
  - platform: plex_recently_added
    token: !secret plex_api_key
    host: !secret docker_host
    port: 32400
    ssl: false
    ssl_cert: false
    download_images: false
    max: 5
    section_types:
    - show

Edit: I created a pull request with this feature. #26

from sensor.plex_recently_added.

tmcarr avatar tmcarr commented on August 25, 2024

To be honest, by library entirely might be useful.

I wonder how hard it would be to expose seperate sensors for each library dynamically.

from sensor.plex_recently_added.

maykar avatar maykar commented on August 25, 2024

Yeah, library is the way to go. When it grabs the section numbers we can just grab the "type" too (returns "movie" or "show").

from sensor.plex_recently_added.

4meuwil avatar 4meuwil commented on August 25, 2024

I would also love to have one instance for each library, and even an on deck.

from sensor.plex_recently_added.

4meuwil avatar 4meuwil commented on August 25, 2024

i made a copy of the .py file named plex2_recently_added.py and changed line 87 to "plex2_recently_added". Then made a duplicate sensor in HA , one with movies and one with shows...

from sensor.plex_recently_added.

4meuwil avatar 4meuwil commented on August 25, 2024

Have not figured out a way to do on deck though, even though the address is there...just doesn't scrape correctly.

from sensor.plex_recently_added.

maykar avatar maykar commented on August 25, 2024

Thanks a ton, pulled your PR. This is now possible with the latest release.

from sensor.plex_recently_added.

patrik996 avatar patrik996 commented on August 25, 2024

Awesome :-)

from sensor.plex_recently_added.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.