There is no other solution then rent them by the month. Btw, it is also the cheapest solution. It will cost you less than 500 euros a month.
So if you are 4 months in Spain it costs you 2000 euro a year without zero headaches, no depreciation, no insurance, no maintenance ... the zero...