Auto Run HomeKit Automation when waking from sleep OSX
My new Mac mini M4 pretty well insists that I must use the sleep command instead of powering down.
Apart from the computer, I use quite a few power hungry peripherals when I’m using the computer. With my old iMac setup I had a switch which sensed the presence of USB power and then automatically switched those peripherals on and off whenever the computer was powered up and down. That is no longer possible as the USB ports remain powered during sleep.
On the new setup I’m using a HomeKit smart socket to control the peripheral devices. HomeKit allows me to create a script so that the computer can shut things down in an orderly fashion and then after a pause to let everything become safe, go into sleep mode.
I can’t see a way to trigger a HomeKit automation or Shortcut when it wakes from sleep. At the moment I have to manually run a Shortcut to do that. Is there a way to make this happen automatically?
It seems odd that HomeKit / Shortcut will let me script an operation to Sleep my Mac, but doesn’t appear to offer an option to trigger a script when it wakes from sleep.
Mac mini, macOS 15.1