I never used WiFi Tether Router or changed wifi scanning setting, either. So whatever I say might not be much of help.
In general, the ability of Llama to interact with other apps is very limited, unless the apps you want to use with Llama have useful shortcut or intent actions.
Especially for event conditions, Llama can only recognize whether an app is in foreground or when it shows a notification.
I assume your WiFi Tether Router does not show notification when you disable WiFi router. Otherwise you would be using it to enable wifi scanning.
My default way of dealing with Llama's inability to monitor other apps' actions is not dealing with it. So, instead of having an event that looks like;
Condition: when app A does B.
Action: app C does D.
I would instead have something like;
Condition: (whatever)
Action: app A does B AND app C does D
Of course, app A and C have to have shortcut or intent that points to the specific actions you want to control (B and D above), like the intent you use to enable/disable wifi scanning. So, if your WiFi Tether Router has options to enable/disable router by shortcut or intent you can do it this way.
You can place a shortcut to the event like this on home screen or in a sub launcher for easy operation, or give it some conditions if you want the event to automatically run in certain time/locations.
If WiFi Tether Router doesn't have a shortcut ready for you to use, you can write to the developer and ask about an intent to enable/disable router.
Alternatively, you can switch to another router app that has a shortcut ready for you to use.
On a separate note, if your WiFi Tether Router gives you a toast when you disable router, there is at least one tool that convert toasts into notifications.
You then might be able to use the notification to enable wifi scanning.
I have been using Llama for sometime. I have numerous events and they work wonderfully.
But now, I have run into a scenario where I am not able to figure out. I would welcome some help.
I have an app WiFi Tether Router that can enable WiFi hot spot tethering (and bypass the native Android Mobile Hotspot so that I can avoid paying additional fees even thought I have unlimited data plan). Problem is that it doesn't work well with setting Allow Wi-Fi scanning = Y.
At first I tried using Condition Active application to trigger Action = Locale plugin:Secure Settings Wifi Scanning.
Example:
Conditions:
Active application:When the current app is WiFi Tether Router
Actions:
Locale plugin:Secure Setting Wifi Scanning Disabled
and the inverse:
Conditions:
Active application:When the current app is not WiFi Tether Router
Actions:
Locale plugin:Secure Setting Wifi Scanning Enabled
The problem with this is the app WiFi Tether Router is running; it is a setting in that app Enable/Disable WiFi router that I need to trigger Locale plugin:Secure Settings Wifi Scanning off/on respectively.
I solve half the problem by using this (turning Wifi Scanning off) :
Conditions:
App Notification Bar Icon:WiFi Tether Router
Actions:
Locale plugin:Secure Setting Wifi Scanning Disabled
But I don't know how I can trigger Wifi Scanning back on.