Smart Lights - Add conditions

You should check out Rule Machine.