I really look forward to the day when we can rely more on implicit data from users for this kind of automation. I think it will start with purpose built devices (eg Wakemate), but then evolve into more sophisticated platform type devices ready for anyone's code.