Resumen: 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 summary, electricity and hydrogen are produced on-site (to meet the energy needs) from 100% renewable sources and without operating emissions. Idioma: Inglés DOI: 10.3390/su11040951 Año: 2019 Publicado en: Sustainability (Basel) 11, 4 (2019), 951 ISSN: 2071-1050 Factor impacto JCR: 2.576 (2019) Categ. JCR: ENVIRONMENTAL SCIENCES rank: 120 / 265 = 0.453 (2019) - Q2 - T2 Categ. JCR: ENVIRONMENTAL STUDIES rank: 53 / 123 = 0.431 (2019) - Q2 - T2 Categ. JCR: GREEN & SUSTAINABLE SCIENCE & TECHNOLOGY rank: 26 / 41 = 0.634 (2019) - Q3 - T2 Categ. JCR: GREEN & SUSTAINABLE SCIENCE & TECHNOLOGY rank: 6 / 8 = 0.75 (2019) - Q3 - T3 Factor impacto SCIMAGO: 0.581 - Energy Engineering and Power Technology (Q2) - Environmental Science (miscellaneous) (Q2) - Renewable Energy, Sustainability and the Environment (Q2) - Management, Monitoring, Policy and Law (Q2) - Geography, Planning and Development (Q2)