Open pizzaboy314 opened 1 year ago
Confirming this plugin has also stopped working for me for a little while now. I'd say on the order of 2-3 weeks.
(No change to the PC's static IP)
Confirming this plugin has also stopped working for me for a little while now. I'd say on the order of 2-3 weeks.
(No change to the PC's static IP)
that timeline sounds right for my experience as well
I'm now working around this issue by using Home Assistant's WoL feature and passing it through to homekit as a switch
Try deleting these two lines from your config, I had similar issues and this plugin worked again after removal.
"startCommandTimeout": 0,
"shutdownCommandTimeout": 0,
Try deleting these two lines from your config, I had similar issues and this plugin worked again after removal.
"startCommandTimeout": 0, "shutdownCommandTimeout": 0,
Just tried this and restarted my Homebridge, still not working unfortunately.
advice to change wake_on_lan to wakeonlan to fix this
Same issue here, since about two week this stopped working suddendly, without any reason. No ping and no magic packet. Please, any solutions?
My solution to this was to install etherwake on my Raspberry Pi, then set the Start command
to wakeonlan [WOL_MAC_ADDRESS]
- works great! Love that I can now wake up and suspend my PC with automation.
So I tried diving into my PC's BIOS just to double check my settings, and it turns out there was a "Boot From Onboard LAN" setting that was set to "Disabled" for some reason. I enabled that and this switch is working for me again... Your mileage may vary, but I suggest double checking your BIOS and Windows settings to ensure they didn't get changed like mine did somehow.
It's interesting that you have seen the issue pop up around the same time, a time around which this plugin hadn't been updated. Could it be that some BIOS or Windows update changed the settings for Wake On LAN?
It's interesting that you have seen the issue pop up around the same time, a time around which this plugin hadn't been updated. Could it be that some BIOS or Windows update changed the settings for Wake On LAN?
No, because within one day of this plugin no longer working, I set up a Home Assistant server and the built in WoL worked immediately with no changes to Windows.
It's weird that something would break out of nowhere without changes anywhere. I'll keep the issue open for a while to see if anyone else has something to add. Otherwise I'll probably close this as there's been no related change made in a long time, so there's nothing that can be changed in the plugin to fix this. It's likely some external factor.
I suspect that an update to HomeBridge or Raspbian caused the issue.
What I observe is that it might get stuck in the shutting down state, and does not move to offline.
The pc does get successfully shutdown and stops responding to pings.
[25/01/2024, 09:13:58] [Home PC] [NetworkDevice] Shutdown cycle started [25/01/2024, 09:13:58] [Home PC] [NetworkDevice] Device went from status "Online" to "ShuttingDown" [25/01/2024, 09:13:58] [Home PC] [NetworkDevice] Attempting to shut down the device using "ssh"
When it works correctly the following two log entries are recorded: [NetworkDevice] Waiting for shutdown grace time (NaNms) [NetworkDevice] Device went from status "ShuttingDown" to "Offline"
This issue could be related to or caused by https://github.com/AlexGustafsson/homebridge-wol/issues/255
My issue #255 is mainly focus on the "detecting" part of online PC (whether the PC is on or off, it only shows the PC is turning off), the turn on feature for PC is working as expect.
In my case was fault of Homebridge (installed on Synology NAS) that, after an update, was unable to ping my computer.
To solve, I connected via SSH to the NAS as root user and executed the following command:
setcap 'cap_net_raw+ep' $(which ping)
Then everything went back working as before. Hope this will help someone else!
Backstory
i hadn't updated or restarted Homebridge or my plugins in a while. after restarting Homebridge recently after disabling another plugin, this plugin stopped waking my PC.
Issue
i did take steps to update Homebridge and this WoL plugin to the most recent version, but the problem persists.
i recently set up a Home Assistant server and i was able to confirm my PC's WoL settings are right by testing it with Home Assistants developer service _wake_on_lan.send_magicpacket, when i tested this with my mac address the PC woke up immediately
Environment
Configuration
Logs
When I follow these steps:
logLevel
is set toDebug
on allNetworkDevice
accessorieshomebridge
I get the following log:
after one minute