# Example configuration.yaml entry
wake_on_lan: # enables `wake_on_lan` integration
automation:
- alias: "Turn On Living Room TV with WakeOnLan"
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
- Enable Wake-on-LAN in configuration.yaml
# Example configuration.yaml entry
wake_on_lan:
- Enable
Turn on vi Wi-Fi
on LG TV. Reference
- Turn off Quick Start +
Some say Quick Start + will jam WOL. If so:
TL;DR: Settings > All settings > General > System > Devices > TV Management, and turn off Quick Start+.
- Call the service with MAC address specified.
service: wake_on_lan.send_magic_packet
data:
mac: aa:bb:cc:dd:ee:ff
service: media_player.select_source
data:
source: Netflix
target:
entity_id: media_player.lg_webos_smart_tv
alias: Switch on TV to watch Netflix
sequence:
- service: wake_on_lan.send_magic_packet
data:
mac: aa:bb:cc:dd:ee:ff
- wait_for_trigger:
- platform: device
device_id: 8e6365755c364a7089d69ebe3fed58a2
domain: media_player
entity_id: media_player.lg_webos_smart_tv
type: turned_on
for:
hours: 0
minutes: 0
seconds: 0
- service: media_player.select_source
data:
source: Netflix
target:
entity_id: media_player.lg_webos_smart_tv
- service: notify.mobile_app_iphone
data:
message: Netflixing
title: TV is on.
target: SOME_IPHONE
mode: single
icon: mdi:television-classic
Background: a scene cannot turn on a script or automation, but it will fire an event, so a script can be triggered by observing that event.
Example:
- id: '1598543301938'
alias: Sleepy Light Automation
trigger:
- event_data:
domain: scene
service: turn_on
service_data:
entity_id: scene.bed_light_on_red_45
event_type: call_service
platform: event
action:
- entity_id: script.sleepy_light
service: script.turn_on
mode: single