I'm looking for an app that can possibly change settings based on actions. Examples would be when I connect to this bluetooth device turn on autorotate and things such as that nature.
Tasker (and its helper apps - you'll find them in the play store by searching for tasker) can automate just about anything. It's well worth the $3. (And if you search tasker power off or tasker geofence or whatever type of task you want to write a script for, you'll probably find an example somewhere - our Tasker forum, the Tasker wiki or loads of other sites with Tasker scripts.