See this example below.
If I wanted to detect when my brightness is the darkest, i would do
if (config.get(166)==0) {
return darkestSetting;
}
Just use the values on the screen.
It's config Value : number that changes.
The config value is the same for the action and then depending on what you do the second number changes.
So for teleblock, if the config value was 24, then it might return 0=false and 1=true (I didnt test it but assuming this is what it is)