Standalone renewable energy is widely used to power irrigation systems. However, in agricultural facilities, electricity from the grid and diesel are also consumed. The design and sizing of renewable generation involves difficulties derived from the different seasonal profiles of production and demand. If the generation is 100% renewable, a considerable energy surplus is usually included. This paper is focused on a renewable energy system, which has been installed in a vineyard, located in the northeast of Spain. With energy from the photovoltaic fields, the wastewater treatment plant of the winery, a drip irrigation system and other ancillary consumptions are fed. The favourable effect of combining consumptions with different seasonal profiles is shown. The existence of some deferrable loads and the energy management strategy result in an aggregate consumption curve that is well suited to production. Besides, the required energy storage is relatively small. The surplus energy is used for the on-site production of hydrogen by the electrolysis of water. The hydrogen refuels a hybrid fuel cell electric vehicle, used for the mobility of workers in the vineyard. In description, electricity and hydrogen are produced on-site (to meet the energy needs) from 100% renewable sources and without operating emissions.