Replies: 6 comments 16 replies
-
The error states that the key used to authenticate you is incorrect. You will have to set up SSH key authentication. As such, this issue is not related to the functions of this plugin, so I’ve moved this issue to a discussion thread instead. |
Beta Was this translation helpful? Give feedback.
-
maybe this issue is because I use wrong commands? currently: "name": "Mac", |
Beta Was this translation helpful? Give feedback.
-
both the commands are not working for me. strange thing is that when Mac is turned ON, the switch is OFF. When Mac is in standby, switch is ON. any advice? Thanks! |
Beta Was this translation helpful? Give feedback.
-
EDIT: implemented returnEarly to true and now wake is working. |
Beta Was this translation helpful? Give feedback.
-
Hi Alex, because both: wake commands are perfectly working from terminal, I checked the ping and discovered it is not working: stefano@Mac ~ % pmset -g powerstate IODisplayWrangler
Internal failure: Failed to get power state information any suggestions on how to ping correctly the Mac? This is the list that I obtain when I launch pmset -g powerstate. As you can see IODisplayWrangler seems missing:
IOPMrootDomain 4 4 ON Thanks |
Beta Was this translation helpful? Give feedback.
-
For anyone else trying to solve this and can SSH into their remote machine, but get the host key verification failed message: This is likely because it is the homebridge user running the ssh command, not the user account you login to. So you need to setup the homebridge user account folder with the ssh files and its own key. To create the files in the homebridge user account: run: Now setup a new ssh key: enter 'homebridge ' for file name run you should now see these files within /home/homebridge/.ssh/ folder
But you need to change owner, group and permissions: check everything is present with correct owner and permission:
finally copy over the public key to the remote machine: run the following, replacing ISERNAME and IP_ADDRESS with the correct values: Finally restart ssh (not always needed)
Your SSH code should now run from homebridge. (I haven't checked the above that closely for typos!) If it isn't, add -vvv immediately after ssh and set homebridge-wol to debug mode and monitor the output. |
Beta Was this translation helpful? Give feedback.
-
Hello there, I am trying to configure the WOL plugin however I receive this error, I am using hoobs :(
Thanks!
6/5/2021, 18:32:26 [Mac] NetworkDevice awake cycle started for "Mac" (192.168.4.195)
6/5/2021, 18:32:26 [Mac] Attempting to wake up "Mac" (192.168.4.195)
6/5/2021, 18:32:26 [Mac] NetworkDevice "Mac" (192.168.4.195) went from status "Offline" to "Waking Up"
6/5/2021, 18:32:26 [Mac] Attempting to start "Mac" (192.168.4.195) by sending a WoL packet
6/5/2021, 18:32:27 [Mac] Waiting for wake grace time (10000ms) for "Mac" (192.168.4.195)
6/5/2021, 18:32:29 [HOOBS A0AC@On] The write handler for the characteristic 'On' on the accessory 'Mac' was slow to respond!
6/5/2021, 18:32:36 [HOOBS A0AC@On] The write handler for the characteristic 'On' on the accessory 'Mac' didn't respond at all!. Please check that you properly call the callback!
6/5/2021, 18:32:37 [Mac] Attempting to wake up "Mac" (192.168.4.195) using "ssh"
6/5/2021, 18:32:37 [Mac] An error occured while trying to wake "Mac" (192.168.4.195): Error: Command failed: ssh mac.local caffeinate -u -t 300
Host key verification failed.
{
killed: false,
code: 255,
signal: null,
cmd: 'ssh mac.local caffeinate -u -t 300',
stdout: '',
stderr: 'Host key verification failed.\r\n'
Beta Was this translation helpful? Give feedback.
All reactions