Project: LG webOS TV in Home Assistant: Wake-on-LAN power on, a default source, and TV notifications

Discuss Application Development and Smaart Home Integrations for LG webOS Smart TVs
Post Reply
User avatar
ZerOne
Site Admin
Posts: 292
Joined: Sun Dec 13, 2020 8:21 am

A practical project to get an LG webOS TV working in Home Assistant, including turning it on, choosing a source when it starts and showing a notification. It follows the Home Assistant LG webOS TV docs as at October 2026. I have not run it on my own TV, so test each step and check the docs for your version.

Safety: put the TV on an IoT VLAN with a DHCP reservation and do not expose it to the internet.

Step 1: prepare the TV
  1. Connect the TV by Ethernet if possible, and give it a DHCP reservation.
  2. Turn on LG Connect Apps in the Network settings (the docs say pairing fails without it).
  3. Find the setting for Wake-on-LAN. On 2025+ models the docs point to Settings > Support > IP control settings > Wake on LAN, and on 2017+ models to General > Mobile TV On > Turn On Via WiFi. Menu names vary.
  4. Note the TV's MAC address (shown in the network information).
Step 2: add the integration

With the TV on, go to Settings > Devices & services. It may be discovered. If not, choose Add Integration > LG webOS TV and enter the TV's IP address. Accept the pairing prompt that appears on the TV. Once the TV is on, the docs describe choosing which sources the media player offers from the integration's options.

Step 3: power on with Wake-on-LAN

Set up the Wake-on-LAN integration, then build an automation in the editor:
  1. Trigger: "Device is requested to turn on" (webostv.turn_on), choosing your TV.
  2. Action: wake_on_lan.send_magic_packet with your TV's MAC address.
The docs say to create this automation, since otherwise the TV shows as unavailable while off. Keep the same VLAN for Home Assistant and the TV if you can, because routing the Wake-on-LAN packet between subnets needs special router configuration or might not be possible.

Step 4: choose a source when the TV turns on

The docs show an automation that, when the TV turns on, sets the source (for example YouTube). Check your TV's source list attribute first:

Code: Select all

actions:
  - action: media_player.select_source
    target:
      entity_id: media_player.lg_tv
    data:
      source: YouTube
The docs say the source_list attribute shows the exact names to use. The sources can be apps as well as HDMI inputs.

Step 5: send a notification to the TV

Each TV gets a notify action named after the TV, for example notify.livingroom_tv:

Code: Select all

actions:
  - action: notify.livingroom_tv
    data:
      message: "Movement detected: Front Door"
Skip the icon option unless you have tested it, since the docs say most newer firmware ignores it and on some versions it can stop the notification showing.

Troubleshooting from the docs
  • Pairing fails: enable LG Connect Apps.
  • Wake-on-LAN does not work: check the TV setting for your model and use Ethernet.
  • Different VLANs: allow TCP 3000 and 3001 from Home Assistant to the TV, and add the TV by IP.
Keep it safe
  • Use a tight firewall rule for the TV's VLAN, and no port-forwarding.
  • Be careful with automations that press buttons or change inputs at night.
  • Review the notification text so it does not show private information on a big screen.
Discussion: did Wake-on-LAN work first time on your model? What do you use the TV notifications for?
Post Reply

Return to “LG webOS Smart TV Discussion”