A Homebridge switch accessory to sleep and wake the host computer.
npm install -g homebridge
npm install -g homebridge-computer-sleep
Your Homebridge config file (~/.homebridge/config.json
) must include a ComputerSleep
accessory with a name of your choosing for this plugin to function.
Example:
"accessories": [
{
"accessory": "ComputerSleep",
"name": "Office PC"
}
]
name
to the name of your device is recommended - 'Gaming PC', 'MacBook Pro', etc.