iMac can sleep but not wake up
Hi,
Thanks for the great work, I managed to use the plugin to start/stop my windows 10 based HTPC w/o issue. Now I'm trying to set it up for my iMac and experienced some problems. Below is my configuration based on the example:
`{
		"accessory": "NetworkDevice",
		"name": "Office iMac",
		"mac": "aa:bb:cc:dd:ee:ff",
		"ip": "192.168.1.xx",
		"pingInterval": 3,
		"pingsToChange": 2,
		"wakeCommand": "ssh user@192.168.1.xx caffeinate -u -t 300",
		"wakeGraceTime": 10,
		"shutdownCommand": "ssh user@192.168.1.xx pmset sleepnow",
		"shutdownGraceTime": 20
}`
In the log I can see it tried to wake up iMac by first sending WoL and then SSH command:
`
{"log":"\u001b[37m[2/14/2020, 9:34:02 PM]\u001b[39m \u001b[36m[Office iMac]\u001b[39m Initializing NetworkDevice accessory...\r\n","stream":"stdout","time":"2020-02-14T21:34:02.022782399Z"}
{"log":"\u001b[37m[2/14/2020, 9:34:02 PM]\u001b[39m \u001b[36m[Office iMac]\u001b[39m NetworkDevice \"Office iMac\" (192.168.1.12) went from status \"undefined\" to \"undefined\"\r\n","stream":"stdout","time":"2020-02-14T21:34:02.744697422Z"}
{"log":"\u001b[37m[2/14/2020, 9:35:32 PM]\u001b[39m \u001b[36m[Office iMac]\u001b[39m NetworkDevice shutdown cycle started for \"Office iMac\" (192.168.1.12)\r\n","stream":"stdout","time":"2020-02-14T21:35:32.392145809Z"}
{"log":"\u001b[37m[2/14/2020, 9:35:32 PM]\u001b[39m \u001b[36m[Office iMac]\u001b[39m NetworkDevice \"Office iMac\" (192.168.1.12) went from status \"undefined\" to \"undefined\"\r\n","stream":"stdout","time":"2020-02-14T21:35:32.392715773Z"}
{"log":"\u001b[37m[2/14/2020, 9:35:32 PM]\u001b[39m \u001b[36m[Office iMac]\u001b[39m Attempting to shut down \"Office iMac\" (192.168.1.12) using \"ssh\"\r\n","stream":"stdout","time":"2020-02-14T21:35:32.394594944Z"}
{"log":"\u001b[37m[2/14/2020, 9:35:32 PM]\u001b[39m \u001b[36m[Office iMac]\u001b[39m Waiting for shutdown grace time (10000ms) for \"Office iMac\" (192.168.1.12)\r\n","stream":"stdout","time":"2020-02-14T21:35:32.681962036Z"}
{"log":"\u001b[37m[2/14/2020, 9:35:42 PM]\u001b[39m \u001b[36m[Office iMac]\u001b[39m NetworkDevice \"Office iMac\" (192.168.1.12) went from status \"undefined\" to \"undefined\"\r\n","stream":"stdout","time":"2020-02-14T21:35:42.704140797Z"}
{"log":"\u001b[37m[2/14/2020, 9:36:01 PM]\u001b[39m \u001b[36m[Office iMac]\u001b[39m NetworkDevice \"Office iMac\" (192.168.1.12) went from status \"undefined\" to \"undefined\"\r\n","stream":"stdout","time":"2020-02-14T21:36:01.78130769Z"}
{"log":"\u001b[37m[2/14/2020, 9:36:08 PM]\u001b[39m \u001b[36m[Office iMac]\u001b[39m NetworkDevice awake cycle started for \"Office iMac\" (192.168.1.12)\r\n","stream":"stdout","time":"2020-02-14T21:36:08.541202051Z"}
{"log":"\u001b[37m[2/14/2020, 9:36:08 PM]\u001b[39m \u001b[36m[Office iMac]\u001b[39m Attempting to wake up \"Office iMac\" (192.168.1.12)\r\n","stream":"stdout","time":"2020-02-14T21:36:08.542242075Z"}
{"log":"\u001b[37m[2/14/2020, 9:36:08 PM]\u001b[39m \u001b[36m[Office iMac]\u001b[39m NetworkDevice \"Office iMac\" (192.168.1.12) went from status \"undefined\" to \"undefined\"\r\n","stream":"stdout","time":"2020-02-14T21:36:08.543190634Z"}
{"log":"\u001b[37m[2/14/2020, 9:36:08 PM]\u001b[39m \u001b[36m[Office iMac]\u001b[39m Attempting to start \"Office iMac\" (192.168.1.12) by sending a WoL packet\r\n","stream":"stdout","time":"2020-02-14T21:36:08.547335376Z"}
{"log":"\u001b[37m[2/14/2020, 9:36:08 PM]\u001b[39m \u001b[36m[Office iMac]\u001b[39m Waiting for wake grace time (10000ms) for \"Office iMac\" (192.168.1.12)\r\n","stream":"stdout","time":"2020-02-14T21:36:08.751415921Z"}
{"log":"\u001b[37m[2/14/2020, 9:36:18 PM]\u001b[39m \u001b[36m[Office iMac]\u001b[39m Attempting to wake up \"Office iMac\" (192.168.1.12) using \"ssh\"\r\n","stream":"stdout","time":"2020-02-14T21:36:18.752777013Z"}
{"log":"\u001b[37m[2/14/2020, 9:41:26 PM]\u001b[39m \u001b[36m[Office iMac]\u001b[39m NetworkDevice \"Office iMac\" (192.168.1.12) went from status \"undefined\" to \"undefined\"\r\n","stream":"stdout","time":"2020-02-14T21:41:26.290616255Z"}
`
Sorry about the format, it was copied from Docker log file.
One thing (also with my HTPC) I noticed: there seem to be some problem with status,  I keep getting message like "status went from undefined to undefined".
Any suggestion where to look into? Thank you in advance!