Error trying to wake on lan a LG Smart TV

I’m running 0.70.1. The wake on lan feature of a smart tv doesn’t work anymore. Seems that someone removed the send_magic_paket function from class wakeonlan :slight_smile:

Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/”, line 1007, in _event_to_service_call
await service_handler.func(service_call)
File “/usr/lib/python3.6/site-packages/homeassistant/components/”, line 49, in send_magic_packet
partial(wakeonlan.send_magic_packet, mac_address))
AttributeError: module ‘wakeonlan’ has no attribute ‘send_magic_packet’
2018-06-04 21:06:28 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on 433-bridge/relay/1: b’1’
2018-06-04 21:06:29 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on 433-bridge/relay/1: b’0’

Can anyone help?


Best regards!

Not working for me either - was this fixed?

I have the same issue, everything works except wake on lan. And I have configured my LG TV as described in the home assistant documentation.

Got it working in the end using switches:



  • platform: wake_on_lan
    name: LG


  • platform: webostv
    name: TV
    service: switch.turn_on
    entity_id: switch.lg

Thats great!

I got it working as well, I had to use a shell_command, since my server is connected via wlan. So I ran a etherwake command on my host machne, that way I could choose wlan to send the wake on lan packet instead of ethernet which the wake_on_lan switch use.