... A fair question deserves a fair answer . The SAdynahub, and it's more recent successors are brilliant devices. They have very low mechanical friction... Certainly compared with the bottle dynamo. They were able to produce about 6 watts of electrical power when cycled at a very high speed. They produced at a voltage 6v at 0.18amp to drive the two special bulbs, at normal speeds This is a load of about 2watts. . All this energy came from the rotation of the wheel. If you were to spin the wheel by hand say 1 push, and did not have the bulb connected, the wheel would spin and after a length. of time slow down and stop. If you pushed the wheel with exactly the same push, with the bulb connected, it would take less time for the wheel to stop. The reason the wheel slows is due to friction between the bearings and cones, the air resistance of the spokes . When the bulb is connected there is also a slight extra load due to the magnetic field created when current flows in the bulb reacting against the magnets in the dynamo..
As a youngster, you were energetic and could put maybe 150watts if power into the bike .. maybe 200 watts when you were sprinting. The extra loss of a couple of watts when the lamp was on was not really measurable.Most of the energy lost was to air resistance ,wind.
An electric bike consumes around 200watts. The amount being consumed at any instant depends on the load.. higher consumption when going faster or uphill less on downhill. The EU law allows 250watts. Even if one were to take the energy from a dynahub, increase its voltage from 6 to 38 V, and feed it into the battery, it would only be giving about 2 watts of power or 1% of the consumption. There would only be a value in doing so when one would otherwise be braking e.g going down hill. If one were to use this energy to charge the battery while on the level, you would either need to pedel faster or use battery power.
You might consider using a much more powerful dynamo, but that merely makes the numbers bigger. Don't change the principle
Most people have no idea about how large or small a watt is. We talk about a 2kilowatt kettle or heater and 100 watt bulbs. If you lift a 1kg bag of sugar, from the floor to the table, and take 10 seconds to do so, you have worked at a rate of 1 watt. Assuming table is 1metre, and standard bag of sugar.
My new ebike came with a hub dynamo for the lighting. I think that this is a good idea .. if the battery packed up, i would still be legal after dark.