Hello, I’ve played with automate a few in the past but never got to really complex stuff, I’m now facing the following issue:
I’ve got the Google One VPN connected all day long.
My car head unit can connect to Android Auto wirelessly, but as long as VPN is on it only accepts cable.
I would like to automatically turn off the VPN when I connect to the car’s BT and turn it back on when that connection / BT is off.
The thing is, I can’t seem to find a way to do such thing, can anyone who knows how give me some hints or just share (that would be extremely helpful and appreciated) the automation itself?
Thanks in advance
Asking for a friend. And that friend is me. Add an interact touch block to a flow and see if it turns off your VPN. Or on. Once you’ve got the block you need working, try adding a block that checks for your car Bluetooth or your home or work WiFi or something, Make sure you connect your yes and no paths and if you use is instead of when you make sure to loop and put a delay in the loop.
Test a bit too. Make a flow testing whether your Bluetooth or something is off or on. If it’s on you create a toast or log a messsage. In the other case you create a different toast or log message.
Don’t test for whether your BT or WiFi is on in your actual flow though. You’re testing for an actual network, device or location or something like that.
Make sure you connect your yes and no paths and if you use
is
instead of
when
you make sure to loop and put a delay in the loo
Thanks for the input, I already had played with BT blocks that execute when I get in the car and it connects to BT, my main issue is managing the VPN, will try your suggestions, thanks for the time!