Skip to content

Commit b515acd

Browse files
committed
Added info.md
1 parent a3f5ec8 commit b515acd

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

info.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
SVT Play
2+
----
3+
4+
Play svt play programs or channels on home assistant media players.
5+
6+
## Available actions
7+
8+
### Play Suggested
9+
Play the suggested video that is shown on svtplay.se. This is the recomended way of starting a program.
10+
```yaml
11+
- service: svt_play.play_suggested
12+
entity_id: media_player.living_room_tv
13+
data:
14+
program_name: rapport
15+
```
16+
17+
### Play Latest
18+
Play the latest video or clip from a specific program. There exist an option to just play the latest from specific categories.
19+
```yaml
20+
- service: svt_play.play_latest
21+
entity_id: media_player.living_room_tv
22+
data:
23+
program_name: skavlan
24+
category: Intervjuer # Optional
25+
```
26+
27+
### Play Channel
28+
Play one of the svt channels.
29+
```yaml
30+
- service: svt_play.play_channel
31+
entity_id: media_player.living_room_tv
32+
data:
33+
channel: svt1 # Available channels: svt1, svt2, svtbarn, kunskapskanalen, svt24
34+
```
35+
36+
## Installation
37+
38+
### Install
39+
40+
Install this integration here at HACS.
41+
42+
### Active the service
43+
44+
Add:
45+
```yaml
46+
svt_play:
47+
```
48+
to your configuration.yaml file.
49+
50+
### Use in automations
51+
52+
And then add the automation you want:
53+
```yaml
54+
automation:
55+
- alias:
56+
trigger:
57+
# Some trigger
58+
action:
59+
- service: svt_play.play_suggested
60+
entity_id: media_player.living_room_tv
61+
data:
62+
program_name: rapport
63+
```
64+
65+
## Get the `program_name` field
66+
67+
1. Search an click on the program you want at [svtplay.se](https://www.svtplay.se/)
68+
2. From the url, grab the name.
69+
70+
![](https://share.lindell.me/2020/02/SardonicBonobo.png)

0 commit comments

Comments
 (0)