You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_integrations/webostv.markdown
+41-26Lines changed: 41 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -18,14 +18,13 @@ There is currently support for the following device types within Home Assistant:
18
18
-[Media Player](#media-player)
19
19
-[Notifications](#notifications)
20
20
21
-
22
21
To begin with enable *LG Connect Apps* feature in *Network* settings of the TV [instructions](https://www.lg.com/uk/support/product-help/CT00008334-1437131798537-others).
23
22
24
23
Once basic configuration is added to your `configuration.yaml` file. A notification should be visible in the frontend's **Notification** section. Follow the instructions and accept the pairing request on your TV.
25
24
26
25
Pairing information will be saved to a configuration file `webostv.conf` in the Home Assistant configuration directory. This process is IP address-sensitive, in case the IP address of your TV would change in future.
27
26
28
-
###Configuration
27
+
## Configuration
29
28
30
29
To add a TV to your installation, add the following to your `configuration.yaml` file:
31
30
@@ -63,7 +62,7 @@ customize:
63
62
type: list
64
63
{% endconfiguration %}
65
64
66
-
### Example
65
+
### Full configuration example
67
66
68
67
A full configuration example will look like the sample below:
69
68
@@ -83,15 +82,31 @@ webostv:
83
82
- youtube
84
83
- makotv
85
84
- netflix
86
-
85
+
87
86
media_player:
88
87
89
88
notify:
90
89
```
91
90
92
91
Avoid using `[ ]` in the `name:` of your device.
93
92
94
-
### Turn on action
93
+
### Using multiple TVs
94
+
95
+
It is also possible to use multiple TVs with this integration.
96
+
97
+
```yaml
98
+
# Example configuration.yaml entry with multiple TVs
99
+
webostv:
100
+
- name: Living Room TV
101
+
host: 192.168.1.100
102
+
- name: Bedroom TV
103
+
host: 192.168.1.101
104
+
```
105
+
106
+
Please note, the above provides a minimal example, however, all options are
107
+
available for each individual TV.
108
+
109
+
## Turn on action
95
110
96
111
Home Assistant is able to turn on a LG webOS Smart TV if you specify an action, like HDMI-CEC or WakeOnLan.
97
112
@@ -118,11 +133,11 @@ notify:
118
133
119
134
Any other [actions](/docs/automation/action/) to power on the device can be configured.
120
135
121
-
### Sources
136
+
## Sources
122
137
123
138
To obtain complete list of available sources currently configured on the TV, once the webOS TV is configured and linked, while its powered on head to the **Developer Tools** > **States**, find your `media_player.<name>` and use the sources listed in `source_list:` remembering to split them per line into your `sources:` configuration.
124
139
125
-
### Change channel through play_media service
140
+
## Change channel through play_media service
126
141
127
142
The `play_media` service can be used in a script to switch to the specified tv channel. It selects the best matching channel according to the `media_content_id` parameter:
128
143
@@ -146,32 +161,32 @@ data:
146
161
media_content_type: "channel"
147
162
```
148
163
149
-
### Next/Previous buttons
164
+
## Next/Previous buttons
150
165
151
166
The behaviour of the next and previous buttons is different depending on the active source:
152
167
153
-
- if the source is 'LiveTV' (television): next/previous buttons act as channel up/down
154
-
- otherwise: next/previous buttons act as next/previous track
168
+
- if the source is 'LiveTV' (television): next/previous buttons act as channel up/down
169
+
- otherwise: next/previous buttons act as next/previous track
155
170
156
-
### Generic commands and buttons
171
+
## Services
157
172
158
173
Available services: `button`, `command`
159
174
160
-
#### Service `webostv.button`
161
-
162
-
| Service data attribute | Optional | Description |
| `entity_id` | no | Target a specific webostv media player. |
172
-
| `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 |
173
-
174
-
#### Example
175
+
### Service `webostv.button`
176
+
177
+
| Service data attribute | Optional | Description |
| `entity_id` | no | Target a specific webostv media player. |
187
+
| `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> |
0 commit comments