Home automation and security for Raspberry PI