There is already a LG WebOS app available but it hasn’t been updated in a long time and it doesn’t work reliable. LG WebOS offers a lot more features like directly selecting the channel, showing you what is being played, the state of the current TV like “off” or “playing”. All of this can be done directly through WebOS without the IR remote feature.
Would be great if we could get a better integration with the LG Tvs as it would allow us a lot of more automations.
Here is the integration of LG WebOS for Home Assistant, maybe the code can be helpful for this: