home-assistant.io/source/_integrations/lg_netcast.markdown
Massimiliano Cannarozzo 539984e94e
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>
2020-02-15 11:52:26 +01:00

1.9 KiB

title, description, logo, ha_category, ha_iot_class, ha_release
title description logo ha_category ha_iot_class ha_release
LG Netcast Instructions on how to integrate a LG TV (Netcast 3.0 & 4.0) within Home Assistant. lg.png
Media Player
Local Polling 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 platform.

To add a LG TV to your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
media_player:
  - platform: lg_netcast
    host: IP_ADDRESS

{% configuration %} host: description: The IP address of the LG Smart TV, e.g., 192.168.0.20. required: true type: string access_token: description: The access token needed to connect. required: false type: string name: description: The name you would like to give to the LG Smart TV. required: false default: LG TV Remote type: string turn_on_action: description: Defines an action to turn the TV on. required: false type: string {% endconfiguration %}

To get the access token for your TV configure the lg_netcast platform in Home Assistant without the access_token. 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.

The access token will not change until you factory reset your TV.

Advanced configuration

The example below shows how you can use the turn_on_action

# 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