KEBA KeContact P30 on a floor-mounted column, with LED bar and charging cable
On this page

When the LED bar of a KEBA KeContact P30 or P20 flashes green slowly, every 3 seconds, the charger is ready and waiting for the charging cable. Flashing red is a malfunction, which you acknowledge by unplugging the connector. Blue/red and red/white are the KEBA P30 error codes: every red segment counts, S1 to S4 stand for 8, 4, 2 and 1, and the sum is the error group. Blue/red/blue/red is therefore group 5, the residual current monitoring inside the charger has tripped.

The values come from the KEBA operating instructions V3.51 (January 2026), the document Error indicators & Diagnostics V1.00 (September 2025), the installation manual V3.70 (January 2026) and the Modbus TCP Programmers Guide V1.09 (November 2026). Where the old P20/P30 manual V3.20 from 2016 says something different, it is noted.

Every LED signal of the KEBA P30 and P20

The LED bar has four segments, S1 on the left to S4 on the right, and only lights up when the charger has power. Unless stated otherwise, all four segments light together. The table lists every signal from both manuals and what you do about it.

SignalMeaningWhat you doSource
DarkNo supply voltage or a defectCheck and switch on the RCD and line circuit breaker; if it stays dark, call the service partnerV3.20, V3.51
Green, flashes slowly every 3 sReady for operation, charging cable not yet plugged in on both sides. With RFID or key switch: authorisedPlug in the charging cableV3.20, V3.51
Blue, flashes every 3 sWaiting for authorisation, for example an RFID cardHold the card to the readerV3.51
Briefly orange after plugging in (V3.20), green flash after plugging in (V3.51)Waiting for locking, the plug is being lockedWaitV3.20, V3.51
Orange, about 5 sSelf-test when plugging in and when starting upWaitV3.20, V3.51
Blue and orangeThe charger is starting upWaitV3.51
Green, continuousReady for charging, cable plugged in on both sides and lockedThe vehicle starts charging; check the charge timer in the vehicleV3.20, V3.51
Green, flashes every secondCharging in progress (Mode 3 to EN 61851)NothingV3.20, V3.51
Green, goes out briefly every 3 sWaiting for unplugging, charging finishedUnplug the cableV3.20
Green, flashes every 3 s after chargingCharging finished, socket releasedUnplug the cableV3.51
Orange, flashes slowly every 5 sOut of service, usually overtemperature; charging resumes after cooling downWait, shade the charger and vehicle from direct sunV3.20, V3.51
Orange, flashes slowlySoftware update running, on the x-series up to an hourWaitV3.51, Diagnostics V1.00
Segment 2 orange (V3.20), segment S3 orange (V3.51)Commissioning modeThe electrician sets DSW2.8 to OFF and restartsV3.20, V3.51
Segment S4 orangeRFID client card being taught in, hold the master card againHold the master card to the readerV3.51
Red, flashesMalfunctionUnplug, 30 s without power, update; see further downV3.20, V3.51
Blue/redError code from the power unitSee the group table belowV3.20, Diagnostics V1.00
Red/whiteGeneral error codeSee the group table belowV3.20, Diagnostics V1.00
Blue/orange at start-upFirmware versionSee the firmware section further downDiagnostics V1.00

Sources: KeContact P30 operating instructions V3.51, sections 4.1, 5.1 and 10.1; KeContact P20/P30 user manual V3.20 (document 96166, 2016), chapters 2 and 3; Error indicators & Diagnostics V1.00, section 2.4. Manual V3.20 applied to the P20 from firmware 2.x and the P30 from firmware 3.x. Edition V3.51 keeps the same document number but covers the P30 only.

Slow orange flashing therefore has two meanings: overtemperature and a software update. If an update was just started, it is the update. A P30 x-series also flashes slowly orange when someone has set it to "out of service" in the web interface (configuration manual V4.21).

The signals during a charge, in order

