mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 21:36:52 +00:00
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>
This commit is contained in:
parent
c409cc5ff5
commit
539984e94e
@ -5,7 +5,7 @@ logo: lg.png
|
|||||||
ha_category:
|
ha_category:
|
||||||
- Media Player
|
- Media Player
|
||||||
ha_iot_class: Local Polling
|
ha_iot_class: Local Polling
|
||||||
ha_release: '0.20'
|
ha_release: 0.20
|
||||||
---
|
---
|
||||||
|
|
||||||
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.
|
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
|
|||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
media_player:
|
media_player:
|
||||||
- platform: lg_netcast
|
- platform: lg_netcast
|
||||||
host: 192.168.0.20
|
host: IP_ADDRESS
|
||||||
```
|
```
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
@ -33,6 +33,10 @@ name:
|
|||||||
required: false
|
required: false
|
||||||
default: LG TV Remote
|
default: LG TV Remote
|
||||||
type: string
|
type: string
|
||||||
|
turn_on_action:
|
||||||
|
description: Defines an [action](/docs/automation/action/) to turn the TV on.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
To get the access token for your TV configure the `lg_netcast` platform in Home Assistant without the `access_token`.
|
To get the access token for your TV configure the `lg_netcast` platform in Home Assistant without the `access_token`.
|
||||||
@ -40,5 +44,20 @@ After starting Home Assistant the TV will display the access token on screen.
|
|||||||
Just add the token to your configuration and restart Home Assistant and the media player integration for your LG TV will show up.
|
Just add the token to your configuration and restart Home Assistant and the media player integration for your LG TV will show up.
|
||||||
|
|
||||||
<div class='note'>
|
<div class='note'>
|
||||||
The access token will not change until you factory reset your TV.
|
The access token will not change until you factory reset your TV.
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
## Advanced configuration
|
||||||
|
|
||||||
|
The example below shows how you can use the `turn_on_action`
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Example configuration.yaml entry
|
||||||
|
media_player:
|
||||||
|
- platform: lg_netcast
|
||||||
|
host: 192.168.0.20
|
||||||
|
turn_on_action:
|
||||||
|
service: switch.turn_on
|
||||||
|
data:
|
||||||
|
entity_id: switch.tv_switch
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user