[codex] Add LG Jet fan mode support#169
Open
joeblack2k wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds explicit support for LG Jet/Power fan mode in the ESPHome climate component.
The LG wired-controller protocol documents fan speed bits
7aspower. On the tested LG indoor unit this is the value emitted when Jet mode is enabled from the remote or app. The existing component treated that value as an unexpected fan mode, marked the incoming status message as an error, and then continued to send the previous normal fan mode back to the unit. In practice this made Jet mode drop back out after a few seconds.Root Cause
Incoming status byte
C8.E2.../C8.E3...has the fan-speed bits set to0b111(7). Before this change,process_status_message()only accepted fan values0..4and returned early for value7with:Because the climate state never represented Jet, the next status send encoded the last normal fan mode, typically medium (
A8.22...), which overwrote Jet mode on the AC bus.Changes
Jet.7to the custom fan mode.Jetback to outgoing LG protocol fan value7.set_fan_mode_()/set_custom_fan_mode_()helpers so standard fan modes and the custom fan mode remain mutually exclusive.Validation
Tested on a live LG Airco ESP32 controller with ESPHome 2026.5.1.
Configuration validation:
Firmware build:
OTA flash:
Manual remote/app Jet capture before the fix showed the unsupported fan value:
After the fix, setting
fan_mode: Jetthrough Home Assistant produced the expected protocol bytes and remained active for more than one minute:Home Assistant also reported:
No
unexpected fan modeerrors appeared after the change, and the controller no longer wrote medium fan mode over Jet.