A normal charge always runs through the green signals in the same order. When the sequence stops, the last signal shows where it is stuck.

  1. 1

    Green flashes every 3 s

    The charger is ready. On a socket version, plug the cable into the charger first. With authorisation enabled the bar flashes blue until you present the RFID card.

  2. 2

    Locking

    The charger locks the plug in the socket and then flashes green every 3 seconds again.

  3. 3

    Cable into the vehicle, orange self-test, then continuous green

    After the self-test the bar lights green: cable plugged in on both sides and locked. The vehicle may now charge.

  4. 4

    Green flashes every second

    The vehicle is charging. If the bar stays continuously green, the vehicle has not started yet, for example because of a charge timer.

  5. 5

    Stop at the vehicle, then unplug

    End the charge at the vehicle and unplug the cable there. Then remove it from the charger, or put the plug in the parking bay and hang the cable on the holder.

If plugging in or charging is interrupted, the charger restarts the process by itself, at most five times. After that it goes into an error state. Manual V3.20 (chapter 5) and operating instructions V3.51 (section 6.1) both say so.

Reading KEBA P30 error codes in blue/red and red/white

An error code on the LED bar is a four-digit binary number: a red segment is 1, a blue or white segment 0. S1 counts 8, S2 4, S3 2 and S4 1. KEBA describes this calculation in Error indicators & Diagnostics, chapter 3, and writes the sum as a hex digit at the end of the error code in the log file.

S180S241S320S411ValueRed = 10 + 4 + 0 + 1 = 5Group 5
  • Blue/red comes from the power unit, red/white is a general error.
  • Group 5 in blue/red is ERROR_FI: the internal residual current monitoring has tripped.
  • The old manual V3.20 calls the same signal error 8005.
Blue/red/blue/red: S2 and S4 are red, 4 + 1 gives error group 5.

We checked every pattern in the tables below against the drawings in the KEBA document. KEBA writes groups above 9 as a hex digit: 12 is c, 15 is f.

Blue/red: faults in the power unit

Blue/red errors concern the contactor, voltage, current, residual current and the internal control.

Pattern S1 to S4GroupKEBA nameCauseWhat to doWho
blue, blue, blue, red1ERROR_SCHUETZSwitch-on test failed, the contactor does not switch onHave the charger repaired or replacedService partner
blue, blue, red, blue2ERROR_VOLTAGESWrong supply voltage: phase 1 below 160 V, a phase above 285 V, or the meter measured nothing valid for 10 sHave the mains connection checked; if the error stays, repair or replaceElectrician
blue, blue, red, red3ERROR_CURRENTThe vehicle draws more than 120 % of the permitted current for at least 8 s on a phase. Manual V3.20: error 4003Compare the DIP setting with the vehicle's maximum charging current; if the vehicle shows more current than its data sheet, garageElectrician, garage
blue, red, blue, blue4ERROR_PILOTUnexpected signal from the vehicle on the pilot lineCheck cable and connector for damage, replace faulty partsYou, replacement by electrician
blue, red, blue, red5ERROR_FIInternal residual current monitoring tripped. Limits: 6 mA DC, 30 mA AC. Manual V3.20: error 8005, "possible damage due to a storm"Stop charging, switch the charger off for 30 s at the line circuit breaker, restart. Repeatedly on the same vehicle: garageYou, then garage
blue, red, red, blue6ERROR_METER, ERROR_LEDNo communication with the energy meter or LED controller, or a meter configuration errorCheck the DIP switches; if the error stays, replace the chargerElectrician
blue, red, red, red7ERROR_CFBContactor feedback not OK, possibly a welded contactor30 s off, restart; if the error stays, repair. Firmware before 3.06: updateYou, then service partner
red, blue, blue, blue8ERROR_CONFIGInternal system configuration is faultyReplace the chargerService partner
red, red, blue, bluecERROR_PERSISTAn earlier error persists despite the automatic error reaction; the display alternates with the triggering errorKEBA supportService partner
red, red, blue, reddERROR_CONInternal errorKEBA supportService partner
red, red, red, blueeERROR_STATEThe charge controller requested an illegal state change30 s off, restart; if the error stays, repairYou, then service partner
red, red, red, redfERROR_SYSTEMNo communication with the charge controller or a firmware errorDisconnect the vehicle, restart. After an update: download it again; on e-, b- and c-series a deep firmware updateElectrician

