From 33a9998b47d5406e4bf81b07c20f245fa557c90d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20M=C3=B6ller?= Date: Sun, 31 Mar 2024 22:59:32 +0200 Subject: [PATCH] Synced up the section "Available actions" of info.md to be the same as README.md --- info.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/info.md b/info.md index af36667..b6bd150 100755 --- a/info.md +++ b/info.md @@ -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: @@ -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 @@ -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