Home automation system using the raspberry pi and LIRC