Source: KEBA Error indicators & Diagnostics V1.00, sections 2.2 and 3.1; error numbers 4003 and 8005 from manual V3.20, chapter 5.

Red/white: general errors

Red/white errors are almost always about the plug, the cable, temperature or configuration. You solve most of them yourself by unplugging and plugging in properly again.

Pattern S1 to S4GroupKEBA nameCauseWhat to doWho
white, white, white, red1AUTARK_PLUG_LOSTPlug pulled out during charging or not properly lockedUnplug, plug in again, watch the lockingYou
white, white, red, white2AUTARK_PLUG_UNDEFPlug not recognisedUse a standard-compliant plugYou
white, white, red, red3AUTARK_OVERHEATPermitted temperature inside the charger exceededUnplug, let it cool down; if it happens often, check the mounting locationYou, then electrician
white, red, white, white4AUTARK_LOCK_FAILEDPlug could not be lockedPush the plug in fully, press it upwards, plug in quickly; otherwise check the socket for dirt, plug and cable for damageYou
white, red, white, red5AUTARK_OHMIC_LOADNo vehicle detected but an unauthorised loadRemove the load, restart chargingYou
white, red, red, red7AUTARK_IBN_MODECommissioning mode; also appears when the test window of about 10 minutes has expiredCheck DSW2.8, restartElectrician
red, white, white, white8AUTARK_SHORT_CIRCUITShort circuit detected. Manual V3.20: plug supplies an invalid state, cable hardware faultCheck cable and plug, replace the faulty partYou, replacement by electrician
red, white, white, red9AUTARK_CONFIG_ERRConfiguration errorCheck the DIP switches, restartElectrician
red, white, red, whiteaAUTARK_13A_ERRORCharging cable rated 13 A or less, which the charger does not acceptUse a cable rated for a higher currentYou

Source: KEBA Error indicators & Diagnostics V1.00, sections 2.3 and 3.2; commissioning test window from the installation manual V3.70, section 9.1. Manual V3.20 calls groups 1 to 5 and group 8 "error 1" to "error 5" and "error 8", with the binary number in brackets, such as error 5 [0101].

Detailed codes in the log file

For some groups the log file gives a more precise code; the last hex digit is the group. The P30 e-series keeps no log file. On the x-series you find it in the web interface under System > Logging, or you load it onto an empty USB stick. On the other series you view it in the web interface and copy it from there.

CodeGroupMeaning
0x90011Current monitoring did not enable switching on the contactor
0xa0011The charge controller did not enable switching on the contactor
0xc0011Contactor not on despite activation, fault in the control or the contactor
0x80055Residual current monitoring self-test failed at restart
0x80155Self-test failed after an error recovery (shown only with firmware 3.06)
0x80255Self-test failed when plugging in, visible as 3 s orange after plugging in
0x80355Check immediately before switching on the contactor failed
0x80455Timeout while switching on the contactor
0x80655Residual current within 5 s of switching on; unplug the cable
0x80755Limit exceeded during charging: 6 mA DC or 30 mA AC
0x80066Communication with the energy meter disturbed
0x80466Energy meter configuration error, possibly wrong calibration data
0x80566Communication with the LED controller disturbed; not critical right after an update
0x80866The energy meter supplies no measured values
0xa0066Link between charge controller and LED controller faulty, MID devices only

Source: KEBA Error indicators & Diagnostics V1.00, chapter 3.

