An integrated solution for home automation