Control WireGuard with Macros

Dimlos

Well-known member
We have confirmed that it works on Android 10.
If you can't get it to work, you are most likely missing some setting.
Please read the thread carefully and try it by trial and error.
 

OpulentHaven

New member
We have confirmed that it works on Android 10.
If you can't get it to work, you are most likely missing some setting.
Please read the thread carefully and try it by trial and error.
Was not apparent to me that "tunnel_name" was a local variable. I was replacing "tunnel_name" with my tunnel name directly. Now it worked right away. Thanks!
 

mjruotolo

New member
I'm a little confused on how to set up the variable for the macros on the first page. Could anybody help me with that? Thank you.
 

tja42

New member
I'm a little confused on how to set up the variable for the macros on the first page. Could anybody help me with that? Thank you.
Macro Send Intent for WireGuard
"Target":"Broadcast"
"Action":"com.wireguard.android.action.SET_TUNNEL_UP",
"PackageName":"com.wireguard.android",
"ClassName":"com.wireguard.android.model.TunnelManager$IntentReceiver",
"Extra 1 Name" :"tunnel"
"Extra 1 Value": "YOUR_TUNNEL_NAME"
 

mjruotolo

New member
I'm on a pixel 8 running android 14. I can't see to get this to work. I have no issue with Tasker controlling it but can't get macrodroid to do it. See configuration screen shots. Thanks
 

Attachments

  • Screenshot_20240324-204258.png
    Screenshot_20240324-204258.png
    39.6 KB · Views: 6
  • Screenshot_20240324-204254.png
    Screenshot_20240324-204254.png
    119.3 KB · Views: 5
  • Screenshot_20240324-204234.png
    Screenshot_20240324-204234.png
    126.3 KB · Views: 6
  • Screenshot_20240324-204147.png
    Screenshot_20240324-204147.png
    130.5 KB · Views: 6
Top