What you may do yourself and when to call an electrician

You may unplug, restart the charger at its line circuit breaker and run a software update yourself. Anything on the fixed installation, the DIP switches and the connection panel is work for a qualified electrician. KEBA recommends these three steps in Error indicators & Diagnostics, section 2.1, in this order, checking the LED bar after each one:

  1. 1

    Unplug and plug in again

    Unplug the cable from the vehicle and start charging again. This acknowledges any malfunction; without unplugging, the error stays.

  2. 2

    30 seconds without power

    Disconnect the vehicle, switch the charger off for 30 seconds at its line circuit breaker and switch it back on. The P30 has no power switch of its own.

  3. 3

    Update the software

    The current firmware is on the KEBA download page. On the x-series you can update by USB stick, web interface, app or KEBA portal. On a-, e-, b- and c-series the instructions come with the update file. A c-series in a charging network receives the update from the master station.

If the error is still there, call the service partner: the company that installed or sold the charger. Have ready the product name and serial number from the type plate on top of the charger, the software version, what you were doing and the make and model of the vehicle. The old manual lists the model version, serial number, material number and device type on the type plate.

Problems without an error code have their own table in both manuals:

ProblemPossible causeRemedy
LED bar stays darkNo supply voltageCheck and switch on the RCD and line circuit breaker
LED bar stays darkCharger defectiveService partner
Charging does not startPlug not inserted correctlyUnplug, plug in again
Charging does not startSteps not done in the right orderFollow the sequence above
Charging does not startPlug or socket dirty or damaged at the locking areaClean it or have it replaced
Charging does not startVehicle needs no energy, has a fault or a later start timeCheck the vehicle
Charging does not startNo enable from an external controller (grid operator, PV system)Check the enable at that controller
Vehicle not full, charging takes longerCurrent reduced because of temperature, by the vehicle or the chargerShade from direct sun; look at the plug for dirt, wear or damage
Plug cannot be removedThe vehicle has not ended the chargeEnd the charge as the vehicle manual describes
Plug cannot be removedTension on the cable keeps the plug latchedPush the plug in, reconnect to the vehicle, end the charge again

Sources: manual V3.20, chapter 5; operating instructions V3.51, chapter 9.

The other notes from both manuals: the charger is for indoor and outdoor use, on a wall or a floor-mounted column. Inspect the housing, socket, plug and cable regularly by eye. Pull the plug, never the cable, and do not kink or drive over the cable. Clean it with a damp cloth and a mild, solvent-free agent, never with a hose or pressure washer; V3.51 adds: without anionic surfactants. Markings and warning labels stay on the device. Manual V3.20 also mentions that some vehicles need ventilation when charging indoors; the vehicle manual says so if yours does.

A P30 with display shows the software version, checksum and meter reading at start-up, and the energy of the current charge with a "+" at its start and end. When idle, the display dims and switches off after a few minutes. With a calibrated (MID) meter, "M!" in front of a value means an internal message was stored during the charge. An MID-relevant error means the charger has to go back for repair (operating instructions V3.51, section 4.2).

Reading the firmware version from the LED bar

At start-up the P30 briefly shows its firmware version in blue and orange. The colours give the major version: blue/orange is version 3. For the subversion, every blue segment counts with its value, S1 8, S2 4, S3 2 and S4 1, and orange counts 0. Blue, orange, orange, blue is 8 + 1 = 9, so firmware 3.09.

The version matters in two places: group 7 asks for an update on firmware before 3.06, and Modbus TCP on the c-series needs firmware 3.10.16. On b-, e- and c-series the firmware is also shown in the simplified web interface, on the x-series in the web interface. A unit with a display shows it at start-up (Error indicators & Diagnostics V1.00, section 2.4).

Which KEBA chargers have Modbus TCP

