Was visiting the Porsche museum and learnt about this piece of pre-1900 EV history: https://en.wikipedia.org/wiki/Egger-Lohner_C.2_Phaeton
The Egger-Lohner C.2 Phaeton, erroneously called Porsche P1, is an electric vehicle built by Egger-Lohner. … It is powered by the "octagon" electric motor, that Ferdinand Porsche designed, which took its name from the eight-sided design of the motor housing. The electric motor can produce an output of 3 hp (2.2 kW) at 350 rpm and, for short periods of time, up to 5 hp (3.7 kW) with a top speed of 35 km/h (22 mph) by overcharging it. … On September 28, 1899, Porsche drove a C.2 that was entered in the Berlin road race, where it won the gold medal and crossed the finish line 18 minutes before the second car. It also came out on top in the efficiency test, where it was recorded as the lowest energy consumption vehicle in urban traffic.