if(this.getTriggerParameter2().length()>0)// only check if any wifi name specified, otherwise any wifi will do
{
Miscellaneous.logEvent("i",Miscellaneous.getAnyContext().getResources().getString(R.string.ruleCheckOf),String.format("Wifi name specified, checking that.",this.getParentRule().getName()),4);
<stringname="wakeLockExplanation">Activate will keep the screen on while deactivate will let it turn off. For keeping it on you can either enter a duration after which it may turn off again or you can keep it on indefinitely. In the latter case you would need to create another keep-awake action (in this or another rule) in which you select deactivate.</string>
<stringname="mayUseRegularExpressions">You may also enter a regular expression here.</string>