Just make property taxes higher for empty buildings. Prorate per month. I thought some country was trying this?
For rentals in general, trying to solve a different problem, we should drastically increase property taxes and then give a discount for primary residence that puts it back to where it is now.