AlexGustafsson / homebridge-wol

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

I cant seem to get this to work...but im also pretty computer dumb #54

Closed mrjcohen closed 5 years ago

mrjcohen commented 5 years ago

Backstory

Im trying to use a raspberry pi in conjunction with homebridge to wake a windows 10 PC but despite my best attempts it doesnt seem to work. I feel I may be missing something. Does the windows PC need to have some sort of WOL software running on it as well?

I enabled 'Allow this device to wake the computer' and 'Only allow a magic packet to wake the computer' for the Ethernet Adapter in Device Manager. I also enabled WOL in my BIOS advanced power management.

When I flip the switch on my iphone using homekit the switch will turn on and off but nothing happens to my PC. Also the switch does not accurately reflect if my PC is on or off despite having included my mac address in config.json file

Issue

This is the 2nd plugin for homebridge I am attempting. The first one works great so I think I have the installation of homebridge done ok. Homebridge is set to auto start using pm2. For this plugin I followed the installation to the best of my ability.

Based on the instruction these are the 3 commands I thought I needed to run:

sudo npm install -g homebridge-wol

sudo setcap cap_net_raw=pe /usr/bin/node

sudo apt-get install samba samba-common

Environment

Configuration

My configuration looks like this:

NOTE: I AM GOING TO KEEP THE MAC ADDRESS BUT CHANGE IT A BIT BECAUSE I WANT TO KNOW IF MAYBE MY PROBLEM IS A FORMATTING ISSUE.

{
        "bridge": {
                "name": "Homebridge",
                "username": "AA:35:3A:A3:AA:30",
                "port": 51826,
                "pin": "032-45-154"
        },

        "description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actuall$

        "accessories": [{
                        "accessory": "webostv",
                        "name": "My webOS tv",
                        "ip": "192.168.1.24",
                        "mac": "7B:1B:4B:5B:22:00",
                        "keyFile": "/home/pi/.homebridge/lgtvKeyFile",
                        "mediaControl": false,
                        "pollingEnabled": true,
                        "appSwitch": [
                                "com.webos.app.hdmi1",
                                "com.webos.app.hdmi2",
                                "com.webos.app.hdmi3",
                                "com.webos.app.hdmi4"
                        ]
                },
                {
                        "accessory": "NetworkDevice",
                        "name": "Gaming PC",
                        "mac": "32C050C2276C",
                        "ip": "192.168.1.41",
                        "shutdownCommand": "net rpc shutdown --ipaddress 192.168.1.41 --user username%password"
                }
        ],

        "platforms": []
}

PLEASE CHECK THE FAKE MAC ADDRESSES I INCLUDED TO MAKE SURE THE FORMAT IS CORRECT

Log

When I follow these steps:

  1. Run DEBUG=* homebridge
  2. Let it run for five minutes
  3. Tap a switch
  4. Wait one minute
  5. Tap the same switch

I get the following log:

pi@raspberrypi:~ $ DEBUG=* homebridge
[2019-1-1 19:36:43] Loaded config.json with 2 accessories and 0 platforms.
[2019-1-1 19:36:43] ---
[2019-1-1 19:36:43] Loaded plugin: homebridge-webos-tv
[2019-1-1 19:36:43] Registering accessory 'homebridge-webos-tv.webostv'
[2019-1-1 19:36:43] ---
[2019-1-1 19:36:43] Loaded plugin: homebridge-wol
[2019-1-1 19:36:43] Registering accessory 'homebridge-wol.NetworkDevice'
[2019-1-1 19:36:43] ---
[2019-1-1 19:36:43] Loading 0 platforms...
[2019-1-1 19:36:43] Loading 2 accessories...
[2019-1-1 19:36:43] [My webOS tv] Initializing webostv accessory...
[2019-1-1 19:36:43] [Gaming PC] Initializing NetworkDevice accessory...
[2019-1-1 19:36:43] [Gaming PC] Stopping pinger
[2019-1-1 19:36:43] [Gaming PC] Starting pinger at an interval of 2000 milli seconds
Setup Payload:
X-HM://0025IV32CL5OB
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

    ┌────────────┐
    │             │
    └────────────┘

  EventedHTTPServer Server listening on port 51826 +0ms
