Skip to content
Play videos from the Swedish channel 4
Python
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows Changed time of morning test Dec 27, 2019
custom_components/tv4_play Removed unused import Dec 27, 2019
README.md Added links to badges Dec 27, 2019
hacs.json CRLF -> LF Dec 27, 2019
info.md Added links to badges Dec 27, 2019
requirements.txt Added tests and restructured Nov 20, 2019

README.md

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

Add the code

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

Active the service

Add:

tv4_play:

to your configuration.yaml file.

Use in automations

And then add the automation you want:

automation:
- alias:
  trigger:
  # Some trigger
  action:
  - service: tv4_play.play_suggested
    entity_id: media_player.living_room_tv
    data:
      program_name: nyhetsmorgon

Get the program_name field

  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/

You can’t perform that action at this time.