Energy harvesting in roped elevators