A wireless home automation system