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 or a compatible LG split air conditioner using any infrared emitter previously configured in Home Assistant. It can also receive commands from an LG remote when you have an infrared receiver set up, allowing you to use the remote to trigger automations in Home Assistant.
Because the integration communicates over infrared, it operates in a one-way, fire-and-forget fashion: commands are sent to the device but there is no feedback channel to confirm the current state. The integration therefore uses assumed states.
Supported devices
The integration supports:
- LG TVs that can be controlled via the standard LG infrared protocol.
- Compatible LG split air conditioners that can be controlled via the standard LG air conditioner infrared protocol.
Prerequisites
Before setting up the LG Infrared integration, you need a working infrared emitter, an infrared receiver, or both, already set up in Home Assistant. Each must expose an Infrared entity. For example, you can use an ESPHome device with an IR LED pointed at your LG device to send commands, and an IR receiver module to capture commands from your LG remote.
For an air conditioner, an infrared emitter is required. The Air conditioner option only appears once you have at least one infrared emitter available.
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.
-
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.
The first step asks which type of LG device you want to set up: TV or Air conditioner. The remaining options depend on that choice. To set up both, add the integration twice.
The infrared emitter entity to use for sending commands to your LG device. This must be an entity provided by a hardware integration (such as ESPHome) that has already been set up with an IR emitter. It is required for an air conditioner.
The infrared receiver entity to use for receiving commands from your LG remote. This must be an entity provided by a hardware integration (such as ESPHome) that has already been set up with an IR receiver. For a TV, received commands are available as events you can use in automations. For an air conditioner, they keep the climate entity in sync with the physical remote.
The operating modes your air conditioner supports. Select at least one of Cool, Heat, Dry, and Fan only. Check your remote or the manual of your unit to see which modes it has. Selecting a mode your unit does not have breaks nothing. Your air conditioner simply does not respond to it. This option is shown for an air conditioner only.
For a TV, select at least one of Infrared emitter or Infrared receiver. Select both if you want to be able to send commands to your TV and react to commands from the remote.
Supported functionality
TV
Buttons
Button entities are created when an infrared emitter is configured. Each button sends the corresponding infrared command to the TV 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
Events
An event entity is created when an infrared receiver is configured. It fires an event each time an LG TV remote command is received, so you can use the remote to trigger automations in Home Assistant.
-
Received command
- Description: Fires when a command from an LG TV remote is decoded from the infrared receiver. The fired event type matches the button pressed on the remote.
-
Event types:
- Navigation:
back,exit,guide,home,info,list,menu,nav_down,nav_left,nav_right,nav_up,ok,settings - Inputs and channels:
channel_down,channel_up,hdmi_1,hdmi_2,hdmi_3,hdmi_4,input - Playback:
fast_forward,pause,play,rewind,stop - Volume and audio:
mute,sap,subtitle,text,volume_down,volume_up - Power:
power,power_off,power_on - Number keys:
num_0throughnum_9 - Color buttons:
blue,green,red,yellow - Other LG commands:
aspect,ez_adjust,in_start -
unknownfor any LG command that is not recognized
- Navigation:
- Remarks: Only commands using the LG infrared address are processed. Signals from other remotes are ignored.
Media player
A media player entity is created when an infrared emitter is configured.
-
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.
Air conditioner
A climate entity is created for each LG air conditioner device you set up.
-
LG AC
- Description: Represents the LG split air conditioner and allows you to control it via IR commands.
- Supported features: Set HVAC mode and set fan mode. Set target temperature is also available when Cool or Heat is one of the supported modes you selected during setup.
Supported modes
The climate entity offers the modes you selected during setup.
- Cool: Cools to a set temperature.
- Heat: Heats to a set temperature. Not all LG air conditioner models have it.
- Dry: Dehumidify mode. The temperature is fixed at 24 °C by the protocol.
- Fan only: Fan circulation without heating or cooling.
Fan speeds
- Auto: The unit selects the speed automatically.
- Quiet: Lowest noise level.
- Low: Low fan speed.
- Medium low: Between low and medium.
- Medium: Medium fan speed.
- Medium high: Between medium and high.
- High: High fan speed.
Temperature range
Supported range: 16 °C to 30 °C in 1 °C steps.
Physical remote state tracking
If you also have an infrared receiver entity (from an IR blaster that can also listen), you can optionally select it during setup. When selected, the integration decodes signals from the physical LG air conditioner remote and updates the climate entity to match, so the mode, fan speed, and target temperature stay in sync.
Known limitations
- The TV media player and button entities use assumed state, meaning Home Assistant cannot verify the actual state of the TV. Commands received from the physical remote are exposed as events only and do not update the TV entity state.
- The climate entity for the air conditioner also uses assumed state, even with physical remote state tracking enabled. The receiver reports what the remote sent, not what the unit is actually doing, so the two can still drift apart, for example if something blocks the line of sight.
- Turning on and turning off the TV both send the same IR power toggle command, as is standard with infrared remotes.
- Volume control for the TV is step-based only; there is no way to set an absolute volume level.
- For the air conditioner, the dry mode temperature is fixed at 24 °C by the LG air conditioner infrared protocol and cannot be changed. Fan only mode has no target temperature at all. Changing the target temperature in either mode is remembered for the next time you switch to cool or heat, but nothing is sent to the unit.
- Changing the fan speed while the air conditioner is off is also remembered rather than sent. It is applied with the next command that turns the unit on.
Removing the integration
This integration follows standard integration removal.
To remove an integration instance from Home Assistant
- Go to Settings > Devices & services and select the integration card.
- From the list of devices, select the integration instance you want to remove.
- Next to the entry, select the three dots
menu. Then, select Delete.