Microgrids comprising renewable energy technologies are often modelled and optimised from a theoretical point of view. Verification of theoretical systems with data of actually implemented systems in the field rarely occurs in an open manner, especially on the intermediate scale of research buildings. To enable modelling of the actual microgrid performance of a research environment, we present a multiyear dataset of a microgrid with solar arrays and a battery. The main energy datasets comprise data per second supplemented by hourly solar irradiation data. These may be combined with data concerning the hourly electricity prices from the main grid and the low-electricity-price periods of national holidays. The level of detail of the data per second in combination with the hourly data in these datasets allows for a comparison to the efficiency and weather-parameter correlation of other renewable energy technologies, as well as forecasting future energy generation and consumption.