Automate Wireguard VPN connection

I’m trying to automate the activation and deactivation of a Wireguard VPN profile. There’s an Automate app that should allow this but I can’t get it to work with more than a few (recent) community Flows, even though I have the permissions set:
Automate: Control Wireguard tunnels: enabled
Wireguard: Allow remote control apps: enabled
OS: Disable battery optimization (for Automate app): enabled.
I’ve set the correct wifi SSID and Wireguard VPN profile as per the instructions.

The Automate log shows it detects that it’s on wifi or mobile, but doesn’t switch the Wireguard profile on or off.

I figured out the problem: in Wireguard, I also had to enable the shortcut tile “Add tile to quick settings panel”. After doing this, it works correctly !

So I thought it was fixed, but I have to re-enable both Wireguard’s VPN profile and Automate’s flow. Still no idea why this requires daily supervision.

I made it possible to use the VPN tunnel on my internal wifi so I can leave it on all the time. So this point has become moot for me.

2 Likes