If you want better control of automatons like this, You might want to checkout the rooms manager smartapp by @bangali