The idea is to have a HomeKit-enabled smart plug power on the backup drive at a specific time of the day and power off the smart plug once the Time Machine backup is completed.
This is where I’m at right now:
- every day at 17:00 a HomeKit automation turns on the smart plug to power the external hard drive,
- On mount LaunchControl runs a script that automatically backs up the drive with TimeMachine and ejects it upon completion (I can‘t code and the developer of this app actually helped me out immensely, he was extremely friendly and patient, so I can totally recommend going down this route),
- A curl command at the end of the script triggers the automation server running on a dedicated always-on iOS device (I use an old iPhone 5s on do not disturb mode and guided access) using Pushcut,
- Pushcut triggers a scene that turns off the smart plug.
This works like a charm and I can recommend replicating it, if you are interested and happy with the current iteration.
I do however have a couple of questions I‘d like to ask the community:
Setting up the automation server on an always-on iOS device requires a subscription to Pushcut pro, this is great and definitely does the trick; I’m happy to support this developer, but I was hoping to do this without having to depend on an external service. Any ideas?
Any thoughts/suggestions/improvement ideas regarding this project? Is there something I haven‘t considered?