dustinrue/ControlPlane — Issue #119: If then else then
Author: PimOudeVeldhuis
Created: 2012-01-12 15:29:55+00:00
State: open

Is it possible to make a if then else then, the scenario is:

If i'm at home (which is if it finds my WiFi network) then it should take my Home profile
If i'm not at home (all other situations) then it should take the Other profile.

At the moment my solution is:
- If wifi is find then take Home profile (100% confidence)
- If i use battery power take Other (70% confidence)
- If i user the power adapter take Other (70% confidence)

This actually does the trick, if the wifi is found it overrules the battery/adapter power. If its not found the 70% of the battery or power adapter (one of the two is always in use of course) takes it to Other.

This is a bit of a nasty solution. Is there a way to make it that if it finds my Wifi it says i'm home and if its not then it takes it to another profile.