I really can not see any point in powering the lights on an electric bike with a dynamo. Particularly when, by definition, ebikes have a large electrical energy supply onboard in the form of a battery. The lighting power consumption by comparison to motor power consumption is negligible, so...