A person is using an app on their smartphone to control different modes such as sleep or away, and these modes can be automatically activated.