[2019-1-1 19:36:43] Homebridge is running on port 51826.
  EventedHTTPServer [::ffff:192.168.1.3] New connection from client +998ms
  EventedHTTPServer [::ffff:192.168.1.3] HTTP server listening on port 39641 +2ms
  EventedHTTPServer [::ffff:192.168.1.3] HTTP request: /pair-verify +27ms
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: POST /pair-verify +2ms
  HAPServer [CC:34:3D:E3:CE:30] Pair verify step 1/2 +11ms
  EventedHTTPServer [::ffff:192.168.1.3] HTTP Response is finished +37ms
  EventedHTTPServer [::ffff:192.168.1.3] HTTP request: /pair-verify +11ms
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: POST /pair-verify +0ms
  HAPServer [CC:34:3D:E3:CE:30] Pair verify step 2/2 +2ms
  HAPServer [CC:34:3D:E3:CE:30] Client 6A7DCF68-57D2-450D-A854-8155C7A9B0D2 verification complete +9ms
  EventedHTTPServer [::ffff:192.168.1.3] HTTP Response is finished +2ms
  EventedHTTPServer [::ffff:192.168.1.3] HTTP request: /accessories +9ms
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: GET /accessories +0ms
  EventedHTTPServer [::ffff:192.168.1.3] HTTP Response is finished +6ms
  EventedHTTPServer [::ffff:192.168.1.5] New connection from client +106ms
  EventedHTTPServer [::ffff:192.168.1.5] HTTP server listening on port 39325 +1ms
  EventedHTTPServer [::ffff:192.168.1.15] New connection from client +2ms
  EventedHTTPServer [::ffff:192.168.1.15] HTTP server listening on port 43595 +1ms
  EventedHTTPServer [::ffff:192.168.1.6] New connection from client +1ms
  EventedHTTPServer [::ffff:192.168.1.6] HTTP server listening on port 41935 +1ms
  EventedHTTPServer [::ffff:192.168.1.5] HTTP request: /pair-verify +4ms
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: POST /pair-verify +1ms
  HAPServer [CC:34:3D:E3:CE:30] Pair verify step 1/2 +1ms
  EventedHTTPServer [::ffff:192.168.1.5] HTTP Response is finished +10ms
  EventedHTTPServer [::ffff:192.168.1.15] HTTP request: /pair-verify +1ms
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: POST /pair-verify +0ms
  HAPServer [CC:34:3D:E3:CE:30] Pair verify step 1/2 +1ms
  EventedHTTPServer [::ffff:192.168.1.15] HTTP Response is finished +10ms
  EventedHTTPServer [::ffff:192.168.1.6] HTTP request: /pair-verify +1ms
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: POST /pair-verify +0ms
  HAPServer [CC:34:3D:E3:CE:30] Pair verify step 1/2 +1ms
  EventedHTTPServer [::ffff:192.168.1.6] HTTP Response is finished +10ms
  EventedHTTPServer [::ffff:192.168.1.6] HTTP request: /pair-verify +34ms
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: POST /pair-verify +0ms
  HAPServer [CC:34:3D:E3:CE:30] Pair verify step 2/2 +1ms
  HAPServer [CC:34:3D:E3:CE:30] Client 6A7DCF68-57D2-450D-A854-8155C7A9B0D2 verification complete +3ms
  EventedHTTPServer [::ffff:192.168.1.6] HTTP Response is finished +1ms
  EventedHTTPServer [::ffff:192.168.1.5] HTTP request: /pair-verify +1ms
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: POST /pair-verify +1ms
  HAPServer [CC:34:3D:E3:CE:30] Pair verify step 2/2 +0ms
  HAPServer [CC:34:3D:E3:CE:30] Client 40756D61-6DFE-4294-86BD-BD5701C76432 verification complete +3ms
  EventedHTTPServer [::ffff:192.168.1.5] HTTP Response is finished +1ms
  EventedHTTPServer [::ffff:192.168.1.15] HTTP request: /pair-verify +1ms
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: POST /pair-verify +0ms
  HAPServer [CC:34:3D:E3:CE:30] Pair verify step 2/2 +1ms
  HAPServer [CC:34:3D:E3:CE:30] Client 6A7DCF68-57D2-450D-A854-8155C7A9B0D2 verification complete +3ms
  EventedHTTPServer [::ffff:192.168.1.15] HTTP Response is finished +1ms
  EventedHTTPServer [::ffff:192.168.1.14] New connection from client +1ms
  EventedHTTPServer [::ffff:192.168.1.14] HTTP server listening on port 32833 +0ms
  EventedHTTPServer [::ffff:192.168.1.19] New connection from client +5ms
  EventedHTTPServer [::ffff:192.168.1.19] HTTP server listening on port 40021 +0ms
  EventedHTTPServer [::ffff:192.168.1.6] HTTP request: /accessories +1ms
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: GET /accessories +0ms
  EventedHTTPServer [::ffff:192.168.1.6] HTTP Response is finished +5ms
  EventedHTTPServer [::ffff:192.168.1.5] HTTP request: /accessories +0ms
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: GET /accessories +0ms
  EventedHTTPServer [::ffff:192.168.1.5] HTTP Response is finished +4ms
  EventedHTTPServer [::ffff:192.168.1.15] HTTP request: /accessories +23ms
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: GET /accessories +1ms
  EventedHTTPServer [::ffff:192.168.1.15] HTTP Response is finished +4ms
  EventedHTTPServer [::ffff:192.168.1.14] HTTP request: /pair-verify +1ms
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: POST /pair-verify +0ms
  HAPServer [CC:34:3D:E3:CE:30] Pair verify step 1/2 +1ms
  EventedHTTPServer [::ffff:192.168.1.14] HTTP Response is finished +10ms
  EventedHTTPServer [::ffff:192.168.1.19] HTTP request: /pair-verify +10ms
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: POST /pair-verify +1ms
  HAPServer [CC:34:3D:E3:CE:30] Pair verify step 1/2 +0ms
  EventedHTTPServer [::ffff:192.168.1.19] HTTP Response is finished +10ms
  EventedHTTPServer [::ffff:192.168.1.14] HTTP request: /pair-verify +9ms
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: POST /pair-verify +1ms
  HAPServer [CC:34:3D:E3:CE:30] Pair verify step 2/2 +0ms
  HAPServer [CC:34:3D:E3:CE:30] Client 40756D61-6DFE-4294-86BD-BD5701C76432 verification complete +3ms
  EventedHTTPServer [::ffff:192.168.1.14] HTTP Response is finished +1ms
  EventedHTTPServer [::ffff:192.168.1.14] HTTP request: /accessories +6ms
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: GET /accessories +0ms
  EventedHTTPServer [::ffff:192.168.1.14] HTTP Response is finished +4ms
  EventedHTTPServer [::ffff:192.168.1.19] HTTP request: /pair-verify +11ms
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: POST /pair-verify +0ms
  HAPServer [CC:34:3D:E3:CE:30] Pair verify step 2/2 +1ms
  HAPServer [CC:34:3D:E3:CE:30] Client 40756D61-6DFE-4294-86BD-BD5701C76432 verification complete +3ms
  EventedHTTPServer [::ffff:192.168.1.19] HTTP Response is finished +1ms
  EventedHTTPServer [::ffff:192.168.1.19] HTTP request: /accessories +8ms
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: GET /accessories +1ms
  EventedHTTPServer [::ffff:192.168.1.19] HTTP Response is finished +4ms
  EventedHTTPServer [::ffff:192.168.1.5] HTTP request: /characteristics +52ms
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: PUT /characteristics +0ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":4,"iid":10,"ev":true}] +3ms
  Accessory [Homebridge] Registering Characteristic "On" for events +2ms
  EventedHTTPServer [::ffff:192.168.1.5] HTTP Response is finished +1ms
  EventedHTTPServer [::ffff:192.168.1.5] HTTP request: /characteristics +24ms
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: PUT /characteristics +1ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":2,"iid":26,"ev":true},{"aid":2,"iid":23,"ev":true},{"aid":2,"iid":10,"ev":true},{"aid":2,"iid":17,"ev":true},{"aid":2,"iid":29,"ev":true},{"aid":2,"iid":35,"ev":true},{"aid":2,"iid":13,"ev":true},{"aid":2,"iid":14,"ev":true},{"aid":2,"iid":20,"ev":true},{"aid":2,"iid":32,"ev":true},{"aid":2,"iid":38,"ev":true}] +1ms
  Accessory [Homebridge] Registering Characteristic "On" for events +0ms
  Accessory [Homebridge] Registering Characteristic "On" for events +0ms
  Accessory [Homebridge] Registering Characteristic "On" for events +1ms
  Accessory [Homebridge] Registering Characteristic "On" for events +0ms
  Accessory [Homebridge] Registering Characteristic "On" for events +0ms
  Accessory [Homebridge] Registering Characteristic "On" for events +1ms
  Accessory [Homebridge] Registering Characteristic "On" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Brightness" for events +0ms
  Accessory [Homebridge] Registering Characteristic "On" for events +1ms
  Accessory [Homebridge] Registering Characteristic "On" for events +0ms
  Accessory [Homebridge] Registering Characteristic "On" for events +0ms
  EventedHTTPServer [::ffff:192.168.1.5] HTTP Response is finished +1ms
  EventedHTTPServer [::ffff:192.168.1.19] HTTP request: /characteristics +199ms
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: PUT /characteristics +0ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":4,"iid":10,"ev":true}] +1ms
  Accessory [Homebridge] Registering Characteristic "On" for events +1ms
  EventedHTTPServer [::ffff:192.168.1.19] HTTP Response is finished +0ms
  EventedHTTPServer [::ffff:192.168.1.19] HTTP request: /characteristics +227ms
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: PUT /characteristics +0ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":2,"iid":26,"ev":true},{"aid":2,"iid":23,"ev":true},{"aid":2,"iid":10,"ev":true},{"aid":2,"iid":17,"ev":true},{"aid":2,"iid":29,"ev":true},{"aid":2,"iid":35,"ev":true},{"aid":2,"iid":13,"ev":true},{"aid":2,"iid":14,"ev":true},{"aid":2,"iid":20,"ev":true},{"aid":2,"iid":32,"ev":true},{"aid":2,"iid":38,"ev":true}] +1ms
  Accessory [Homebridge] Registering Characteristic "On" for events +0ms
  Accessory [Homebridge] Registering Characteristic "On" for events +1ms
  Accessory [Homebridge] Registering Characteristic "On" for events +0ms
  Accessory [Homebridge] Registering Characteristic "On" for events +0ms
  Accessory [Homebridge] Registering Characteristic "On" for events +1ms
  Accessory [Homebridge] Registering Characteristic "On" for events +0ms
  Accessory [Homebridge] Registering Characteristic "On" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Brightness" for events +0ms
  Accessory [Homebridge] Registering Characteristic "On" for events +1ms
  Accessory [Homebridge] Registering Characteristic "On" for events +0ms
  Accessory [Homebridge] Registering Characteristic "On" for events +0ms
  EventedHTTPServer [::ffff:192.168.1.19] HTTP Response is finished +1ms
