Try UiTask. Plugins from Marco Stornelli are life saver in many cases you can't find some functions in MacroDroid. They are free, without ads, lightweight for phones memory, and working as they should. Only sometimes its harder to setup an action or trigger but it's really customizable. You can now use MacroDroid variables in these plugins.