LG webOS Smart TV - Enable Turn On Action for HA 2022.2+

This works and doesn’t break at first startup. If there is no downside to the new trigger method it might be safe for updating to everyone.

1 Like

Sweet, there is a breaking change, but functionality will be the same.

I’ll release it on stable

1 Like

Thanks a lot!

Please forgive the noob question, but here goes.

I have my LGTVs integrated into HA – check
I can send magic packets via a WOL entity to turn on my TVs – check
I’ve even setup an automation to send the magic packet when the TV is turned on – check again

But, when accessing the TV through a dashboard, there is no way (that I can see) to turn on the TV from a media card. Once the TV is turned on (whether through my physical remote or by turning on the WOL switch), then the media card works great. Just can’t figure out if/how to turn the TV on from the media card to begin with.

I haven’t (yet) implemented this blueprint. Does this blueprint solve my problem? Appreciate any suggestions.

I’ve tried to import this blueprint and the import and configuration works well, when I press the power on button on the multimedia panel the automation correctly execute the job but the tv didn’t power on.

I see in the trace that all the passages are correctly executed.

I’ve also seen to configure a wakeonlan switch

wake_on_lan:
switch:
  - platform: wake_on_lan
    name: LG_TV_WOL
    host: 10.10.2.31
    mac: "20:28:BC:CC:02:D4"
    broadcast_address: 10.10.2.255

and it works perfectly

what i’ve do wrong? this is my config for the blueprint

alias: LG webOS Smart TV - Turn On Action
description: ""
use_blueprint:
  path: cvroque/webostest.yaml
  input:
    webostv: 726f9b61a56b38781b34f26b96191a5a
    webostv_mac: 20:28:BC:CC:02:D4

I’ve found the problem, I’ve multiple lan interfaces on the server and the tv is on the secondary lan and not on the default gateway lan.
You need to manage also the broadcast ip on the configuration to manage this case

1 Like

Hey there!

The IMPORT BLUEPRINT TO MY HA button up top is leading to a 404 error…

Any idea why or how to go around this?

thanks!

Hey,
You should click on the “My HA” link and you’ll be in an intermediate page, then check the address on Your instance URL. The address might be wrong, causing the redirect to fail.

Alternatively, go straight into HA and import from the URL: https://gist.github.com/cvroque/6780ca0869ef781e9de3b506fd501f78

1 Like

Thanks for coming back to me, Carlos!
However, I dont think it’s matter of the url of my instance:

If I navigate to http://homeassistant.local:8123, I can access without a problem, but clicking on Open Link shows me a

404: Not Found.

Could it be due to the repository being private on your github account? Trying to wild guess reasons…!

Same thing happening to me.

I tried generating the link again and updated the post:

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

Here is the correct link to import directly in case it fails:

https://gist.github.com/cvroque/6780ca0869ef781e9de3b506fd501f78#file-webostv_turn_on-yaml
2 Likes

got it thanks!

I believe it was my problem though, I had touched my configuration.yaml to remove the default_config, and I had to include the my: to get these type of redirects back to work.

Thank you in any case, I just imported it now!

1 Like

I cant ad the blue print with the “import blueprint to my HA” or importing it directly. With both options nothing happens. Other blueprints do work. Any idea what to do?

Worked like a charm and I powered on LG TV from a flow in Node-RED calling a service of switch domain.

Thank you so much!

Hey there, this works great if I have a power button directly attached to the media_player.lgtv etc etc

However I’ve got a slightly more complicated setup using the Universal media player HA tool (so I can combine my Apple TV with the volume control for my soundbar), and whilst I’ve got the media_player.turn on/off actions set correctly for the universal control, the turn on doesn’t seem to trigger this automation when it’s part of the unverisal control.

I am too dumb to figure out a solution, so if anyone else has one, please jump in! :slight_smile:

works for me … make sure you have HDMI-CEC set to on, then the tv and apple tv should turn on and off together

The CEC on has never reliably worked for last couple years worth of firmware for some reason. We’ve got an LG OLED.

Since you’re already using the blueprint, go to edit it and then use this option to take over:
image
After that, you’ll confirm to take control and replace the device in the trigger to be your own universal media player.

Thank you very much - works 100% for me!

2 Likes