I have a strange problem: after a restart of HA, my LG TV cannot be turned on with the wake_on_lan service but if I use a physical remote to turn the TV on then it is possible to turn it off and on again via HA. This behavior only happened on the first attempt to turn on the TV after restarting the HA. Anyone have this problem?
Hi,
I have solved it like this
configuration.yaml
webostv:
host: ip lg tv
create 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: XX:XX:XX:XX:XX:XX
Hey, @angelosan, I am still struggling, and hoping you will be able to help me out!
I followed all the documentation and the multiple topics on the issue, but once again it doesn’t work. Here is my code (in the automations.yaml file). I am running on Raspberry Pi, Docker container:
- id: '*************'
alias: Turn On Living Room TV with WakeOnLan
description: ''
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"
broadcast_address: "192.168.4.255"
I can see the button to turn on the TV from the Off state, but it won’t actually turn it on. What am I doing wrong?
-
container is set up to work on the same network as the host
-
The TV is running LG WebOS 4.1.5
-
Connected on ethernet, confirmed broadcast address
-
LG Connect Apps enabled in Network Menu
-
Option for “Mobile On” does not exist in General Settings on the TV