New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WOL stopped working on 0.112.3 #37623
Comments
Hi there @tjhiwa, Thanks for opening up an issue! When creating an issue, an issue template is presented. Could you please update your issue description so it uses that template? Thanks already! 👍 |
Updated. |
Same issue with 0.112.3 on HassOS 4.11 kvm appliance. |
I had this issue too. |
where do I add this |
This fixed the issue for my WebOS TV |
This is not an issue with the WebOS integration, it is an issue in the wake_on_lan integration and was introduced in 112.0. This most likely duplicates #37399 and #37107 I have a PR #37387 that should take care of this, as I also use WOL for my LG tv. @frenck can you remove the |
Agree, WebOS is just one of the integrations that uses WOL, looks like the addition of the broadcast_port is having issues as it is sending None to media_player.turn_on where media_player.turn_on is expecting an in 2020-07-07 08:35:38 INFO (MainThread) [homeassistant.components.wake_on_lan] Send magic packet to mac FF:FF:FF:FF:FF:FF (broadcast: 192.168.0.187, port: None) |
Same issue here, it does work when adding the earlier suggested Either the docs on https://www.home-assistant.io/integrations/wake_on_lan/ and developer-tools/service mention that broadcast_port is an optional parameter, so that seems to be wrong at this moment. |
This should be fixed in 0.112.4 via #37387 |
The problem
After updating to 0.112.3 (from 0.112.2), the wake on LAN no longer works, with error. It's called from LG WebOsTv integration.
Environment
Problem-relevant
configuration.yaml
webostv:
host: 192.168.x.x
name: LG Smart TV
turn_on_action:
service: wake_on_lan.send_magic_packet
data:
mac: 2C-2B-xx-xx-xx-xx
broadcast_address: 192.168.x.x
Traceback/Error logs
Log Details (ERROR)
Logger: homeassistant.components.websocket_api.http.connection.140102368585616
Source: components/wake_on_lan/init.py:46
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 2:14:25 AM (3 occurrences)
Last logged: 2:15:16 AM
an integer is required (got type NoneType)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 130, in handle_call_service
connection.context(msg),
File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1295, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 209, in handle_service
self._platforms.values(), func, call, required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 454, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 595, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 485, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/webostv/media_player.py", line 331, in async_turn_on
await self._on_script.async_run()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 831, in async_run
await run.async_run()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 555, in async_run
await self._async_run()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 572, in _async_run
await self._async_step(log_exceptions=not propagate_exceptions)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 153, in _async_step
self, f"async{cv.determine_script_action(self._action)}_step"
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 656, in _async_call_service_step
*self._prep_call_service_step(), blocking=True, context=self._context
File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1295, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/components/wake_on_lan/init.py", line 46, in send_magic_packet
port=broadcast_port,
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/wakeonlan.py", line 79, in send_magic_packet
sock.connect((ip, port))
TypeError: an integer is required (got type NoneType)
Additional information
The text was updated successfully, but these errors were encountered: