mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
New documentation about play_media service in LG Netcast (#17543)
This commit is contained in:
parent
53fb699dfd
commit
625912d694
@ -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
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user