This document describes how to set up a Raspberry Pi-based home automation system that allows devices to be controlled remotely over the internet. It uses a Raspberry Pi with a relay circuit to control appliances connected to it. A PHP-based web interface runs on a server and stores state in text files. A Python script on the Pi reads the text files over HTTP to control the relay and devices accordingly. Setting up the system involves preparing HTML, PHP and text files on the server, building the relay circuit, and configuring the Raspberry Pi to run the Python script to interface with the server files and control the relay.