Modbus TCP is only available on the KEBA P30 c-series from firmware 3.10.16 and the P30 x-series from software 1.11. KEBA documents no Modbus TCP for the P20 or the P30 a-, b- and e-series; Programmers Guide V1.09 states in section 1.6 that it applies exclusively to the c- and x-series. You read the series from the product name on the type plate, at the seventh position after "KC-P30-":

Seventh positionSeriesModbus TCP
0e-seriesNo
1b-seriesNo
2c-seriesYes, from firmware 3.10.16
3a-seriesNo
B, E, H, S, Ux-series (WLAN, 4G, with or without load management)Yes, from software 1.11

In the example in operating instructions V3.51, section 3.3, KC-P30-EC240012-00R, that position holds a 1: a b-series with type 2, 32 A, three-phase contactor and RFID, without Modbus TCP.

KEBA KeContact P30 c-seriesDIP switch DSW1ONOFF1X12X23Modbus4UnbalancePort 502 after restart
DSW1.3 set to ON enables UDP or Modbus TCP; it takes effect after a restart.

You enable Modbus TCP with DIP switch DSW1.3 set to ON (Programmers Guide V1.09, section 1.4; installation manual V3.70, section 8.1). The DIP switches are rocker switches: press them, do not slide them. The setting only takes effect after a restart: hold the service button for about 1 second, or switch the charger off briefly at the line circuit breaker. Programmers Guide V1.09 also says in chapter 2 that the interface has to be switched on in the web interface and is off by default. On the x-series that item is System > Modbus TCP Settings (configuration manual V4.21, section 4.1.5). The DIP switches sit in the connection panel under the housing cover, which is work for the electrician.

The charger must be connected by network cable to the same network as the client. The c-series only talks to private address ranges: 192.168.0.0/16, 172.16.0.0/12, 10.0.0.0/8 and 169.254.0.0/16. Modbus TCP and the UDP interface must not run at the same time. You set the fixed IP address of the c-series with DSW2.1 to DSW2.4. The address is 192.168.25.xx, where xx is the sum of the switch values (1, 2, 4, 8) plus 10, so 11 to 25.

All Modbus registers of the KEBA P30

Over Modbus TCP the P30 provides 23 readable and 9 writable registers, using function code 03 to read and 06 to write. Every readable register is a UINT32 of two words that you request on its own; reading several registers in one request is not possible. The unit ID is 255, the port 502, and addressing starts at 0: you send register 1000 as 1000.

AddressNameTypeUnitR/WDescription
1000Charging stateuint32-R0 start-up to 5 interrupted
1004Cable stateuint32-R0, 1, 3, 5 or 7
1006Error codeuint32-R0 = no error, otherwise read as hex
1008Current L1uint32mAR645 = 0.645 A
1010Current L2uint32mAR1011 = 1.011 A
1012Current L3uint32mARMeasured current phase 3
1014Serial numberuint32-RDecimal, such as 18416854
1016Product typeuint32-RDigit-coded, such as 304111
1018Firmwareuint32-RRead as hex: 0x30A0D00 = 3.10.14
1020Active poweruint32mWR98661 = 98.661 W
1036Total energyuint320.1 WhR38101 = 3.8101 kWh
1040Voltage L1uint32VR230 = 230 V
1042Voltage L2uint32VRMeasured voltage phase 2
1044Voltage L3uint32VRMeasured voltage phase 3
1046Power factoruint320.1 %R928 = 92.8%
1100Max charging currentuint32mARCurrent maximum charging current
1110Max hardware currentuint32mARLowest of DIP, cable, temperature
1500RFID carduint32-RFirst 4 bytes of the UID, as hex
1502Session energyuint320.1 WhR165 = 16.5 Wh
1550Phase switch sourceuint32-R0 none, 3 Modbus TCP
1552Phase switch stateuint32-RV1.09: 0 one phase, 1 three phases
1600Failsafe current setuint32mARLast value set
1602Failsafe timeout setuint32sRLast value set
5004Set charging currentuint16mAW6000 to 63000
5010Set energy limituint1610 WhW1 = stop after 10 Wh
5012Unlock pluguint16-W0; only in suspended state
5014Enable chargeruint16-W0 disable, 1 enable
5016Failsafe currentuint16mAW0, or 6000 to 32000
5018Failsafe timeoutuint16sW0 off, 5 to 600
5020Persist failsafeuint16-W1 = store permanently
5050Phase switch sourceuint16-W0 to 4, 3 = Modbus TCP
5052Trigger phase switchuint16-W0 one phase, 1 three phases

