AHomebridgeswitchaccessorytosleepandwakethehostcomputer.
InstallationInstallHomebridgeusingnpminstall-ghomebridgeInstallthispluginusingnpminstall-ghomebridge-computer-sleepUpdateyourconfigurationfile.SeeConfigurationbelow.ConfigurationYourHomebridgeconfigfile(~/.homebridge/config.json)mustincludeaComputerSleepaccessorywithanameofyourchoosingforthisplugintofunction.
Example:
"accessories":[{"accessory":"ComputerSleep","name":"OfficePC"}]UsageCreateanaccessoryasshownaboveinConfigurationSettingnametothenameofyourdeviceisrecommended-'GamingPC','MacBookPro',etc.TheaccessorywillshowasOninHomeKitwhenyourdeviceisawake(default),andOffwhenitistoggledofftosleep.
评论