Skip to content

Commit 33a9998

Browse files
erikmollindell
authored andcommitted
Synced up the section "Available actions" of info.md to be the same as README.md
1 parent aa94da7 commit 33a9998

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

info.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Play the suggested video that is shown on svtplay.se. This is the recomended way
1717
1818
### Play Latest
1919
Play the latest video or clip from a specific program. There exists two options to exclude or include videos matching specific categories.
20+
```yaml
2021
- service: svt_play.play_latest
2122
entity_id: media_player.living_room_tv
2223
data:
@@ -25,6 +26,16 @@ Play the latest video or clip from a specific program. There exists two options
2526
exclude_category: utan filmer # Optional
2627
```
2728
29+
### Play random
30+
Play a random video or clip from a specific program. There exist an option to just random from specific categories.
31+
```yaml
32+
- service: svt_play.play_random
33+
entity_id: media_player.living_room_tv
34+
data:
35+
program_name: skavlan
36+
category: Intervjuer # Optional
37+
```
38+
2839
### Play Channel
2940
Play one of the svt channels.
3041
```yaml
@@ -33,6 +44,14 @@ Play one of the svt channels.
3344
data:
3445
channel: svt1 # Available channels: svt1, svt2, svtbarn, kunskapskanalen, svt24
3546
```
47+
### Play video id
48+
If a specific video should be played, its "id" can be extracted from the url. For example `jXvZLoG` is the id found in the following url: `https://www.svtplay.se/video/jXvZLoG/ifs-invandrare-for-svenskar/avsnitt-3`
49+
```yaml
50+
- service: svt_play.play_videoid
51+
entity_id: media_player.living_room_tv
52+
data:
53+
videoid: jXvZLoG
54+
```
3655

3756
## Installation
3857

0 commit comments

Comments
 (0)