Source: KEBA KeContact P30 Modbus TCP Programmers Guide V1.09 (document 132578, November 2026), chapters 2 to 4. The example values are KEBA's.

The values of the state registers are listed in chapter 3 of the Programmers Guide. Register 1000 returns 0 during start-up and 1 when not ready: no vehicle, authorisation missing or blocked. 2 means ready and waiting for the vehicle, 3 charging, 4 error, 5 interrupted by temperature or in suspended state.

Register 1004 describes the cable. 0 is no cable, 1 plugged into the charger only, 3 plugged into the charger and locked. 5 is plugged into charger and vehicle, 7 into both and locked.

Register 1016 encodes the product type as digits from the left. First 3 for KC-P30, then cable (1) or socket (0) and the current (1 = 13 A, 2 = 16 A, 3 = 20 A, 4 = 32 A). Then the series (1 = c-series, 0 = x-series), the meter (1 not calibrated, 2 MID, 3 national approval) and RFID (0 without, 1 with). KEBA's example 304111 is a P30 with 32 A, c-series, uncalibrated meter and RFID.

Registers 1550 and 5050 give the phase switching source: 0 none, 1 OCPP, 2 REST API, 3 Modbus TCP, 4 UDP. Socket versions show 6000 mA in 1110 as long as no cable is plugged in.

Programmers Guide V1.07 (December 2025) gave the values 1 and 3 for register 1552; V1.09 corrects this to 0 and 1. Check the value on your own charger once on one phase and once on three, before an automation acts on it. Switching with 5052 needs an external phase switch such as the KEBA S10, and a 5-minute pause after every switch.

Register 1500 only returns the RFID card if that is enabled separately (V1.09, chapter 2). In Modbus TCP version 1.11 of the P30, KEBA puts the firmware version in 1013 instead of 1018.

Reading the LED fault over Modbus

You read the state behind the red flashing from two registers: 1000 returns 4 for an error and 1006 the error code. 1006 returns a decimal number that you convert to hex. KEBA's example in the Programmers Guide: 262144 is 0x40000, error group 4. In the log file, by contrast, the group is in the last hex digit, such as 0x8005 for group 5. At the next fault, note the value from 1006 and the colours on the bar, and you will know how your firmware reports the group.

MBAP header: 00 01 00 00 00 06 FFPDU: 03 03 EE 00 02TID2 BPID2 BLEN2 BUID1 BFC1 BDATAN BCRC-16
TIDTransaction ID 00 01, echoed in the response
PIDProtocol ID 00 00, always 0 for Modbus TCP
LENLength 00 06, six bytes follow
UIDUnit ID FF, always 255 on KEBA
FCFunction code 03, read holding registers
DATAAddress 03 EE (1006), quantity 00 02 words

No CRC: Modbus TCP relies on the TCP checksum.

The request for the error code of a KEBA P30, register 1006.

The response with KEBA's example value is 00 01 00 00 00 07 FF 03 04 00 04 00 00: length 7, function code 03, 4 data bytes, and 0x00040000 is 262144. KEBA shows the same structure for register 1018 in Programmers Guide V1.09, section 2.1; the field table of the response there gives the length as 00 06, the full hex stream correctly as 00 07. The frame layout is explained in Modbus TCP explained, function codes in Modbus function codes.

Home Assistant and a Python test script

