I use the same macros on several systems. I have a sleep macro. Yet, on my iMac, system wakes up in the middle of the night for an unknown reason. Any ideas why? Here's initial portion of the log which goes on for hours:
2021-01-14 20:19:53 Execute macro “Sleep” from trigger The Hot Key ⌃⇧S is pressed
2021-01-15 00:29:20 Execute macro “Wake” from trigger At System Wake
2021-01-15 02:30:33 Execute macro “Wake” from trigger At System Wake
2021-01-15 02:30:33 GetProcessForPID(43336) failed with -600 for <KBMRunningApplication “System Preferences” <0x6000013fb2a0> pid=43336 bid=com.apple.systempreferences abhT>, using cached version
2021-01-15 02:30:33 SetFrontProcessWithOptions(0) failed with -600 for <KBMRunningApplication “System Preferences” <0x6000013fb2a0> pid=43336 bid=com.apple.systempreferences abhT>
2021-01-15 02:30:33 Switch failed for System Preferences <KBMRunningApplication “System Preferences” <0x6000013fb2a0> pid=43336 bid=com.apple.systempreferences abhT>
2021-01-15 02:30:33 GetProcessForPID(43336) failed with -600 for <KBMRunningApplication “System Preferences” <0x6000013fb2a0> pid=43336 bid=com.apple.systempreferences abhT>, using cached version
2021-01-15 02:30:33 SetFrontProcessWithOptions(0) failed with -600 for <KBMRunningApplication “System Preferences” <0x6000013fb2a0> pid=43336 bid=com.apple.systempreferences abhT>
2021-01-15 02:30:33 Switch failed for System Preferences <KBMRunningApplication “System Preferences” <0x6000013fb2a0> pid=43336 bid=com.apple.systempreferences abhT>
2021-01-15 02:30:40 Action timeout exceeded.. Macro “Wake” cancelled (while executing Activate System Preferences).