[2019-1-1 19:36:47] [My webOS tv] webOS - Error: connect EHOSTUNREACH 192.168.1.24:3000
  EventedHTTPServer [::ffff:192.168.1.5] HTTP request: /characteristics?id=2.23,2.10,2.26,2.29,2.13,2.14,2.32,2.35,2.17,2.38,2.20,4.10 +11s
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: GET /characteristics?id=2.23,2.10,2.26,2.29,2.13,2.14,2.32,2.35,2.17,2.38,2.20,4.10 +0ms
  Accessory [Homebridge] Getting value for Characteristic "On" +8ms
  Accessory [Homebridge] Got Characteristic "On" value: false +4ms
  Accessory [Homebridge] Getting value for Characteristic "On" +1ms
  Accessory [Homebridge] Getting value for Characteristic "On" +9ms
  Accessory [Homebridge] Got Characteristic "On" value: false +1ms
  Accessory [Homebridge] Getting value for Characteristic "On" +1ms
  Accessory [Homebridge] Got Characteristic "On" value: false +1ms
  Accessory [Homebridge] Getting value for Characteristic "On" +0ms
  Accessory [Homebridge] Got Characteristic "On" value: false +1ms
  Accessory [Homebridge] Getting value for Characteristic "Brightness" +1ms
  Accessory [Homebridge] Got Characteristic "Brightness" value: 0 +9ms
  Accessory [Homebridge] Getting value for Characteristic "On" +1ms
  Accessory [Homebridge] Got Characteristic "On" value: false +1ms
  Accessory [Homebridge] Getting value for Characteristic "On" +1ms
  Accessory [Homebridge] Got Characteristic "On" value: false +1ms
  Accessory [Homebridge] Getting value for Characteristic "On" +0ms
  Accessory [Homebridge] Got Characteristic "On" value: false +1ms
  Accessory [Homebridge] Getting value for Characteristic "On" +1ms
  Accessory [Homebridge] Got Characteristic "On" value: false +0ms
  Accessory [Homebridge] Getting value for Characteristic "On" +1ms
  Accessory [Homebridge] Got Characteristic "On" value: false +0ms
  Accessory [Homebridge] Getting value for Characteristic "On" +1ms
  Accessory [Homebridge] Got Characteristic "On" value: false +10ms
  Accessory [Homebridge] Got Characteristic "On" value: false +3s
  EventedHTTPServer [::ffff:192.168.1.5] HTTP Response is finished +4ms
  EventedHTTPServer [::ffff:192.168.1.5] HTTP request: /characteristics +7s
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: PUT /characteristics +1ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":4,"iid":10,"ev":true}] +2ms
  Accessory [Homebridge] Registering Characteristic "On" for events +1ms
  EventedHTTPServer [::ffff:192.168.1.5] HTTP Response is finished +1ms
  EventedHTTPServer [::ffff:192.168.1.5] HTTP request: /characteristics +29ms
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: PUT /characteristics +1ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":2,"iid":26,"ev":true},{"aid":2,"iid":23,"ev":true},{"aid":2,"iid":10,"ev":true},{"aid":2,"iid":17,"ev":true},{"aid":2,"iid":29,"ev":true},{"aid":2,"iid":35,"ev":true},{"aid":2,"iid":13,"ev":true},{"aid":2,"iid":14,"ev":true},{"aid":2,"iid":20,"ev":true},{"aid":2,"iid":32,"ev":true},{"aid":2,"iid":38,"ev":true}] +2ms
  Accessory [Homebridge] Registering Characteristic "On" for events +1ms
  Accessory [Homebridge] Registering Characteristic "On" for events +0ms
  Accessory [Homebridge] Registering Characteristic "On" for events +1ms
  Accessory [Homebridge] Registering Characteristic "On" for events +0ms
  Accessory [Homebridge] Registering Characteristic "On" for events +1ms
  Accessory [Homebridge] Registering Characteristic "On" for events +1ms
  Accessory [Homebridge] Registering Characteristic "On" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Brightness" for events +1ms
  Accessory [Homebridge] Registering Characteristic "On" for events +0ms
  Accessory [Homebridge] Registering Characteristic "On" for events +1ms
  Accessory [Homebridge] Registering Characteristic "On" for events +0ms
  EventedHTTPServer [::ffff:192.168.1.5] HTTP Response is finished +3ms
  EventedHTTPServer [::ffff:192.168.1.14] HTTP request: /characteristics +5s
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: PUT /characteristics +0ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":4,"iid":10,"value":1}] +2ms
  Accessory [Homebridge] Setting Characteristic "On" to value 1 +0ms
