AlexGustafsson / homebridge-wol

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

can a sleeping mac wake itself up? #52

Closed nickcom closed 5 years ago

nickcom commented 6 years ago

I've got homebridge running on a mac mini. I can successfully get that mac to sleep (not shutdown) with the shutdown command 'sudo pmset sleepnow'.

Once it is asleep, the caffeinate command doesn't seem to work to wake it up. Since the homebridge is running on that computer, and that computer is now asleep, I suppose it's not entirely surprising it doesn't work, but I was wondering if there is any work around?

AlexGustafsson commented 6 years ago

I’m afraid I’m not aware of any workaround. As soon as the Mac goes to sleep, homebridge will most likely stop being reachable, which in turn makes it impossible for homebridge-wol to handle requests or wake the system.

Does the accessories still list as accessible in the Home app on your phone?

You could use a Raspberry Pi (possibly even their Zero model) as a server instead.