Datacentres are becoming a sizable part of the energy system and are one of the biggest consumers of the energy grid. The so-called “Green Datacentre” is capable of not only consuming but also producing power, thus becoming an important kind of prosumers in the electric grid. Green datacentres consist of a microgrid with a backup uninterrupted power supply and renewable generation, e.g., using photovoltaic panels. As such, datacentres could realistically be important participants in demand/response applications. However, this requires reconsidering their currently rigid control and automation systems and the use of simulation models for online estimation of the control actions impact. This paper presents such a microgrid simulation model modelled after a real edge datacentre. A case study consumption scenario is presented for the purpose of validating the developed microgrid model against data traces collected from the green edge datacentre. Both simulation and real-time validation tests are performed to validate the accuracy of the datacentre model. Then the model is connected to the automation environment to be used for the online impact estimation and virtual commissioning purposes.