How can I create alarm clock which will control home automation when alarm goes on

I want my alarm system to turn on lights and turn off fan when the alarm goes on. How can i do that?

How are you going to interface with your alarm system?

How do you intend to control the lights/fan, is this already controllable via an MCU?

Pete.