Play svt play programs or channels on home assistant media players.
Play the suggested video that is shown on svtplay.se. This is the recomended way of starting a program.
- service: svt_play.play_suggested
entity_id: media_player.living_room_tv
data:
program_name: rapport
Play the latest video or clip from a specific program. There exists two options to exclude or include videos matching specific categories.
- service: svt_play.play_latest entity_id: media_player.living_room_tv data: program_name: skavlan category: Intervjuer # Optional exclude_category: utan filmer # Optional
### Play Channel
Play one of the svt channels.
```yaml
- service: svt_play.play_channel
entity_id: media_player.living_room_tv
data:
channel: svt1 # Available channels: svt1, svt2, svtbarn, kunskapskanalen, svt24
Install this integration here at HACS.
Add:
svt_play:
to your configuration.yaml file.
And then add the automation you want:
automation:
- alias:
trigger:
# Some trigger
action:
- service: svt_play.play_suggested
entity_id: media_player.living_room_tv
data:
program_name: rapport
- Search an click on the program you want at svtplay.se
- From the url, grab the name.