Turn on LG WebOS TV using HA

Hi, I am new to HA. I want to set up the configuration to turn on/off my LG webOS Smart TV.
I followed the instruction here: https://home-assistant.io/components/media_player.webostv/7
After the set up, I can only turn off TV but cannot turn it on
Can anyone give me some help? Thanks a lot.

I am using Hass.io (0.59.2)
My TV is using cable connection.

my configuration.yaml is:

image

I can only turn off TV from the overview page (I cannot turn the TV on)

However, when I check my home-assistant.log, it shows nothing, as follows,

2017-12-06 22:09:43 WARNING (MainThread) [homeassistant.setup] Setup of sensor is taking over 10 seconds.
2017-12-06 22:09:44 WARNING (MainThread) [homeassistant.setup] Setup of media_player is taking over 10 seconds.
2017-12-06 22:09:49 WARNING (MainThread) [homeassistant.setup] Setup of tts is taking over 10 seconds.
2017-12-06 22:10:15 WARNING (MainThread) [homeassistant.setup] Setup of wemo is taking over 10 seconds.
2017-12-06 22:10:19 WARNING (MainThread) [homeassistant.components.media_player] Setup of platform cast is taking over 10 seconds.
2017-12-06 22:10:23 WARNING (MainThread) [homeassistant.components.media_player] Setup of platform cast is taking over 10 seconds.

Have you tried cec?

enricho, No CEC yet… I thought the wake_on_lan one maybe easier to start…

I couldn’t get wake on lan working and the following is working flawlessly: https://github.com/joshjowen/script.json-cec

Just configure it like this:

  turn_on:                                                                                                                                                                                
    service: media_player.kodi_call_method                                                                                                                                                
    data:                                                                                                                                                                                 
      entity_id: media_player.kodi                                                                                                                                                        
      method: Addons.ExecuteAddon                                                                                                                                                         
      addonid: script.json-cec                                                                                                                                                            
      params:                                                                                                                                                                             
        command: activate

Thanks enicho. I am new this HA… Just a quick question, to set up the CEC, I need to have an HDMI? I can plug one end of the HDMI cable to the TV, but where I need to plug the the other end of the HDMI to support the wake up feature? Thanks for this,

i have the same problem…you have the news?

Not yet… Some one suggested CEC, but I am new to HA, and I do not even know where to start…

I am very sorry. I just assumed you were also using Kodi. If you do not have a hdmi device hooked up, then this doesn’t work. Another option would be something like the Broadlink RM that records infrared signals from your remote and can be triggered from Home Assistant.

I have 2 x LG TVs. The older one is the original WebOS one. Same as you, I can turn it off with HA, but NOT on.
My newer LG TV runs on WebOSv2… I can use the wake_on_lan to successfully turn it on and off.

I believe with the original WebOS, you’ll need an IR blaster (Broadlink RM - as Enicho suggested), or HDMI-CEC (which means you’d have to have your TV plugged into your RPi.

Thanks R1ngSt1nger. I go the setting of my TV (General–>About this TV), and it does say WebOS Version 2.2.0-150 (beehive-biscayne)

My TV is LG 65LF6350 http://www.lg.com/us/tvs/lg-65LF6350-led-tv

I can turn on but not turn off… I donot think LG support will give me anything about it, right?

no worries, enricho. Thanks a lot for your help. Maybe I really have to find some alternatives to this.

Yeah that’s correct Flamingteeth - looks like WebOS V2 doesn’t support Wake On LAN. My mistake, looks like from WebOS V3 onwards supports WakeOnLAN. You’re stuck with CEC HDMI to wake it which can be impractical if your Pi isn’t near your TV.

Hi
I use LG TV webos model 49UF7787. I configure it in Home Assistant and all works ok but button NEXT and PREV not working… example on LIVE TV not change TV Channnel. Is any chance to add this function to change channel and example on youtube change playing video ?
To change channel it was very need.
Or maybe is any chance to add option to show list channel and change position and apply channel from list…(up/down scroll).

Make a little change in your yaml file
mac: AA:BB:CC:DD:EE:FF
change to
mac: AA-BB-CC-DD-EE-FF
mine worked :slight_smile:

If it can help someone, I had several issues to get my LG TV on, can’t get the WoL working.
So I instead used the HDMI CEC with Roku plugged in my AVR.

turn_on_action:
  service: remote.send_command
  target:
	entity_id: remote.roku
  data:
	command:
	  - left