I current am new to shortcuts. I have created two automations. When connected to my home network to disconnect ExpressVPN. Also when connected to work Wi-Fi to connect to ExpressVPN.
What I am trying to now do is create an automation that whenever I am not connected to my home network it automatically connects to ExpressVPN.
Any help would really be appreciated.
Try a location based automation.
- create a focus, and let it trigger automatically by a location (make the radius as small as possible)
- create an automation with that focus as it‘s trigger
- use a script in your automation like this: Shortcuts once the focus is triggered by the location it will try to execute the shortcut 24 times every 10 seconds, if you are connected to the desired WiFi. So you have 4 minutes to connect to the WiFi network. If you are not connected to the WiFi during this time, the automation will fail.
I guess you could increase the amount of loops if 4 minutes isn’t enough, but at a certain length Shortcut will time out.
You can make one automation for your focus activating, and another much simpler automation for leaving the location, because you don‘t have to be sure you‘re disconnected.
Maybe my shortcut is a bit overkill for your use case, because it makes really really sure that you‘re connected to your WiFi.
I made it like this so Shortcuts won‘t ask if it‘s okay to be activated each time, which is not automatic at all.
Isn’t what you are asking, contradicting the first automation you mentioned?
Does the ExpressVPN app have an on-demand setting within the app to configure what WiFi networks it should turn on for?
Did you ever make this work?
I have this working with Automations and Actions but it doesn’t execute the Action automatically, it just throws the alert notification on my iPhone and waits for me to select the “Run” option.
Maybe I worded it wrong. Sorry. What I want is when I’m home for it to disconnect as my router is a VPN router. Whenever I am outside of the home for it to have the app connect to the vpn. Does that make more sense?
I have looked and don’t see that option but have reached out to support asking just that.
I see now. I would have it check if you are home and if so, disconnect VPN, otherwise, connect VPN
In settings, go to VPN, and you should see express VPN there, select the info option, then there should be a toggle to select for on demand