LG Netcast
The LG Netcast integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] 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 LG webOS TV 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.
List of triggers
The LG Netcast integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] provides the following triggers. Each link below opens a dedicated page with examples, fields, and a step-by-step UI walkthrough.
-
Device is requested to turn on (
lg_netcast.turn_on) Triggers when something requests an LG Netcast TV to turn on.
For an overview of every trigger across all integrations, see the triggers reference.
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
Remote
The LG Netcast remote platform creates a Remote entity for each configured TV. This entity allows you to send remote control commands. To power on the TV, use the Device is requested to turn on trigger.
Action: Send command
The remote.send_command action sends one or more remote commands to the TV.
-
Data attribute:
command- Description: Command, or list of commands, to send. See the list below.
- Optional: No
-
Data attribute:
num_repeats-
Description: Number of times to repeat the command sequence. The default is
1. - Optional: Yes
-
Description: Number of times to repeat the command sequence. The default is
-
Data attribute:
delay_secs- Description: Delay in seconds between commands and repeats.
- Optional: Yes
Full key code list
APPSASPECT_RATIOAUDIO_DESCRIPTIONAV_MODEBACKBLUECHANNEL_DOWNCHANNEL_UPDASHDOWNENERGY_SAVINGEPGEXITEXTERNAL_INPUTFAST_FORWARDFAVORITE_CHANNELGREENHOME_MENULEFTLIVE_TVLR_3DMARKMUTE_TOGGLENUMBER_0NUMBER_1NUMBER_2NUMBER_3NUMBER_4NUMBER_5NUMBER_6NUMBER_7NUMBER_8NUMBER_9OKPAUSEPIP_CHANNEL_DOWNPIP_CHANNEL_UPPIP_SECONDARY_VIDEOPLAYPOWERPREVIOUS_CHANNELPROGRAM_INFORMATIONPROGRAM_LISTQUICK_MENURECORDRECORDING_LISTREDREPEATRESERVATION_PROGRAM_LISTREWINDRIGHTSHOW_SUBTITLESIMPLINKSKIP_BACKWARDSKIP_FORWARDSTOPSWITCH_VIDEOTELE_TEXTTEXT_OPTIONUPVIDEO_3DVOLUME_DOWNVOLUME_UPYELLOW
Examples
Send a single command:
action: remote.send_command
target:
entity_id: remote.lg_tv
data:
command: HOME_MENU
Send repeated commands with a delay:
action: remote.send_command
target:
entity_id: remote.lg_tv
data:
command:
- VOLUME_UP
num_repeats: 5
delay_secs: 0.3