HomeBafang › Error 24

Bafang error 24: Headlight sensor error

Bafang BBS01/BBS02/BBSHD, M-series mid-drives and hub motors (UART & CAN displays)Fix at homeSafe to keep riding

The light sensor that switches the headlight automatically (on displays with auto-light) is giving an invalid reading. The bike rides normally; the light may stay on or off permanently. Purely a convenience fault.

Likely causes

How to fix Bafang error 24

  1. Clean the display face where the sensor sits
  2. Set the light to manual instead of auto in the display settings
  3. Dry the display if water got in; leave it in a warm dry place overnight
  4. Replace the display if the sensor is dead and you want auto-light back
Go to a dealer if: Go to a shop only if you want the auto-light function repaired; the bike rides fine otherwise.
Warranty: Bafang parts are usually sold through dealers or online resellers; warranty is typically 1-2 years via the seller, and this code alone is rarely a warranty claim.
Typical cost: Free (switch to manual); a display replacement is EUR/USD 60-200.
Still stuck? Take a photo of the display and show it to a local e-bike workshop. Bring the bike's system name (e.g. Bosch Performance Line CX) and the exact code; that saves diagnostic time and money.

Frequently asked

Can I reset error 24?

Set the light to manual mode and power cycle; the code usually disappears.

Can I keep riding?

Yes, with no effect on assist.

Warranty?

A dead display sensor is covered within the display's warranty.

Related Bafang codes

23 · Headlight error

Not an official Bafang document. Compiled from workshop experience and public service information; details can differ per system version and bike brand.