AlexGustafsson / homebridge-wol

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

Mac mini M1 #177

Closed duckdany closed 3 years ago

duckdany commented 3 years ago

I have changed from iMac 27" Late 2013 to Mac mini M1 (2020). From Homebridge terminal shutdown command works fine but on my iPhone not working. And the ping is not working anymore. I got this error:

[18/10/2021, 23:47:59] [Mac mini] Attempting to poll state of "Mac mini" (192.168.28.12) using "ssh" [18/10/2021, 23:48:00] [Mac mini] Result of executing ping command for "Mac mini" (192.168.28.12): offline [18/10/2021, 23:48:00] [Mac mini] Error: Command failed: ssh dani@Daniel-Mac-minije.local 'if [[ $(pmset -g powerstate IODisplayWrangler | tail -1 | cut -c29) -lt 4 ]]; then; exit 1; else; echo 1; fi;'

at ChildProcess.exithandler (child_process.js:383:12)
at ChildProcess.emit (events.js:400:28)
at maybeClose (internal/child_process.js:1058:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5) {

killed: false, code: 1, signal: null, cmd: "ssh dani@Daniel-Mac-minije.local 'if [[ $(pmset -g powerstate IODisplayWrangler | tail -1 | cut -c29) -lt 4 ]]; then; exit 1; else; echo 1; fi;'", stdout: '', stderr: '' } [18/10/2021, 23:48:00] [Mac mini] Got state change from pinger for "Mac mini" (192.168.28.12): offline

I am writing this comment from my Mac mini, so it's online. I couldn't try out the wake up or shutdown because HomeKit shows my Mac mini offline.

Is it because of M1 chip and ARM?