Juraj Nyíri
6e2e29a9c2
|
4 years ago | |
---|---|---|
.vscode | 4 years ago | |
dist | 4 years ago | |
images | 4 years ago | |
src | 4 years ago | |
.eslintignore | 4 years ago | |
.eslintrc | 4 years ago | |
.gitignore | 4 years ago | |
.prettierignore | 4 years ago | |
.prettierrc | 4 years ago | |
LICENSE | 4 years ago | |
README.md | 4 years ago | |
hacs.json | 4 years ago | |
package-lock.json | 4 years ago | |
package.json | 4 years ago | |
rollup.config.js | 4 years ago | |
tsconfig.json | 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
.
- 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.
-
androidtv: Entity id of your media_player configured via Android TV
-
kodi: Entity id of your media_player configured via Kodi.
You also need to install and configure integration Kodi Recently Added Media and its sensor kodi_media_sensor_search.
It is strongly recommended to use PlexKodiConnect for this setup, otherwise if the file name is different in kodi playback will fail.
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.
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.
Ask for help or help development
Join Discord or Home Assistant Community.