This document summarizes a project that uses IoT devices, Python, and machine learning to predict and replay home lighting patterns. Sensor nodes with ESP8266 microcontrollers capture light sensor data and send it to a Raspberry Pi for analysis. Hidden Markov models are trained on the data and used to generate predicted lighting states. A player script then controls smart lights to match the predictions. The project demonstrates an end-to-end IoT and machine learning workflow for an autonomous home lighting application.