Sorry to say that, but these questions show a lack of experience and knowledge of the way a the current e-assist with torque sensor+cadence sensor work (Bosch, Shimano Steps, Yamaha, Panasonic, Bafang OEM...).
These e-assist are not an electric engine that the cyclist put ON or OFF depending of the ride.
They sense the torque applied by the cyclist on the pedals and add, a selected by the cyclist percentage of power (typically up to something between 300% and 400%), to the power applied by the cyclist. Its like if the cyclist had more pedaling power.
The cyclist must pedal to have an e-assist (mandatory for all ebikes in Europe, for Class 1 and Class 3 in the US), its not like the thumb throttle of an e-scooter (only US Class 2 ebikes are allowed to have a throttle activated engine).