[2019-1-1 19:37:12] [Gaming PC] NetworkDevice awake cycle started for "Gaming PC" (192.168.1.41)
[2019-1-1 19:37:12] [Gaming PC] Stopping pinger
[2019-1-1 19:37:12] [Gaming PC] Starting pinger again in 45000 milli seconds
[2019-1-1 19:37:12] [Gaming PC] Attempting to wake up "Gaming PC" (192.168.1.41)
[2019-1-1 19:37:12] [Gaming PC] NetworkDevice "Gaming PC" (192.168.1.41) went from status "Offline" to "Waking Up"
  EventedHTTPServer [::ffff:192.168.1.5] Sending HTTP event '4.10' with data: {"characteristics":[{"aid":4,"iid":10,"value":true}]} +13ms
  EventedHTTPServer [::ffff:192.168.1.19] Sending HTTP event '4.10' with data: {"characteristics":[{"aid":4,"iid":10,"value":true}]} +4ms
  EventedHTTPServer [::ffff:192.168.1.14] HTTP Response is finished +12ms
  EventedHTTPServer [::ffff:192.168.1.14] HTTP request: /characteristics +33s
  HAPServer [CC:34:3D:E3:CE:30] HAP Request: PUT /characteristics +1ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":4,"iid":10,"value":0}] +2ms
  Accessory [Homebridge] Setting Characteristic "On" to value 0 +1ms
  EventedHTTPServer [::ffff:192.168.1.5] Sending HTTP event '4.10' with data: {"characteristics":[{"aid":4,"iid":10,"value":false}]} +2ms
  EventedHTTPServer [::ffff:192.168.1.19] Sending HTTP event '4.10' with data: {"characteristics":[{"aid":4,"iid":10,"value":false}]} +3ms
  EventedHTTPServer [::ffff:192.168.1.14] HTTP Response is finished +2ms
