Webostv WakeOnLan Docker Issue

This is yet another post about an issue with Wake on Lan and the webostv platform integration.

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

Unless you give your home-assistant container host networking privileges, home-assistant’s wol broadcasts will be limited to within the docker networking.

I had a similar issue and solved it by running a secondary container with socat (with host networking privileges), and then using that as a wol proxy from within home-assistant, see Containerized Home Assistant and wake_on_lan