-
Notifications
You must be signed in to change notification settings - Fork 30
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
wakeGraceTime wait before executing wakeCommand #59
Comments
You’re absolute correct. I’m a at fault for not documenting the regression better. This is actually one of the main reason that I’ve not yet pushed 3.3. The wake command is intended to execute after the wake grace time and it should be done so in any published version. I’m sorry for any inconvenience this might have caused. I’ll add a note on the current state of the master branch in the README. If you’ve got the time, you’re free to post a PR and I’ll accept it. Make sure that |
No problem, thanks for the quick response! I initially noticed it on the npm version, and it seems to be in the 3.2.4 tagged version, so it made me question if I was misinterpreting things. (https://github.com/AlexGustafsson/homebridge-wol/blob/ver-3.2.4/lib/network-device.js#L156 looks like the I'd be happy to get a PR together for this soon. One question about For example, I was thinking that the Basically, this is the logic I would be interested in:
Of course, this would kind of change the definition of the |
Hi! Sorry for missing your comment / responding so late. You're still welcome to open a PR. Implement it the way you'd like, but try to make it additive so that the previous behavior still works. Perhaps a |
There's now an untested update to the code where the wake command should be called after the wait grace time. |
I've gone ahead and published 3.2.5 which should contain a fix for this issue. |
Closing as this should work now. |
Backstory
Based my interpretation of the README, it looks like the
wakeCommand
should execute afterwakeGraceTime
number of seconds have elapsed.However, it currently looks like the
wakeCommand
is executed immediately after thewol
request.Am I misinterpreting the documentation? (listed below)
Issue
I have a slightly unusual use-case, since I would like to wake a virtual machine running on a host computer that may or may not be already powered on.
I was hoping the
wakeCommand
would be executed after thewakeGraceTime
so that I could turn on the vm through ssh after powering on the host.Environment
Configuration
My configuration looks like this:
Log
When I follow these steps:
DEBUG=* homebridge -D -P ~/homebridge-wol/
<vm-name>
switchI get the following log (relevant section):
Notes
If there is supposed to be a delay before issuing the wakeCommand, the following change worked for me:
The text was updated successfully, but these errors were encountered: