Defining actions for rain and light events