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.

Configuration

To add the LG Netcast integration to your Home Assistant instance, use this My button:

Turn on action

Home Assistant can turn on an LG Netcast TV if you specify an action provided by an integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] like HDMI-CEC or WakeOnLan.

  1. To create an automation, go to Settings > Devices & services and open the device page.
  2. Under Automations, select the + icon to create an automation with that device.
  3. In the dialog, select the Device is requested to turn on automation.

Automations can also be created using an automation action:

The example below shows how you can use the turn_on_action with the wake_on_lan integration.

# Example configuration.yaml entry
wake_on_lan: # enables `wake_on_lan` integration

# Enables the `lg_netcast` media player
automation:
  - alias: "Turn On Living Room TV with WakeOnLan"
    trigger:
      - platform: lg_netcast.turn_on
        entity_id: media_player.lg_netcast_smart_tv
    action:
      - service: wake_on_lan.send_magic_packet
        data:
          mac: AA-BB-CC-DD-EE-FF
          broadcast_address: 11.22.33.44

Any other actions to power on the device can be configured.

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
target:
  entity_id: media_player.lg_tv
data:
  media_content_id: 15
  media_content_type: channel