I have numerous Homekit Automations that I need to disable when I leave home for a few days. It is tedious to find and disable them and then enable them on my return - particular due to the way that the Home app lists automations.
I have been searching for a way to select a batch of automations to disable/enable using Shortcuts, without success. There is a Shortcut to manually disable/enable automations but apparently no way to automate this.
I have also considered using an unused accessory as a trigger for action but, again, there doesn’t seem to be a way to disable/enable automations in this way.
The most common way to do this in home automaton (regardless of platform) is to use a state machine. That is, you set a flag indicating that you’re away from home and each automation checks the state of the flag before taking other actions. For example:
If “vacation” is true
do some things
Otherwise
do other things
You can use a variable to store a state, which gives you a lot of flexibility for having more than one state, or some people use a module (such as a lamp unit) which isn’t connected to anything physically but can be turned on/off to act as a flag for the other automations.
Gordon
Yes - I use this method (an unused power switch) to have accessories turn off after a set time, whenever they are turned on.
The problem is that there doesn’t seem to be a way to change the enable/disable switch of an automation via Shortcuts. I am looking for a way to disable about 6 automations while I am away and re-enable them when I return.
I may have confused the issue by providing too much info. The gist of my suggestion is that your automations should check the status and do nothing if you’re away. Make them do the right thing contextually instead of disabling them.
Yes. I have an automation to turn off a couple of lights when we both leave the house (with our iPhones) and turn them on when at least one of us returns.
However I would not trust this method for controlling air conditioners and a water heater/pump while we are away for several days.
Oh, no, I’m not suggesting that you rely on the automatic “away” functions. I sure don’t.
The State Machine is a technique used by home automators for at least 20 years. You can use it to get the result you want today, without hoping that maybe Apple will take your suggestion. But it will take some implementation work on your part for sure, so there’s that.