Replies: 2 comments 9 replies
-
Your start command and shutdown command looks off. From the README:
The start command is only necessary if you want to start your device with something other than WoL. To use WoL as intended, you can remove The shutdown command is necessary if you wish to shut down the device as there's no functionality like WoL that can be used. The command you've mentioned, Basically your config should look a bit like this: {
"accessory": "NetworkDevice",
"name": "PC",
"ip": "192.168.1.112",
"mac": "xxxx",
"shutdownCommand": "ssh -o StrictHostKeyChecking=no -i /homebridge/id_rsa @*** shutdown /s"
} The intended functionality is to expose a switch in the Home app that, when turned on, turns on your computer and when turned off, turns your computer off. |
Beta Was this translation helpful? Give feedback.
-
Would love to, but I'm not sure how... Tried running npm install homebridge-wol@beta in the homebridge terminal and it said npm WARN saveError ENOENT: no such file or directory, open '/var/lib/homebridge/package.json'
Version number is still 4.3.0. I know I'm lacking some very basic knowledge here, sorry. |
Beta Was this translation helpful? Give feedback.
-
I'm new to using terminal and linux so please forgive any basic misunderstandings!
I've followed the guide on the wiki as closely as possible and I've ended up being able to use the homekit button to switch on my Windows 10 PC, but not switch it off. Is there supposed to be a second button in the home app that triggers the shutdown process or can the PC button function as a true on/off switch?
The exact opposite is happening on the homebridge terminal, I can switch the PC off with the suggested command,
"ssh -o StrictHostKeyChecking=no -i /homebridge/id_rsa @*** shutdown /s"
But replacing "shutdown" with "start" does not switch the PC on. Clearly the functionality is there if I can do both, but what am I missing?
This is my current config:
name": "PC",
"ip": "",
"pingInterval": 2,
"pingsToChange": 5,
"pingTimeout": 1,
"pingCommand": "ping",
"pingCommandTimeout": 0,
"mac": "*",
"startCommand": "start",
"startCommandTimeout": 0,
"wakeGraceTime": 45,
"wakeCommand": "wake",
"wakeCommandTimeout": 0,
"shutdownCommand": "shutdown",
"shutdownGraceTime": 60,
"shutdownCommandTimeout": 0,
"log": true,
"logPinger": true,
"debugLog": true,
"returnEarly": false,
"accessory": "NetworkDevice"
Thanks for building this awesome plugin, any help would be much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions