How it works: pull the brake lever, the magnet ring leaves the sensor,power is cut off. This power cut-off brake switch is fitting electric mountain bike which has gear shifter combined brake or hydraulic brake.
eBay