LG WebOS Home Assistant - 50 % Working

I’m working on a new LG WebOS integration through Home Assistant. Its 50% working. Happy to share with everyone, need to get through one issue to complete it. This is 100% IP based no IR device, really don’t want to use a Global Cache device, you loose functionality.

There are 2 types of requests in the Home Assistant WebOS integration.

  1. Working - Commands - these appear to be media commands and work through a regular data action. (Sources, Volume, Mute, App List, Play, Pause, Stop, PWR ON/OFF all working through commands)

  2. Not Working -Buttons - I don’t know how to get the button functions working, they are considered buttons in Home Assistant. (Home, Back, Directions, Menu, Ect)

Here is an example Script of a button from Home Assistant. It does not appear there is a capability on API integration for the buttons.

Home_button:
Sequence:

  • Service: webostv.button
    Target:
    Entity_id: media_player.lg_webos_tv_um6900pua
    Data:
    Button: “HOME”

Here is a link to the LG WebOS home assistant integration that explains it all.

Im not code expert and could use some help to get going in the correct direction. I thought it would be easier, but I tried everything I could think of. I tried a script but kept getting not defined errors. It may take a custom plug in, not sure where to go from here.

This solves the THR not working on port 3001 with LG TVs. Home remote also polls in real time and always stays connected. No connecting and disconnecting.

Hi Aaron,
I use the plugin from THR with my LG-OLED55E97LA (2019).
The buttons such as Direction are MediaCommands for me:
Binding: LgSmartTv.MediaCommand with Value=DirectionUp
or DirectionDown, DirectionLeft …

I don’t know if this will help you in any way.
All commands are case-sensitive.

The THR built in plug in only works on older TV’s with port 3000, newer TV’s use 3001. Many user have been waiting for Bill to update the software. No updates in over 2 years. Home Assistant LG integration is constantly updated, supports all models and is far more customizable.

Would be nice if THR got updated, but it may be end of life.

Bill wants to come back in the near future and would like to make the program available as open source. I could imagine that it would not be very difficult to adapt the port to 3001.