New documentation about play_media service in LG Netcast (#17543)

This commit is contained in:
Artem Draft 2021-05-20 15:20:38 +03:00 committed by GitHub
parent 53fb699dfd
commit 625912d694
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
```