Skip to content

lindell/home-assistant-tv4-play

Repository files navigation

Home Assistant TV4 Play

Play tv4 play programs on home assistant media players.

Currently, only tv4_play.play_suggested is available, but the plan is to add more services.

Installation

HACS (recommended)

  1. Install HACS (Home Assistant Community Store)
  2. Go to HACS and install TV4 Play

Manual

Copy the custom_components/tv4_play folder in this repository to <home assistant config>/custom_components/tv4_play

Use

  1. Add the integration through the integration tab in Home Assistant. See the Get access token section for more details.
  2. Use the services provided to play media.

Get the program id

  1. Search an click on the program you want at tv4play.se
  2. From the url, grab the name. It should be right after program/

Get ID

Get access token

These are instructions for Chrome, but the tv4-refresh-token cookie can be fetched from any other browser as well.

  1. Go to tv4play.se

  2. Login

  3. Go to the developer console

    Developer tools

  4. Application -> Cookies -> https://tv4play.se

  5. In the list, select the value of tv4-refresh-token

Select refresh token