Where is this specific setting I forgot the name? Using Sony Xperia Z3, Android 4.4.4
[Answer based on my previous comment] 
The feature/setting is called "Smart Connect". The reason it's not to be found in any preference setting, is that it has its own icon and comes pre-installed (I guess on most Sony devices). For my specific case, I then select "Night", where I can see all the additional tasks the phone does "automagically" (and that cause troubles ;)
Other events for automation include "Music on the go", and "Music at home".