Trigger Tasker and Automate from a counter
Counter speaks Android intents in both directions. Make a counter fire a broadcast intent that Tasker, Automate, or MacroDroid can catch, or let those apps control your counters. No code required.
Two ways to connect
- Direction A: a counter triggers Tasker (the Tasker Intent action).
- Direction B: Tasker controls a counter (the External Intent Receiver).
Direction A: a counter triggers Tasker
- In Counter, open the counter, go to Events & Actions, and add a rule. Pick an event (Reached Value, Counter Updated, or a time-based event like Every day at a time).
- Choose the Tasker Intent action. Counter sends a broadcast intent carrying the counter data (id, value, title) plus any custom extras you add.
- In Tasker, create a Profile > Event > System > Intent Received and set the action filter to match the broadcast.
- Attach a Task that does what you want: toggle Bluetooth, send an SMS, launch an app, or call a web service.
Direction B: Tasker controls a counter
- In Counter, open Settings > External Integration and enable it. Optionally set an authentication token.
- In Tasker, use the Send Intent action with the action and extras below.
Action: com.zipangulu.counter.ACTION_EXTERNAL_COMMAND
Extras:
counter_id (long) - required
command (string) - required: increment, decrement, reset, set_value
value (int) - optional
auth_token (string) - if authentication is enabled
For example, send the intent with counter_id: 1 and command: increment to bump counter 1 by its step.
Works with Automate and MacroDroid too
The same broadcast intents and commands work with Automate and MacroDroid. Use their "intent received" and "send intent" blocks in place of Tasker's.
Note: Direction B needs the External Intent Receiver enabled. If you set an auth token, include it in every intent you send.
Things you can build
- When a "work sessions" counter hits 8, have Tasker turn on Do Not Disturb.
- Increment a counter from a Tasker location profile to count gym visits automatically.
- Chain Counter to Tasker to a smart home API call for a fully custom automation.
For the full intent format and command reference, see the FAQ.
Start automating your counters
Free download. No account required. Unlimited counters.
Get it on Google Play