LG Infrared

The LG Infrared integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] lets you control an LG TV using any infrared transmitter previously configured in Home Assistant.

Because the integration communicates over infrared, it operates in a one-way, fire-and-forget fashion: commands are sent to the TV but there is no feedback channel to confirm the current state of the TV. The integration therefore uses assumed states.

Prerequisites

Before setting up the LG Infrared integration, you need a working infrared transmitter set up in Home Assistant that exposes an Infrared entity. For example, you can use an ESPHome device with an IR LED pointed at your LG TV.

Configuration

To add the LG Infrared 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.

  • Go to Settings > Devices & services.

  • In the bottom right corner, select the Add Integration button.

  • From the list, select LG Infrared.

  • Follow the instructions on screen to complete the setup.

Device type

The type of LG device to control. Currently, only TV is supported.

Infrared transmitter

The infrared transmitter entity to use for sending commands. This must be an entity provided by a hardware integration (such as ESPHome) that has already been set up with an IR transmitter.

Supported devices

The integration supports LG TVs that can be controlled via the standard LG infrared protocol.

Supported functionality

Entities

The LG Infrared integration provides the following entities.

Buttons

Button entities are created for common TV remote control functions. Each button sends the corresponding infrared command when pressed.

  • Power on, Power off
  • HDMI 1, HDMI 2, HDMI 3, HDMI 4
  • Input
  • Up, Down, Left, Right, OK
  • Back, Exit, Home, Menu
  • Info, Guide
  • 0 through 9

Media player

  • LG TV
    • Description: Represents the LG TV and allows you to control it via IR commands.
    • Supported features: Turn on, turn off, volume up, volume down, mute, channel up, channel down, play, pause, and stop.

Known limitations

  • The integration uses assumed state, meaning Home Assistant cannot read the actual state of the TV (for example, whether it is on or off, or what the current volume is).
  • Turning on and turning off the TV both send the same IR power toggle command, as is standard with infrared remotes.
  • Volume control is step-based only; there is no way to set an absolute volume level.

Removing the integration

This integration follows standard integration removal.

To remove an integration instance from Home Assistant

  1. Go to Settings > Devices & services and select the integration card.
  2. From the list of devices, select the integration instance you want to remove.
  3. Next to the entry, select the three dots menu. Then, select Delete.