⬆ Level up


Configuration examples

Create a rule that runs only manually

There is no trigger that would only run manually per-se. However from the early days the user interface allowed to create a trigger that demands the battery level is higher than 100%. For my own testing purposes I have left this "bug" in there. Such a rule will not be executed automatically.

Use Termux remote controls

Termux offers to be remote controlled. For many things an additional permission is required that you have to grant MANUALLY to Automation. It will not request it.

Please consult their webpage for more info (just remember you're using Automation, not Tasker): https://github.com/termux/termux-app/wiki/RUN_COMMAND-Intent

Auto turn on/off hotspot while FTP server is running




Create a network watchdog

Create a rule that will run a ping command (or anything else the checks something) every x seconds or minutes:



Create a second rule that will evaluate the result of the first rule and act upon it:

Automatically answer phone calls

Create a rule that will use the dialer's notification and click its answer button (adapt the 1212 example number if you wish to filter specific callers):

https://server47.de/automation/images/examples/phone_call_answer

ulogger

Create a start program action:


Remote control wireguard

HINT: FOR THIS TO WORK RELIABLY, IT IS RECOMMENDED TO DEACTIVATE BATTERY OPTIMIZATION FOR BOTH AUTOMATION AND WIREGUARD.

  1. Activate remote control in that app:


  2. Create a start program action in Automation that just launches WG so it's not in the background anymore (no parameters are required for this one):



  3. Add another action that just waits for around 500 milliseconds.
  4. Then create another start program action with these settings:

    • Package: com.wireguard.android
    • ACTION: com.wireguard.android.action.SET_TUNNEL_DOWN or com.wireguard.android.action.SET_TUNNEL_UP




  5. Add 1 parameters as specified, name is "tunnel", value needs to be whatever you called your tunnel:

Remote control OpenVPN VPN client

See the chapter "Controlling from external apps" from the app's FAQ.

Open a webpage

Create a start program action: