This paper focuses on the design and implementation of an event-based control architecture to manage a renewable-based microgrid. This microgrid has renewable-energy generation and a hybrid energy storage system that uses electricity and hydrogen. The main load of the microgrid is the energy demand of an office. The primary control objective is to satisfy the load demand using the available renewable generation and stored energy while reducing the amount of energy purchased from the Utility Power Grid (UPG). To do that, the control architecture, which has been defined within an event framework, makes use of a set of state-space model predictive controllers which are selected as a function of a variable sampling period. To evaluate the performance of the proposed control architecture, simulation tests for a typical day of summer as well as an analytical study is performed. Furthermore, a comparison of the obtained results with a classic state-space model predictive control approach is also included. The obtained results show that the use of the event-based control architecture allows a significant reduction of the number of changes in the control action at the expense of an acceptable deterioration of set-point tracking for a microgrid with several types of electrochemical storage.