The Home Assistant Modbus integration reads a uint32 as two consecutive registers, which suits the KEBA. Use device_address: 255 (older configurations write slave, which works the same) and addresses without offset, because Home Assistant counts from 0 just like KEBA.

modbus:
  - name: keba_p30
    type: tcp
    host: 192.168.25.11
    port: 502
    sensors:
      - name: KEBA charging state
        device_address: 255
        address: 1000
        data_type: uint32
        scan_interval: 30
      - name: KEBA cable state
        device_address: 255
        address: 1004
        data_type: uint32
        scan_interval: 30
      - name: KEBA error code
        device_address: 255
        address: 1006
        data_type: uint32
        scan_interval: 30
      - name: KEBA charging power
        device_address: 255
        address: 1020
        data_type: uint32
        scale: 0.001
        precision: 0
        unit_of_measurement: W
        device_class: power
        state_class: measurement
        scan_interval: 10
      - name: KEBA meter reading
        device_address: 255
        address: 1036
        data_type: uint32
        scale: 0.0001
        precision: 2
        unit_of_measurement: kWh
        device_class: energy
        state_class: total_increasing
        scan_interval: 60

The keys come from the Home Assistant Modbus integration documentation (2026.12). Home Assistant's own KEBA integration uses the UDP interface instead; KEBA says UDP and Modbus TCP do not run together, so you choose one of the two. More on the integration in Home Assistant with Modbus.

The Python test script needs no extra packages. It requests nine registers one at a time, with the half-second pause KEBA recommends, and prints state, cable, error code, currents and energy. We tested it against a Modbus server that mimics KEBA's rules (unit ID 255, only FC 03 with two words) and returns KEBA's example values.

import socket, struct, sys, time

HOST = sys.argv[1] if len(sys.argv) > 1 else "192.168.25.11"
PORT = int(sys.argv[2]) if len(sys.argv) > 2 else 502
UNIT = 255  # KEBA P30 answers only on unit ID 255

STATE = {0: "start-up", 1: "not ready", 2: "ready", 3: "charging",
         4: "error", 5: "interrupted (temperature or suspended)"}
CABLE = {0: "no cable", 1: "station", 3: "station, locked",
         5: "station and vehicle", 7: "station and vehicle, locked"}

def recv_exact(sock, n):
    data = b""
    while len(data) < n:
        chunk = sock.recv(n - len(data))
        if not chunk:
            raise ConnectionError("connection closed")
        data += chunk
    return data

def read_u32(sock, tid, register):
    # one register per request, always 2 words (FC 03)
    sock.sendall(struct.pack(">HHHBBHH", tid, 0, 6, UNIT, 3, register, 2))
    _, _, length, _ = struct.unpack(">HHHB", recv_exact(sock, 7))
    pdu = recv_exact(sock, length - 1)
    if pdu[0] & 0x80:
        raise ValueError(f"register {register}: exception {pdu[1]:02d}")
    time.sleep(0.5)  # KEBA: read no faster than every 0.5 s
    return struct.unpack(">I", pdu[2:6])[0]

with socket.create_connection((HOST, PORT), timeout=3) as s:
    v = {r: read_u32(s, i + 1, r) for i, r in
         enumerate([1000, 1004, 1006, 1008, 1010, 1012, 1020, 1036, 1502])}

print("state      ", v[1000], STATE.get(v[1000], "?"))
print("cable      ", v[1004], CABLE.get(v[1004], "?"))
print("error code ", v[1006], hex(v[1006]))
print("current A  ", [v[r] / 1000 for r in (1008, 1010, 1012)])
print("power W    ", v[1020] / 1000)
print("total kWh  ", v[1036] / 10000)
print("session kWh", v[1502] / 10000)

With KEBA's example values it prints state 4 error, error code 262144 0x40000, currents of 0.645, 1.011 and 0.645 A, 98.661 W and 3.8101 kWh.

