LG Netcast

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.yamlThe configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI.[Learn more] file:

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

Configuration Variables

host string Required

The IP address of the LG Smart TV, e.g.,

access_token string (Optional)

The access token needed to connect.

name string (Optional, default: LG TV Remote)

The name you would like to give to the LG Smart TV.

turn_on_action string (Optional)

Defines an action to turn the TV on.

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 the wake_on_lan integration.

wake_on_lan: # enables `wake_on_lan` integration

# Enables the `lg_netcast` media player
  - platform: lg_netcast
      service: wake_on_lan.send_magic_packet
        mac: AA-BB-CC-DD-EE-FF

Change channel through play_media service

The play_media service can be used in a script to switch to the specified TV channel. It selects the major channel number according to the media_content_id parameter:

# Example action entry in script to switch to channel number 15
service: media_player.play_media
  entity_id: media_player.lg_tv
  media_content_id: 15
  media_content_type: channel