To meet environmental challenges, the development of low-carbon energy production technologies is crucial. In this context, alternative energy resources are being utilized largely to generate power in recent years. In particular, solar power and wind energy are experiencing a significant growth. In order to overcome their intermittences and their fluctuations, energy storage solutions need to be developed. Among the energy storage technologies available, hydrogen appears to be an interesting candidate. More precisely, an electrolyzer combined with a hydrogen storage and a fuel cell is often studied to store and restitute electrical energy when needed. However, hydrogen can also be burned to provide space heating and cooking. The microgrid t...