You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Go to file
Juraj Nyíri 195820e116
Update: Images
4 years ago
.vscode Update: WIP Typescript refactor 4 years ago
dist Add: comment 4 years ago
images Update: Images 4 years ago
src Add: comment 4 years ago
.eslintignore Update: WIP Typescript refactor 4 years ago
.eslintrc Update: Full functionality with typescript 4 years ago
.gitignore no message 4 years ago
.prettierignore Update: WIP Typescript refactor 4 years ago
.prettierrc Update: WIP Typescript refactor 4 years ago
LICENSE Initial commit 4 years ago
README.md Fix: Readme image for adding custom repo 4 years ago
hacs.json Revert 4 years ago
package-lock.json no message 4 years ago
package.json Update: Move css styles outside of main card 4 years ago
rollup.config.js no message 4 years ago
tsconfig.json Update: WIP Typescript refactor 4 years ago

README.md

PlexMeetsHomeAssistant

Custom integration which integrates plex into Home Assistant and makes it possible to launch movies or tv shows on TV with a simple click

This is an extremely early version of integration / card aimed mostly for experienced users and/or developers.

Installation

  • Add custom repository to HACS, url: https://github.com/JurajNyiri/PlexMeetsHomeAssistant.

Adding lovelace custom repository

  • Reload browser, clear cache as usual
  • Create a new Home Assistant tab, turn on panel mode
  • Add a new card, see configuration below.

Configuration

type: 'custom:plex-meets-homeassistant'

token: Enter your Plex Token

ip: Enter ip address of plex server. You can also enter hostname without protocol or port.

port: Enter port of your plex sever.

protocol: Optional Protocol to use for Plex. Defaults to "http".

maxCount: Optional Maximum number of items to display in card.

entity: You need to configure at least one supported media_player entity.

Example of card configuration:

type: 'custom:plex-meets-homeassistant'
token: QWdsqEXAMPLETOKENqwerty
ip: 192.168.13.37
port: 32400
libraryName: Movies
protocol: http
maxCount: 10
entity:
  kodi: media_player.kodi_123456qwe789rty
  androidtv: media_player.living_room_nvidia_shield

If you are using Home Assistant via HTTPS, you need to specify port https for Plex and have Plex available on https connection.

Detailed configuration instructions for end devices

You can combine multiple supported entities, in that case, entity for supported content will be chosen in order how you entered them.

As an example, if content can be played / shown both by kodi and androidtv, and you entered kodi first, it will be shown by kodi. If it cannot be played by kodi but can be played by androidtv, androidtv will be used.

This will also work with play button being shown, it will only show when you can actually play content on your device.

Play button is only visible if all the conditions inside Availability section of end devices below are met.

Android TV or Fire TV

Difficulty to setup: Easy

Steps:

  • Install plex application on your Android TV device. Open it and do the default setup so that you can see and navigate your libraries.
  • Setup Android TV. You need just a default configuration, no optional parameters needed.
  • Use entity_id of media_player provided by Android TV integration in card, example: androidtv: media_player.living_room_nvidia_shield.

Availability:

  • Provided entity ID needs to exists
  • Provided entity ID needs to have attributes
  • Provided entity ID needs to have attribute adb_response

Supported play types:

Movies

Show

Season

Episodes

Kodi

Difficulty to setup: Moderate

Steps:

Images of installation of Kodi Recently Added Media

Click on add integration in integrations

Find integration Kodi Media Sensors

Configure integration Kodi Media Sensors

  • Use entity_id of media_player provided by Kodi integration in card, example: media_player.kodi_123456qwe789rty.

Availability:

  • Provided entity ID needs to exists
  • Provided entity ID has to have 'kodi_' in the entity_id
  • Entity 'sensor.kodi_media_sensor_search' needs to exist
  • State of both entities cannot be 'unavailable'
  • State of kodi cannot be 'off'

Supported play types:

Movies

Show

Season

Episodes (Coming soon)

Ask for help or help development

Join Discord or Home Assistant Community.

Images

View without hover

View with hover

Expanded movie view

Disclaimer

Author is in no way affiliated with Kodi, Plex, Roku, Android TV, Google or any other companies mentioned above.

Author does not guarantee functionality of this integration and is not responsible for any damage.

All product names, trademarks and registered trademarks in this repository, are property of their respective owners.

This card provides user interface for navigating plex library and playing plex content on users devices. It does not host any content on its own and does not provide any plex server.