Automation system to disconnect charger of laptop once battery is 100% and again connect it once battery levels are below the set threshold. It has been achieved using Python script and Micro Controller ESP8266 The relay is controlled by Node-MCU and Node-MCU itself is connected to laptop via serial communication over USB.