[lgwebos] Actions: sendButton updated, sendRCButton removed, sendKeyboard added (#13618)

* README: make the list of remote control buttons less specific to a model

Fix #13600

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
lolodomo
2022-10-31 19:57:46 +01:00
committed by GitHub
parent ec90a091c6
commit b6c073d088
4 changed files with 58 additions and 56 deletions

View File

@@ -70,8 +70,8 @@ Here are examples of values that could be available for your TV: airplay, amazon
### Remote Control Buttons
The rcButton channel has only been tested on an LGUJ657A TV. and this is a list of button codes that are known to work with this device.
This list has been compiled mostly through trial and error. Your mileage may vary.
This is a list of button codes that are known to work with several LG WebOS TV models.
This list has been compiled mostly through trial and error, but the codes applicable to your model may vary.
| Code String | Description |
|-------------|----------------------------------------------------------|
@@ -314,14 +314,33 @@ Sends a button press event to a WebOS device.
Parameters:
| Name | Description |
|---------|------------------------------------------------------------------------|
| button | Can be one of UP, DOWN, LEFT, RIGHT, BACK, DELETE, ENTER, HOME, or OK |
| Name | Description |
|---------|------------------------------------------------------------------------------------------------|
| button | Can be one of UP, DOWN, LEFT, RIGHT, BACK, EXIT, ENTER, HOME, OK or any other supported value. |
Example:
```
actions.sendButton("OK")
actions.sendButton("HOME")
```
### sendKeyboard(key)
Sends a keyboard input to the WebOS on-screen keyboard.
Parameters:
| Name | Description |
|---------|--------------------------------|
| key | Can be either DELETE or ENTER. |
DELETE will delete the last character when on-screen keyboard is displayed with focus in the text field.
ENTER will remove the keyboard when on-screen keyboard is displayed with focus in the text field.
Example:
```
actions.sendKeyboard("ENTER")
```
### increaseChannel()