LG TV (WebOS) setup

Hello,

I have an LG TV running WebOS. I want to control it using the Sanytron remote. The TV card is asking for Android or Apple TV but there is no option for WebOS. How can i setup LG TV with this remote?

Thanks

I control my LG WebOS TV using the Astrion to control my Logitech Harmony Hub. You would have to purchase an IR Transmitter that can be connected to HA.

I do have a harmony hub which i was hoping to replace with this remote.

What card do i need to use for this remote to allow control of the LG TV via harmony hub?

As far as I can see the Apple TV/android TV just changes the menu and buttons available slightly.

Can you currently control the TV from within home assistant? If so just assign the controls to match and it’ll work.

I have an LG TV and while I haven’t implemented any control yet as I only ever touch the TV remote when a firmware update is needed, the way I would implement it would be to use the LG WebOS integration and a translation script for each button available in the WebOS integration, details available here.

one script per button is the best way to implement it, since the WebOS TV integration does not provide a “Remote” Entity that the Astrion remote can communicate with natively.

An example script would look something like the following, though I haven’t tested it it should be similar, probably possible to build one with the GUI to get the names right then duplicate it and edit in the scripts.yaml file to make each one as needed.

script:
  LGTV_Home_Button:
    sequence:
      - action: webostv.button
        target:
          entity_id:  media_player.your_lgtv
        data:
          button: "HOME"
     alias: LGTV_Home

This could also be done with a nodered flow to make mapping out all the buttons a bit easier if multiple media devices need to be combined with a context aware event for each one.

1 Like

You will be using the Astrion to control your Harmony Hub, not replace.

  • I have button entities setup in NodeRED that are mapped to node-red-contrib-harmony-extra nodes.
  • Each one of these buttons are wrapped in a script which then is mapped to the ROS TV Card

Flow for button.* entities to route to the correct Harmony Activity

Harmony Hub Button Mapper & Home Assistant

  • Ethos behind this is it uses one button.* entity mapped to the remote, NodeRED does the Activity detection and routes the button presses to the right device.

image

image1172Ă—785 251 KB

Scripts then contain the button entities above

Scripts finally mapped to the TV ROS Card