When I come home I want wifi turned on and my phone to connect to my home network, and to turn off the phone's vibrate function. When I leave home I want my wifi turned off and vibrate turned on.
Wifi consumes battery, so if I'm not using it I want it off. Also, vibration is great when I'm out and my phone is in my pocket. At home it just rattles the table and makes my phone dance.
I wrote this tag as a switch tag so it will swap between the two states. They are:
Coming Home- Turn on wifi, connect to 'Dr.Strangelove' (My home network) and provide the network key (if you don't already have it), turn off vibration
Leaving Home- Turn off wifi, turn on vibration
I wanted this tag to be hidden in a convenient place in my doorway, so I stuck it on the inside of the light switch plate. When I come/leave home I unlock my phone and touch it to the switch plate.