Skip to content

Vansmak/mediarr_sensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Support This Project If you find this project helpful, please consider supporting it. Your contributions help maintain and improve the project. Any support is greatly appreciated! ❤️ https://buymeacoffee.com/vansmak Thank you for your support!

Mediarr for Home Assistant (inspired by upcoming media card) https://github.com/Vansmak/mediarr-card

sensors for use in Mediarr-card

New addition, added more seer sensors

Installation

HACS Installation

  1. Open HACS
  2. Go to "Integrations"
  3. Click the three dots menu and select "Custom repositories"
  4. Add this repository URL and select "Integration" as the category
  5. Click "Add"
  6. Find and install "Mediarr" from HACS
  7. Restart Home Assistant

Manual Installation

  1. Download the latest before hacs (can break)

  2. Copy all contents from custom_components/mediarr/ to /config/custom_components/mediarr/

  3. Restart Home Assistant

Configuration

Step 1: Configure Sensors

Add one or more of the following sensors to your configuration.yaml:

sensor:
  - platform: mediarr
    plex:  # Optional
      host: localhost
      port: xxxxxx
      token: your_token

    jellyfin:  # Optional
      host: localhost
      port: xxxxxx
      token: your_api_key 
      max_items: 10
      tmdb_api_key: "your_tmdb_api_key"

    seer: # Optional #shows requests
      url: localhost
      api_key: your_api_key
      max_items: 10
      tmdb_api_key: "your_tmdb_api_key" 
      trending: true      
      discover: true  
      popular_movies: true  
      popular_tv: true 

    sonarr:  # Optional
      url: http://localhost:8989
      api_key: your_sonarr_api_key
      max_items: 10
      days_to_check: 60
      tmdb_api_key: "your_tmdb_api_key" #remove, no longer needed 

    radarr:  # Optional
      url: http://localhost:7878
      api_key: your_radarr_api_key
      max_items: 10
      days_to_check: 60 #breaking change
      tmdb_api_key: "your_tmdb_api_key" # no longer needed
    
    trakt:  # Optional
      client_id: "your_client_id"
      client_secret: "your_client_secret"
      tmdb_api_key: "your_tmdb_api_key"  # Required for posters
      trending_type: both  # Options: movies, shows, both
      max_items: 10
     
    
    tmdb:  # Optional
      api_key: "your_api_key"
      trending_type: all  # Options: movie, tv, all
      max_items: 10
      trending: true          # Default endpoint
      now_playing: true       # Optional
      upcoming: true          # Optional
      on_air: true            # Optional
      airing_today: false     # Optional

Step 3: install Mediarr-card from https://github.com/Vansmak/mediarr-card

Add the Card

Sensor Configuration

  • max_items: Number of items to display (default: 10)
  • days_to_check: Days to look ahead for upcoming content (Sonarr only, default: 60)
  • trending_type: Content type to display for Trakt and TMDB

Card Configuration

  • All entity configurations are optional - use only what you need
  • Media player entity enables playback control (coming soon)

Getting API Keys

Plex

  1. Get your Plex token from your Plex account settings
  2. More details at Plex Support

Sonarr/Radarr

  1. Go to Settings -> General
  2. Copy your API key

Trakt

  1. Create an application at Trakt API
  2. Get your client ID and secret

TMDB

  1. Create an account at TMDB
  2. Request an API key from your account settings

Overseer\Jellyseer

  1. Go to Settings -> General
  2. Copy your API key

Upcoming Features

Contributors

Vansmak aka Vanhacked

License

MIT