Skip to content

Commit 539984e

Browse files
Add lg_netcast turn_on_action configuration variable (#12075)
* Update lg_netcast.markdown * ✏️ Tweak This is more what I had in mind :) * ❌ Remove part from first config example Co-authored-by: Klaas Schoute <klaas_schoute@hotmail.com>
1 parent c409cc5 commit 539984e

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

source/_integrations/lg_netcast.markdown

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ logo: lg.png
55
ha_category:
66
- Media Player
77
ha_iot_class: Local Polling
8-
ha_release: '0.20'
8+
ha_release: 0.20
99
---
1010

1111
The `lg_netcast` platform allows you to control a LG Smart TV running NetCast 3.0 (LG Smart TV models released in 2012) and NetCast 4.0 (LG Smart TV models released in 2013). For the new LG WebOS TV's use the [webostv](/integrations/webostv#media-player) platform.
@@ -16,7 +16,7 @@ To add a LG TV to your installation, add the following to your `configuration.ya
1616
# Example configuration.yaml entry
1717
media_player:
1818
- platform: lg_netcast
19-
host: 192.168.0.20
19+
host: IP_ADDRESS
2020
```
2121
2222
{% configuration %}
@@ -33,12 +33,31 @@ name:
3333
required: false
3434
default: LG TV Remote
3535
type: string
36+
turn_on_action:
37+
description: Defines an [action](/docs/automation/action/) to turn the TV on.
38+
required: false
39+
type: string
3640
{% endconfiguration %}
3741
3842
To get the access token for your TV configure the `lg_netcast` platform in Home Assistant without the `access_token`.
3943
After starting Home Assistant the TV will display the access token on screen.
4044
Just add the token to your configuration and restart Home Assistant and the media player integration for your LG TV will show up.
4145

4246
<div class='note'>
43-
The access token will not change until you factory reset your TV.
47+
The access token will not change until you factory reset your TV.
4448
</div>
49+
50+
## Advanced configuration
51+
52+
The example below shows how you can use the `turn_on_action`
53+
54+
```yaml
55+
# Example configuration.yaml entry
56+
media_player:
57+
- platform: lg_netcast
58+
host: 192.168.0.20
59+
turn_on_action:
60+
service: switch.turn_on
61+
data:
62+
entity_id: switch.tv_switch
63+
```

0 commit comments

Comments
 (0)