AlexGustafsson / homebridge-wol

A Wake on Lan plugin for Homebridge
MIT License
301 stars 30 forks source link

PC always shows as "Offline" #98

Closed npburns224 closed 4 years ago

npburns224 commented 4 years ago

Issue

My PC is always shown as "Off" in the Home app. I'm able to wake it, but once awake it's status never updates. Instead, the switch in the Home app becomes unresponsive for a short while, then sets itself to the "Off" position. Because of this, I'm unable to shutdown my machine since the plugin assumes it to already be off and won't issue the shutdown command. I've tried disabling my firewall, but I didn't seem to have any luck.

Environment

Configuration

{
            "accessory": "NetworkDevice",
            "name": "PC",
            "mac": "<mac-address>",
            "ip": "10.1.44.201",
            "shutdownCommand": "http://10.1.44.20:5001/secret/hibernate"
}

Log Output

[3/16/2020, 5:21:37 AM] [PC] Attempting to ping "PC" (10.1.44.201)
[3/16/2020, 5:21:38 AM] [PC] Result of pinging "PC" (10.1.44.201): offline
[3/16/2020, 5:21:39 AM] [PC] Attempting to ping "PC" (10.1.44.201)
[3/16/2020, 5:21:40 AM] [PC] Result of pinging "PC" (10.1.44.201): offline
[3/16/2020, 5:21:41 AM] [PC] Attempting to ping "PC" (10.1.44.201)
[3/16/2020, 5:21:42 AM] [PC] Result of pinging "PC" (10.1.44.201): offline
[3/16/2020, 5:21:43 AM] [PC] Attempting to ping "PC" (10.1.44.201)
[3/16/2020, 5:21:44 AM] [PC] Result of pinging "PC" (10.1.44.201): offline
[3/16/2020, 5:21:45 AM] [PC] Attempting to ping "PC" (10.1.44.201)
[3/16/2020, 5:21:46 AM] [PC] Result of pinging "PC" (10.1.44.201): offline
[3/16/2020, 5:21:46 AM] [PC] Got 0 positives out of 5
[3/16/2020, 5:21:47 AM] [PC] Got state change from pinger for "PC" (10.1.44.201): offline
AlexGustafsson commented 4 years ago

It seems like your pings do nothing. Can you try to debug the issue?

Things to try are:

npburns224 commented 4 years ago

I made an exception for ICMPv4 echo requests in Windows Firewall, but I guess it got disabled at some point in my poking around. So everything is working now!