Skip to content

Home Assistant card for the Media Tracker custom component.

License

Notifications You must be signed in to change notification settings

jonkristian/mediatracker-ha-card

Repository files navigation

Media Tracker Card

GitHub Release License hacs Project Maintenance BuyMeCoffee

This card is made to work with the Media Tracker custom component which uses the awesome Media Tracker platform. You will have to install and configure those first if you want to use this card.

Features

  • 🛠 Editor (no need to edit yaml)
  • 🌎 Internationalization
  • 😍 Customize output with backdrops and human readable times
  • 🌓 Light and dark theme support

Installation

HACS

Media Tracker Card can be installed through HACS (Home Assistant Community Store).

  1. Install HACS if you don't have it already
  2. Open HACS in Home Assistant
  3. Go to "Frontend" section
  4. Add this repo to Custom Repositories
  5. Search for "Media Tracker Card"

Manual

  1. Download mediatracker-card.js file from the [latest-release].
  2. Put mediatracker-card.js file into your config/www folder.
  3. Add reference to mediatracker-card.js in Dashboard. There's two way to do that:
    • Using UI: SettingsDashboardsMore Options iconResourcesAdd Resource → Set Url as /local/mediatracker-card.js → Set Resource type as JavaScript Module. Note: If you do not see the Resources menu, you will need to enable Advanced Mode in your User Profile
    • Using YAML: Add following code to lovelace section.
      resources:
        - url: /local/mediatracker-card.js
          type: js

Card options

Field Type Description
custom:mediatracker-card string(required)
name string Name of the card
entities list(required) A list of entity IDs or entity objects, see below.
number_of_days integer(required) How many days ahead you want to fetch.
constrict_height boolean Sets a predetermined card height and adds an inline scroll.
external_media boolean Fetches media/images from an external source.
refresh_interval integer(required) How often the calendar should refresh.
show_description boolean Show calendar entry description if returned from mediatracker-ha.
human_readable_countdown boolean Show human readable countdown next to day name.
rating boolean Show rating if there are any.
style string Style of your choice: plain, poster and backdrop
source_links string Whether to include source links: primary, all
descriptions string Include description for: today, week or all

Entity options

Field Type Description
entity string(required) Home Assistant entity ID.
name string Overrides friendly name.

This card is inspired by

Contributions are welcome!


⭐️ this repository if you found it useful ❤️

BuyMeCoffee