I'm not sure if it wasn't actually asleep. I just click the Apple menu > Sleep. Leave it. Go outside. Trigger my wake macro remotely, and it wakes up so I can access it via AnyDesk. Like @peternlewis mentioned above, there might be different levels of sleep.
I'll check on "Wake for network access". I'm not good at network though and I thought its only for LAN.
Didn't thought of putting a SwitchBot on the Keyboard That's smart.
I can leave the mac mini running without making it sleep. Stupid question, does the lock screen due to inactivity make my device sleep?
But there's no need to guess about these things -- in Terminal, pmset -g log will show you sleep/wake event data, with "assertions" listed towards the end. And you can dig through the unified log with the Console app.
If you're using macOS Tahoe, it might be an option to call your macro via automations in the Shortcuts app. I have a shortcut in Apple Shortcuts that also works when the computer is asleep.
I have not yet tried whether this also works by calling a km macro via the Apple shortcuts.
I've done some more experiments. It only works if you call a shortcut that uses only shortcut actions. It does NOT work if you call a KM macro from shortcuts. Therefore, KM doesn't "wake up" when calling a macro from shortcuts if the computer is "sleeping."