Is it possible to make actions undone like Tasker?

Grossmeister_T

New member
Hello Everyone,
Is it possible to make actions automatically undone/switch back without programming this?

For example if I enter a location the Sound is muted. If I leave the place the Sound returns like before and not following a programmed protocoll.

Best Regards.
 
Last edited:

dhj49er

Well-known member
Hello Everyone,
Is it possible to make actions automatically undone without programming this?

For example if I enter a location the Sound is muted. If I leave the place the Sound returns like before and not following a programmed protocoll.

Best Regards.
I don't use tasker, so not sure what are undone actions.

However, from what you say with Tasker you can enter & leave a location have the sound change & change back automatically, without any programmed protocol.

How does it do that?
 

Endercraft

Moderator (& bug finder :D)
I don't use tasker, so not sure what are undone actions.

However, from what you say with Tasker you can enter & leave a location have the sound change & change back automatically, without any programmed protocol.

How does it do that?
I'm going to guess that it takes the "triggers" and "actions" and uses their opposite.
 

sampleuserhere

Active member
The location context (trigger) in Tasker could be linked to two task which runs individually based on whether the phone is inside or outside an area.

Tasker handles the logic internally and user just have to add the enter and exit tasks (group of actions).

I guess OP just doesn't want to put the effort to define the trigger logic themselves in Macrodroid.
 

Grossmeister_T

New member
The point is that in some Cases you have different volume settings.

By having to define it it changes always to the same setting.

With a Tasker-like setting you Do not need to define this because it memories the previous setting (which can be one time for example louder and the other day lower).
Excuse my english please and I hope I could describe what I mean.

BR
 

Grossmeister_T

New member
No, nothing to do with dnd. Sound was just an example.
Maybe like is better explained:

"Is it possible to make actions automatically undone/switch back without programming this"

Thank you
 

hsurB

Well-known member
Answer is short - no.
You have to create actions for both states and use if clauses - trigger fired to perform different set of actions for different triggers.
I guess you could set up macrodroid modes and use them instead if actions are usually the same and you use them often
 

sampleuserhere

Active member
The sound example throwed me off. I guess my first reply hit the nail then.

Anyway, that's not possible.

MD's trigger is one way, however It can be replicated with just a macro, since a single macro can contain multiple triggers.
 

RSF

Well-known member
@sampleuserhere is right; there's no automatic equivalent to Tasker's settings actions (the ones with the double-arrow icon that appears in the right margin). You'll have to replicate it by explicitly defining entry and exit tasks associated with the context (or, in MacroDroid terminology, defining triggers for entry and exit conditions, and saving, setting and re-setting settings values within a macro with those triggers).
Example based on entering and exiting a specific location, and saving/setting/resetting the ringer volume accordingly:
1707157054312.png

Note that MacroDroid saves the value of local variables automatically between executions of a macro, unlike Tasker. That allows the volume_on_entry variable to retain the original ringer volume between entry and exit triggers...
 
Top