Skip to content

Commit

Permalink
Synced up the section "Available actions" of info.md to be the same a…
Browse files Browse the repository at this point in the history
…s README.md
  • Loading branch information
erikmol authored and lindell committed Apr 2, 2024
1 parent aa94da7 commit 33a9998
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions info.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Play the suggested video that is shown on svtplay.se. This is the recomended way

### Play Latest
Play the latest video or clip from a specific program. There exists two options to exclude or include videos matching specific categories.
```yaml
- service: svt_play.play_latest
entity_id: media_player.living_room_tv
data:
Expand All @@ -25,6 +26,16 @@ Play the latest video or clip from a specific program. There exists two options
exclude_category: utan filmer # Optional
```

### Play random
Play a random video or clip from a specific program. There exist an option to just random from specific categories.
```yaml
- service: svt_play.play_random
entity_id: media_player.living_room_tv
data:
program_name: skavlan
category: Intervjuer # Optional
```

### Play Channel
Play one of the svt channels.
```yaml
Expand All @@ -33,6 +44,14 @@ Play one of the svt channels.
data:
channel: svt1 # Available channels: svt1, svt2, svtbarn, kunskapskanalen, svt24
```
### Play video id
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`
```yaml
- service: svt_play.play_videoid
entity_id: media_player.living_room_tv
data:
videoid: jXvZLoG
```

## Installation

Expand Down

0 comments on commit 33a9998

Please sign in to comment.