HELP & Advise on home automation system....

ElCaron:
This request looks pretty hopeless .... But let's try.

Yes, an ATMega with Arduino bootloader can without any problem monitor a Reed switch on a window and blink an IR led to notify a receiver about events.
No, an ATMega with Arduino bootloader cannot run a full featured webinterface for controlling, flexible rule sets and such.
An there are quite a lot more than 50 shades of grey in between.

What are your commonents?
How are they supposed to communicate?
The choice of controllers comes far behind this.

thanks for your answer.my thought about a home automation system is a system of sensors like temperature,light,gas and humidity that sense the environment like room or kitchen or hall.then all of them communicate with a master that receives data from all of them and upload them on a very simple server so you can have a full control over your house from your smartphone with internet.you can switch on or off your chiller or heater,oven or stove,light and lamp of the house or in the bigger view,opening the door of parking and something like watering the home garden.all of them must be controlling in the smartphone or you can change the routine of their work.it`s all of it.is arduino a good choice or must i go for some expensive thing like raspberry pi or for example use both of them to keep the project fee lower?