AlexGustafsson / homebridge-wol

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

Bug not allowing users to use the shutdown command completely #35

Closed AlexGustafsson closed 6 years ago

AlexGustafsson commented 6 years ago

Backstory

Users have been having issues where a device would not enter the shutdown state.

Notes

This issue has been created to follow up on the current issue and document the cause and solution.

Testing @cr3ative's fix

Run the following commands on the computer running homebridge:

# Remove homebridge-wol
npm uninstall -g homebridge-wol
# Clone the fix
git clone https://github.com/cr3ative/homebridge-wol.git
# Enter the directory, install dependencies and "install" the plugin
cd homebridge-wol
npm install
npm link

To uninstall, run the following commands on the same computer:

# "Uninstall" the plugin
npm unlink homebridge-wol
# Remove the directory
rm -r homebridge-wol
AlexGustafsson commented 6 years ago

Hi, @cr3ative, I’ve seen your fix in #33. Would you be kind to provide the steps to reproduce the issue as well as any other notes you may have on the issue? The same goes for you, @kloshar4o.

cr3ative commented 6 years ago

Of course!

Steps to reproduce the problem on current master:

Due to this, further commands to attempt to wake the device will be ignored, because "Shutting down" is an intermediate state which is ignored in the command processor.

pax0707 commented 6 years ago

I ran into this testing my issue. If you shut down your PC "normally" it goes from online to offline. If you shutdown it via plugin it stays in shutting down.

AlexGustafsson commented 6 years ago

Fixed in 3.2.3 courtesy of @cr3ative.