[2019-1-1 19:37:57] [Gaming PC] Stopping pinger
[2019-1-1 19:37:57] [Gaming PC] Starting pinger at an interval of 2000 milli seconds
[2019-1-1 19:37:58] [Gaming PC] Pinger can't see device; setting to Offline.
[2019-1-1 19:37:58] [Gaming PC] NetworkDevice "Gaming PC" (192.168.1.41) went from status "Waking Up" to "Offline"

Notes

From what I read I thought that with this configuration I would be able to turn on my computer as well as see if it is on or off. I dont think I will be able to turn off my computer because I did not include my username and password in the shutdown command.

I am also not sure if the reason this is not working is because of what was mentioned in the instructions about how I "may or may not need to run net rpc with sudo." I didnt know what I am supposed to do with this command since when I type it into the raspberry pi it brings a bunch of options.

Any help would be greatly appreciated. thanks!

AlexGustafsson commented 5 years ago

Well, if it works it works, but I haven’t tried your exact format of the MAC address. Usually I go with AA:BB:CC... However, I use a package to handle WoL which requires the MAC address so I never control the format in the plugin itself.

Is everything working fine now?

mrjcohen commented 5 years ago

It’s really weird, it worked one time and hasn’t worked ever since. I tried resetting everything and even restarted from scratch with a fresh install on my raspberry pi and re-installing and configuring everything but had no luck. The reason I wrote the mac address without any ‘:’ is because of a comment someone else made.

I’ll have to play around with it more today.

AlexGustafsson commented 5 years ago

@drwoodcomb Did you make any progress?

mrjcohen commented 5 years ago

Hi,

Sorry for the late reply. It sort of works.. If I put my computer to sleep manually in windows and then us WOL to wake it up it will work. Then if I shutdown my computer manually in windows and then use WOL to turn on the computer it will work.

It doesn't work unless my computer has been put to sleep one time prior to trying to use WOL to wake it back up or turn it on.

So if my computer has been shutdown twice in a row then WOL doesn't work.

I hope that explanation makes sense. Its a bit confusing to write it out.

I think this is some weird problem with my computer and most likely not with your plugin. Maybe I need to contact my motherboard manufacturer (ASUS) and see if they screwed something up with their BIOS. Thanks for asking and I really appreciate the work you've done creating this plugin.

On Wed, Jan 16, 2019 at 3:43 PM Alex Gustafsson notifications@github.com wrote:

@drwoodcomb https://github.com/drwoodcomb Did you make any progress?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/AlexGustafsson/homebridge-wol/issues/54#issuecomment-454933307, or mute the thread https://github.com/notifications/unsubscribe-auth/AsKP1qEtGLmYbYclisJSWO1Yul6cuiW0ks5vD473gaJpZM4ZmF2v .

elMuddin commented 5 years ago

@drwoodcomb You have to disable the Windows 10 Fast-Boot option in order to get it to work with your onboard LAN device. Yeah, took me a good few days to figure that out.

mrjcohen commented 5 years ago

Wow, thanks elMuddin. I would have never figured that out. It works now! I can finally "impress" my friends with the nerdiest way in the world to turn on my computer.

AlexGustafsson commented 5 years ago

@elMuddin Thanks for resolving the issue! I will add a note on that in the readme to help new users.