diff --git a/README.md b/README.md index da038e8..a126556 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,21 @@ channels: number: '503' ``` + +### Custom button Options +The LG tv remote has more buttons available, also depending on the model. + +| Name | Type | Default | Supported options | Description | +| -------------- | ----------- | ------------ | ------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `name` | string | **Required** | A [Supported button](https://www.home-assistant.io/integrations/webostv/#service-webostvbutton) command | | +| `icon` | string | **Required** | 'mdi:netflix'| url of the image to be displayed in the extra button | + +```yaml +custom_buttons: + - name: SCREEN_REMOTE + icon: mdi:dots-horizontal +``` + ### Colors Options | Name | Type | Default | Supported options | Description | | -------------- | ----------- | ------------ | ------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | diff --git a/lg-remote-control.js b/lg-remote-control.js index c0fdd64..b0814c4 100644 --- a/lg-remote-control.js +++ b/lg-remote-control.js @@ -264,7 +264,11 @@ class LgRemoteControl extends LitElement { + + + + ${this._show_inputs ? html`