Automating butterfly or ball valves