Faults seen in practice with KEBA and Modbus TCP

Most problems with the KEBA on Modbus come from deviations from the Modbus standard that KEBA itself documents. The table gives the cause and where it is written.

SymptomCauseRemedySource
No response, timeoutUnit ID 1 instead of 255Set unit ID 255PG V1.09, chapter 2
No response after changing DSW1.3No restartService button about 1 s, or line circuit breakerIH V3.70, 8.1
Error on a block readSeveral registers in one requestEach register on its own, quantity 2PG V1.09, chapter 2
Values shifted by one registerClient counts from 1The frame carries 1000; if your software counts from 1, enter 1001PG V1.09, chapter 2
Exception 02 reading 5004Write registers cannot be readRead 1100 for the maximum currentPG V1.09, chapter 4
KEBA integration and Modbus interfereUDP and Modbus TCP at the same timeChoose one interfacePG V1.09, section 1.4
c-series unreachable on the networkPublic or unusual IP addressAddress from a private rangePG V1.09, section 1.5
Charging starts and stops in turnsFailsafe timer expires because the EMS stops writing 5004 during a pauseKeep writing 5004 cyclically during pauses, timeout well above the cyclePG V1.09, 4.7.4
Phase switch does nothingSecond command within 5 minutesRetry after 5 minutes, check the result in 1552PG V1.09, 4.6
Error group a, red/whiteCharging cable rated 13 A or lessCable rated for a higher currentDiagnostics V1.00, 3.2

KEBA recommends reading no more often than every 0.5 seconds and writing no more often than every 5 seconds. Failsafe only works with a timeout above 0; only write commands to 5004 reset the timer, reads do not. If no grid power may flow when the EMS fails, set 5016 to 0. General Modbus fault patterns are in Modbus exception codes and timeouts, other chargers in EV charger monitoring over Modbus.

Frequently asked questions

What does it mean when the KEBA flashes green slowly?

Ready for operation. When the LED bar flashes green every 3 seconds, the KEBA P30 or P20 is waiting for the charging cable, which is not yet plugged in on both sides. With RFID or a key switch it also means authorisation succeeded. All you need to do is plug in the cable.

What does blue/red/blue/red mean on a KEBA charger?

Residual current. The pattern is error group 5, ERROR_FI: the internal residual current monitoring has tripped, at 6 mA DC or 30 mA AC. Stop charging, switch the charger off for 30 seconds at the line circuit breaker and restart. If it keeps happening with the same vehicle, the vehicle needs a garage.

Why is one segment of the KEBA lit orange?

Commissioning mode. The electrician has set DSW2.8 to ON to test the installation. The old 2016 manual names segment 2, the current operating instructions segment S3. Charging is not possible in this mode; after about 10 minutes the bar shows white/red/red/red.

How do I reset an error on the KEBA P30?

By unplugging. KEBA acknowledges every malfunction as soon as you pull the plug. If that does not help, switch the charger off for 30 seconds at the line circuit breaker. Then install the latest firmware. If the error stays, call the company that installed the charger.

Does my KEBA have Modbus TCP?

Only the P30 c-series from firmware 3.10.16 and the x-series from software 1.11. The series is a character in the product name on the type plate: 2 for c-series, and B, E, H, S or U for x-series. KEBA documents no Modbus TCP for the P20 or the P30 e-, b- and a-series.

Which unit ID does the KEBA P30 need?

255. Over Modbus TCP the KEBA only answers on unit ID 255, on port 502, with function code 03 to read and 06 to write. Every readable register is a UINT32 of two words that you request on its own. A client using the usual unit ID 1 gets no response.

Where is the KEBA manual on the LED signals now?

On the KEBA download page. The KeContact P30 operating instructions V3.51 from January 2026 keep the document number of the old P20/P30 manual and contain the LED table. The blue/red and red/white error codes are now in a separate document, Error indicators & Diagnostics V1.00.