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 device to your Home Assistant instance, use this My button:
Manual configuration steps
If the above My button doesn’t work, you can also perform the following steps manually:
-
Browse to your Home Assistant instance.
-
In the bottom right corner, select the
Add Integration button. -
From the list, select LG Netcast.
-
Follow the instructions on screen to complete the setup.
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.
- To create an automation, go to Settings > Devices & services and open the device page.
- Under Automations, select the + icon to create an automation with that device.
- 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"
triggers:
- trigger: lg_netcast.turn_on
entity_id: media_player.lg_netcast_smart_tv
actions:
- action: 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 action
The play_media
action 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
action: media_player.play_media
target:
entity_id: media_player.lg_tv
data:
media_content_id: 15
media_content_type: channel