A lot of this is actually happening now. (except for me the CID is my phone).
The computer I work on goes into "Standby" when I'm done w/ it. Allowing all I was working on to be right where I left off. My Cell phone has an alarm app that makes me do something to shut it off. I can't talk to my t.v. but I can say Navigate to Work, and get the bet route.
Also, using "TASKER", my phone recognizes where I am, and performs necessary tasks. As I leave my house, it sets auto brightness on and enables keyguard, and turns on GPS. (just in case I'm not in my car).
When I get in my car, it turns off wifi, set's Keyguard off, turns up the media volume to 11, locks in my car dock screens, and fires up pandora. As I leave the car it turns wifi on, kills pandora disables GPS, and set's the keyguard. When I arrive at work, it goes into silent mode jacks up the brightness, and disables GPS & bluetooth if it's still enabled if by chance I arrived via vanpool. Even when I travel to different work sites, based on WIFI SSID, which is the same for each site, it performs these functions.
When I leave work, it set's Bluetooth on, and jacks the ringer up.
As I arrive home, it disables key-guard, turns off GPS, sets WIFI on automatically, sets autobright, say's "Welcome Home" Tells me my battery level, and turns all ringers to max. Finally, as I lay to sleep, it automatically drops the brightness down low, and switches to silent mode.
Best part? If I forget to plug in my phone, and the battery reaches 5%, the phone turns off, leaving me enough reserve power to make a few emergency calls if necessary.
This didn't take any programming knowledge except order of operations.