This flow connects to your chosen WireGuard tunnel when you are away from your home network. The benifit of using my flow is the fact that having location on all the time is not needed, if you need to have location on it works around it and leaves it as you had it. On top of this it turns off WireGuard when there is no internet and turns off your data when on WiFi.
To use this simply change the 5 send broadcast blocks to your tunnel name, and change the 2 WiFi connected blocks to your home network.
This flow may not work perfectly on some devices due to the mobile data state block, this is not a big deal since all this does is turn off WireGuard when you have no internet.