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.
- Install HACS (Home Assistant Community Store)
- Go to HACS and install TV4 Play
Copy the custom_components/tv4_play
folder in this repository to <home assistant config>/custom_components/tv4_play
- Add the integration through the integration tab in Home Assistant. See the Get access token section for more details.
- Use the services provided to play media.
- Search an click on the program you want at tv4play.se
- From the url, grab the name. It should be right after
program/
These are instructions for Chrome, but the tv4-refresh-token
cookie can be fetched from any other browser as well.
-
Go to tv4play.se
-
Login
-
Go to the developer console
-
Application -> Cookies ->
https://tv4play.se
-
In the list, select the value of tv4-refresh-token