LG webos TV - power ON button

Hello,

Please help me creating the power button for my LG TV.
I followed the steps on the integration page https://www.home-assistant.io/integrations/webostv/.
Immediately after integration I was able to use this card:

By default I can turn off the TV but not turn it on.
I tried several options found on the forum but something escapes me and I fail to integrate the stop function.
This is the code that I have now on my configuration file, not all is used as it can bee seen:

webostv:
  host: !secret hostLG
  name: Living room TV LG

#wake_on_lan
#media_player:
#  - platform: webostv
#    host: 192.168.2.204
#    name: Living room TV
#    mac: !secret LGwebOSTV_MAC 
#    filename: webostv.conf
#    turn_on_action:
#      service: wake_on_lan.send_magic_packet
#      data:
#        mac: !secret LGwebOSTV_MAC

Do I have to create a switch or something else to make it work?

Thank you,
Ciprian

Mine works and the config looks like this:

wake_on_lan:  

webostv:
    host: 192.168.4.161
    name: Lounge TV
    turn_on_action:
      service: wake_on_lan.send_magic_packet
      data:
        mac: "macaddyhere"

Looks like if you scroll about half way down the page here:

Hello,

Thanks for the info, now I have the on / off button visible all the time but I still can’t turn on the TV.
Do you have any idea if it might not work because my TV it is connected to WiFi?

Thank you!

There are some settings in the tv options about network devices controlling the power state.
Check here:

Hi,

It seems that my TV doesn’t have the option Mobile TV ON even if it was released in 2016.
I think that I will use chromecast to power on the TV

Thank you for your help!

It seems like this has changed in the past 2 years. This config recommended here by @danbutter gives an error now:

ERROR (MainThread) [homeassistant.components.webostv] The 'webostv' option has been removed, please remove it from your configuration

The docs suggest using an automation to turn on the TV as below. The wake_on_lan service works for me, but the power on button in the TV device card is still unavailable when the TV is off. What’s the current way to make this work?

wake_on_lan:

automation:
  - alias: "Turn On Living Room TV with WakeOnLan"
    trigger:
      - platform: webostv.turn_on
        entity_id: media_player.lg_webos_smart_tv
    action:
      - service: wake_on_lan.send_magic_packet
        data:
          mac: aa:bb:cc:dd:ee:ff

Have you checked out this card?
Works great😉

That’s cool, thanks for the link. But I prefer something smaller, like the media player card. Is it possible to make that power button work?

1 Like

I’m looking for a solution for this as well-- did you find something?

I made the mistake of putting the yaml code in the configuration.yaml even though the directions clearly state to make an automation, newbie mistake. Here is a screenshot if you want to do this with the automation GUI


Use the mac address of your TV not the AA:BB:CC:DD:EE:FF

3 Likes

Hi,

Sorry for this late response. In HACS you can find LG-WebOS-Remote-Control mentioned already by @aceindy. But for me the solution was to use an IR remote from Xiaomi ( Model ) this is the model if I remember well, I am also using for other TV BroadLink RM4 Mini which is working great.
I found this solution better because I was able to control also my soundbar.

Have a good day!