Skip to content

rccoleman/channels_dvr_recently_recorded

 
 

Repository files navigation

Channels DVR Recently Recorded Component

Home Assistant component to feed Upcoming Media Card with recently recorded shows from a Channels DVR Server.


Installation:

HACS

  1. Launch HACS
  2. Navigate to the Integrations section
  3. "+ Explore & Add Repositories" button in the bottom right
  4. Search for "Channels DVR"
  5. Select "Install this repository"
  6. Restart Home Assistant

Manual

  1. Install this component by copying these files to custom_components/channels_dvr_recently_recorded/.
  2. Restart Home Assistant

Configuration

  1. If your Channels DVR installation is discovered via Zeroconf, you will get a notification and will be able to configure the integration without the need to specify the host and port. Otherwise, add the integration from Configuration->Integrations->Add Integration. Search for "Channels".
  2. Install the card: Upcoming Media Card
  3. Add the code for the Upcoming Media card to your ui-lovelace.yaml or by adding a manual card via the UI. Please see the documentation for the Upcoming Media Card for more.

Options

This integration can only be configuration through the UI (Configuration->Integrations), and the options below can be configured when the integration is added (host and port aren't needed for a Zeroconf configuration).

key default required description
name Recently_Recorded no Name of the sensor.
host localhost yes The host Channels DVR is running on (not required if the installation is automatically discovered).
port 8089 yes The port Channels DVR is running on (not required if the installation is automatically discovered).
max 5 no Max number of items to show in sensor.
download_images true no Setting this to false will turn off downloading of images.
img_dir '/upcoming-media-card-images/recently_recorded/' 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 /.

By default this addon automatically downloads images from the Channels site 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.



Do not just copy examples, please use config options above to build your own!

Sample for ui-lovelace.yaml:

- type: custom:upcoming-media-card
  entity: sensor.recently_recorded
  title: Recently Recorded

Card Content Defaults

key default example
title $title "The Walking Dead"
line1 $episode "What Comes After"
line2 $day, $date $time "Monday, 10/31 10:00 PM" Displays time of download.
line3 $number - $rating - $runtime "S01E12 - ★ 9.8 - 01:30"
line4 $genres "Action, Adventure, Comedy"
icon mdi:eye-off https://materialdesignicons.com/icon/eye-off

Examples

Here's an example of the sensor entity that the integration creates:

image

And here's an example of the Upcoming Media Card displaying the contents on my Lovelace dashboard:

image