From 625912d694070e4f4ff9216311a7e420d8af9052 Mon Sep 17 00:00:00 2001 From: Artem Draft Date: Thu, 20 May 2021 15:20:38 +0300 Subject: [PATCH] New documentation about play_media service in LG Netcast (#17543) --- source/_integrations/lg_netcast.markdown | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/source/_integrations/lg_netcast.markdown b/source/_integrations/lg_netcast.markdown index 7d57d93555b..f23d0855f52 100644 --- a/source/_integrations/lg_netcast.markdown +++ b/source/_integrations/lg_netcast.markdown @@ -66,3 +66,17 @@ media_player: mac: AA-BB-CC-DD-EE-FF broadcast_address: 11.22.33.44 ``` + +## Change channel through play_media service + +The `play_media` service can be used in a script to switch to the specified TV channel. It selects the major channel number according to the `media_content_id` parameter: + +```yaml +# Example action entry in script to switch to channel number 15 +service: media_player.play_media +target: + entity_id: media_player.lg_tv +data: + media_content_id: 15 + media_content_type: channel +```