by zilexa 0
*VERIFIED June 5th, 2022* Enable WireGuard VPN tunnel when not connected to a specific WiFI SSID, and disable when reconnected to that WiFi. Adds a check for mobile network connection before connecting to tunnel.
Before using, install WireGuard app and add your client config via QR or file, set the desired name for that tunnel. Then in Automate, import this flow and 1) Automate>Settings>Privileges: enable "Control Wireguard tunnels" 2) Edit this flow: change the WiFi name to your home WiFi inside the WiFi SSID block 3) Change the Wireguard tunnel name in the UP and Down blocks.
Note the "ping" block is to verify mobile connection before tunnel goes up. Otherwise in some cases the tunnel goes up too early and you don't have working internet.
Rate and review within the app in the Community section.