My WOL switches have stopped working.
I have 2 switches. One for my files server and one for my desktop. Both have been working fine for over 2 years, and I’ve noticed the last week that they haven’t been turning on of a morning. One switch has a turn_off
command and this works fine, but waking both up does not seem to work. This is the error I’m getting.
2019-02-04 07:00:00 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
result = coro.throw(exc)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/service.py", line 287, in _handle_service_platform_call
await getattr(entity, func)(**data)
File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/switch/wake_on_lan.py", line 83, in turn_on
self._wol.send_magic_packet(self._mac_address)
AttributeError: module 'wakeonlan' has no attribute '
I’m not sure what has happened. WOL still works from other devices, just not from HA. I haven’t changed anything as this has always worked flawlessly. This is my code below (Mac address’s obfuscated):
switch:
- platform: wake_on_lan
mac_address: "12:34:56:78:90:AB"
name: DESKTOP
host: 192.168.1.7
- platform: wake_on_lan
mac_address: "12:34:56:78:90:AB"
name: SERVER
host: 192.168.1.50
turn_off:
service: shell_command.server_hibernate