updated docs for webostv (#13596)

This commit is contained in:
David Zhu 2020-05-28 03:31:50 +08:00 committed by GitHub
parent 20f1201c1c
commit 01048c1c85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,7 +191,8 @@ Available services: `button`, `command`
| Service data attribute | Optional | Description |
| ---------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `entity_id` | no | Target a specific webostv media player. |
| `command` | no | Endpoint for the command, e.g., `media.controls/rewind`. The full list of known endpoints is available at <https://github.com/bendavid/aiopylgtv/blob/master/aiopylgtv/endpoints.py> |
| `command` | no | Endpoint for the command, e.g., `system.launcher/open`. The full list of known endpoints is available at <https://github.com/bendavid/aiopylgtv/blob/master/aiopylgtv/endpoints.py> |
| `payload` | yes | An optional payload to provide to the endpoint in the format of key value pair(s). |
### Example
@ -204,12 +205,14 @@ script:
entity_id: media_player.lg_webos_smart_tv
button: "HOME"
rewind_command:
open_google_command:
sequence:
- service: webostv.command
data:
entity_id: media_player.lg_webos_smart_tv
command: "media.controls/rewind"
command: "system.launcher/open"
payload:
target: https://www.google.com
```
## Consecutive volume steps delay