This document describes a home automation system using Raspberry Pi, MQTT messaging, Grails, and Arduino. The main components are an MQTT broker to organize messages, a Grails/Tomcat web server for centralized logic, a Raspberry Pi, browser interface, and Arduino board. The system allows remote control and monitoring of sensors and devices in real-time through a browser dashboard using MQTT, websockets, and Ajax. An Arduino board interacts with sensors and devices using a relay board and publishes data to MQTT channels.