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
- Connect the TV by Ethernet if possible, and give it a DHCP reservation.
- Turn on LG Connect Apps in the Network settings (the docs say pairing fails without it).
- 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.
- Note the TV's MAC address (shown in the network information).
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:
- Trigger: "Device is requested to turn on" (webostv.turn_on), choosing your TV.
- Action: wake_on_lan.send_magic_packet with your TV's MAC address.
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: YouTubeStep 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"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.
- 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.