This blueprint will run anytime the user turns the selected webOS media player on through Home Assistant (UI or service).
Adding this blueprint will allow the user to turn on the LG webOS TV through the UI after updating to HA 2022.2, without this blueprint or similar automation the Turn On button won’t be displayed due to a breaking change. This is basically a shortcut to manually adding the automation described in the official documentation.
The default action is to send a Wake On Lan magic packet in order to turn the TV on. Additionally you can also setup custom actions for alternate solutions such as: using an IR remote, turning a smart socket on or calling an script. This is also useful for TV models connected through Wireless that have issues with Wake on Lan.
- 2022.02.03 - First release
- 2022.02.06 - Added custom actions
- 2022.04.27 - Added actions to run after TV is turned On
Click the badge to import this Blueprint: (needs Home Assistant Core 2021.3 or higher)
How to edit configuration.yaml?
Follow the steps described here: Advanced Configuration - Home Assistant
Can you add a field for IP address?
Enable Custom Actions and then add the service wake_on_lan.send_magic_packet manually.
I have two TVs, how do I use this?
Once you’ve added the blueprint to HA, you’ll have to create one automation for each TV.
I added this blueprint and the Power Button won't show!
You might need to disable and enable your automation, if this keeps happening it’s recommended to open an issue.
Why is this necessary?
There was a breaking change documented in HA 2022.2 release notes:
The LG webOS Smart TV integration migrated to configuration via the UI. Configuring LG webOS Smart TV via YAML configuration has been deprecated and will be removed in a future Home Assistant release.
Your existing YAML configuration is automatically imported on upgrade to this release; and thus can be safely removed from your YAML configuration after upgrading.
The turn on action for turning on the TV via
HDMI-CECwas using a service call via YAML, and the turn on action is changed to use a custom automation trigger
webostv.turn_onor a device trigger automation that can be setup from the UI.
Example trigger automation:
automation: 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