
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.
| Signal | Meaning | What you do | Source |
|---|---|---|---|
| Dark | No supply voltage or a defect | Check and switch on the RCD and line circuit breaker; if it stays dark, call the service partner | V3.20, V3.51 |
| Green, flashes slowly every 3 s | Ready for operation, charging cable not yet plugged in on both sides. With RFID or key switch: authorised | Plug in the charging cable | V3.20, V3.51 |
| Blue, flashes every 3 s | Waiting for authorisation, for example an RFID card | Hold the card to the reader | V3.51 |
| Briefly orange after plugging in (V3.20), green flash after plugging in (V3.51) | Waiting for locking, the plug is being locked | Wait | V3.20, V3.51 |
| Orange, about 5 s | Self-test when plugging in and when starting up | Wait | V3.20, V3.51 |
| Blue and orange | The charger is starting up | Wait | V3.51 |
| Green, continuous | Ready for charging, cable plugged in on both sides and locked | The vehicle starts charging; check the charge timer in the vehicle | V3.20, V3.51 |
| Green, flashes every second | Charging in progress (Mode 3 to EN 61851) | Nothing | V3.20, V3.51 |
| Green, goes out briefly every 3 s | Waiting for unplugging, charging finished | Unplug the cable | V3.20 |
| Green, flashes every 3 s after charging | Charging finished, socket released | Unplug the cable | V3.51 |
| Orange, flashes slowly every 5 s | Out of service, usually overtemperature; charging resumes after cooling down | Wait, shade the charger and vehicle from direct sun | V3.20, V3.51 |
| Orange, flashes slowly | Software update running, on the x-series up to an hour | Wait | V3.51, Diagnostics V1.00 |
| Segment 2 orange (V3.20), segment S3 orange (V3.51) | Commissioning mode | The electrician sets DSW2.8 to OFF and restarts | V3.20, V3.51 |
| Segment S4 orange | RFID client card being taught in, hold the master card again | Hold the master card to the reader | V3.51 |
| Red, flashes | Malfunction | Unplug, 30 s without power, update; see further down | V3.20, V3.51 |
| Blue/red | Error code from the power unit | See the group table below | V3.20, Diagnostics V1.00 |
| Red/white | General error code | See the group table below | V3.20, Diagnostics V1.00 |
| Blue/orange at start-up | Firmware version | See the firmware section further down | Diagnostics 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
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
Locking
The charger locks the plug in the socket and then flashes green every 3 seconds again.
- 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
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
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.
- 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.
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 S4 | Group | KEBA name | Cause | What to do | Who |
|---|---|---|---|---|---|
| blue, blue, blue, red | 1 | ERROR_SCHUETZ | Switch-on test failed, the contactor does not switch on | Have the charger repaired or replaced | Service partner |
| blue, blue, red, blue | 2 | ERROR_VOLTAGES | Wrong supply voltage: phase 1 below 160 V, a phase above 285 V, or the meter measured nothing valid for 10 s | Have the mains connection checked; if the error stays, repair or replace | Electrician |
| blue, blue, red, red | 3 | ERROR_CURRENT | The vehicle draws more than 120 % of the permitted current for at least 8 s on a phase. Manual V3.20: error 4003 | Compare the DIP setting with the vehicle's maximum charging current; if the vehicle shows more current than its data sheet, garage | Electrician, garage |
| blue, red, blue, blue | 4 | ERROR_PILOT | Unexpected signal from the vehicle on the pilot line | Check cable and connector for damage, replace faulty parts | You, replacement by electrician |
| blue, red, blue, red | 5 | ERROR_FI | Internal 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: garage | You, then garage |
| blue, red, red, blue | 6 | ERROR_METER, ERROR_LED | No communication with the energy meter or LED controller, or a meter configuration error | Check the DIP switches; if the error stays, replace the charger | Electrician |
| blue, red, red, red | 7 | ERROR_CFB | Contactor feedback not OK, possibly a welded contactor | 30 s off, restart; if the error stays, repair. Firmware before 3.06: update | You, then service partner |
| red, blue, blue, blue | 8 | ERROR_CONFIG | Internal system configuration is faulty | Replace the charger | Service partner |
| red, red, blue, blue | c | ERROR_PERSIST | An earlier error persists despite the automatic error reaction; the display alternates with the triggering error | KEBA support | Service partner |
| red, red, blue, red | d | ERROR_CON | Internal error | KEBA support | Service partner |
| red, red, red, blue | e | ERROR_STATE | The charge controller requested an illegal state change | 30 s off, restart; if the error stays, repair | You, then service partner |
| red, red, red, red | f | ERROR_SYSTEM | No communication with the charge controller or a firmware error | Disconnect the vehicle, restart. After an update: download it again; on e-, b- and c-series a deep firmware update | Electrician |
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 S4 | Group | KEBA name | Cause | What to do | Who |
|---|---|---|---|---|---|
| white, white, white, red | 1 | AUTARK_PLUG_LOST | Plug pulled out during charging or not properly locked | Unplug, plug in again, watch the locking | You |
| white, white, red, white | 2 | AUTARK_PLUG_UNDEF | Plug not recognised | Use a standard-compliant plug | You |
| white, white, red, red | 3 | AUTARK_OVERHEAT | Permitted temperature inside the charger exceeded | Unplug, let it cool down; if it happens often, check the mounting location | You, then electrician |
| white, red, white, white | 4 | AUTARK_LOCK_FAILED | Plug could not be locked | Push the plug in fully, press it upwards, plug in quickly; otherwise check the socket for dirt, plug and cable for damage | You |
| white, red, white, red | 5 | AUTARK_OHMIC_LOAD | No vehicle detected but an unauthorised load | Remove the load, restart charging | You |
| white, red, red, red | 7 | AUTARK_IBN_MODE | Commissioning mode; also appears when the test window of about 10 minutes has expired | Check DSW2.8, restart | Electrician |
| red, white, white, white | 8 | AUTARK_SHORT_CIRCUIT | Short circuit detected. Manual V3.20: plug supplies an invalid state, cable hardware fault | Check cable and plug, replace the faulty part | You, replacement by electrician |
| red, white, white, red | 9 | AUTARK_CONFIG_ERR | Configuration error | Check the DIP switches, restart | Electrician |
| red, white, red, white | a | AUTARK_13A_ERROR | Charging cable rated 13 A or less, which the charger does not accept | Use a cable rated for a higher current | You |
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.
| Code | Group | Meaning |
|---|---|---|
| 0x9001 | 1 | Current monitoring did not enable switching on the contactor |
| 0xa001 | 1 | The charge controller did not enable switching on the contactor |
| 0xc001 | 1 | Contactor not on despite activation, fault in the control or the contactor |
| 0x8005 | 5 | Residual current monitoring self-test failed at restart |
| 0x8015 | 5 | Self-test failed after an error recovery (shown only with firmware 3.06) |
| 0x8025 | 5 | Self-test failed when plugging in, visible as 3 s orange after plugging in |
| 0x8035 | 5 | Check immediately before switching on the contactor failed |
| 0x8045 | 5 | Timeout while switching on the contactor |
| 0x8065 | 5 | Residual current within 5 s of switching on; unplug the cable |
| 0x8075 | 5 | Limit exceeded during charging: 6 mA DC or 30 mA AC |
| 0x8006 | 6 | Communication with the energy meter disturbed |
| 0x8046 | 6 | Energy meter configuration error, possibly wrong calibration data |
| 0x8056 | 6 | Communication with the LED controller disturbed; not critical right after an update |
| 0x8086 | 6 | The energy meter supplies no measured values |
| 0xa006 | 6 | Link 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
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
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
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:
| Problem | Possible cause | Remedy |
|---|---|---|
| LED bar stays dark | No supply voltage | Check and switch on the RCD and line circuit breaker |
| LED bar stays dark | Charger defective | Service partner |
| Charging does not start | Plug not inserted correctly | Unplug, plug in again |
| Charging does not start | Steps not done in the right order | Follow the sequence above |
| Charging does not start | Plug or socket dirty or damaged at the locking area | Clean it or have it replaced |
| Charging does not start | Vehicle needs no energy, has a fault or a later start time | Check the vehicle |
| Charging does not start | No enable from an external controller (grid operator, PV system) | Check the enable at that controller |
| Vehicle not full, charging takes longer | Current reduced because of temperature, by the vehicle or the charger | Shade from direct sun; look at the plug for dirt, wear or damage |
| Plug cannot be removed | The vehicle has not ended the charge | End the charge as the vehicle manual describes |
| Plug cannot be removed | Tension on the cable keeps the plug latched | Push 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 position | Series | Modbus TCP |
|---|---|---|
| 0 | e-series | No |
| 1 | b-series | No |
| 2 | c-series | Yes, from firmware 3.10.16 |
| 3 | a-series | No |
| B, E, H, S, U | x-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.
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.
| Address | Name | Type | Unit | R/W | Description |
|---|---|---|---|---|---|
| 1000 | Charging state | uint32 | - | R | 0 start-up to 5 interrupted |
| 1004 | Cable state | uint32 | - | R | 0, 1, 3, 5 or 7 |
| 1006 | Error code | uint32 | - | R | 0 = no error, otherwise read as hex |
| 1008 | Current L1 | uint32 | mA | R | 645 = 0.645 A |
| 1010 | Current L2 | uint32 | mA | R | 1011 = 1.011 A |
| 1012 | Current L3 | uint32 | mA | R | Measured current phase 3 |
| 1014 | Serial number | uint32 | - | R | Decimal, such as 18416854 |
| 1016 | Product type | uint32 | - | R | Digit-coded, such as 304111 |
| 1018 | Firmware | uint32 | - | R | Read as hex: 0x30A0D00 = 3.10.14 |
| 1020 | Active power | uint32 | mW | R | 98661 = 98.661 W |
| 1036 | Total energy | uint32 | 0.1 Wh | R | 38101 = 3.8101 kWh |
| 1040 | Voltage L1 | uint32 | V | R | 230 = 230 V |
| 1042 | Voltage L2 | uint32 | V | R | Measured voltage phase 2 |
| 1044 | Voltage L3 | uint32 | V | R | Measured voltage phase 3 |
| 1046 | Power factor | uint32 | 0.1 % | R | 928 = 92.8% |
| 1100 | Max charging current | uint32 | mA | R | Current maximum charging current |
| 1110 | Max hardware current | uint32 | mA | R | Lowest of DIP, cable, temperature |
| 1500 | RFID card | uint32 | - | R | First 4 bytes of the UID, as hex |
| 1502 | Session energy | uint32 | 0.1 Wh | R | 165 = 16.5 Wh |
| 1550 | Phase switch source | uint32 | - | R | 0 none, 3 Modbus TCP |
| 1552 | Phase switch state | uint32 | - | R | V1.09: 0 one phase, 1 three phases |
| 1600 | Failsafe current set | uint32 | mA | R | Last value set |
| 1602 | Failsafe timeout set | uint32 | s | R | Last value set |
| 5004 | Set charging current | uint16 | mA | W | 6000 to 63000 |
| 5010 | Set energy limit | uint16 | 10 Wh | W | 1 = stop after 10 Wh |
| 5012 | Unlock plug | uint16 | - | W | 0; only in suspended state |
| 5014 | Enable charger | uint16 | - | W | 0 disable, 1 enable |
| 5016 | Failsafe current | uint16 | mA | W | 0, or 6000 to 32000 |
| 5018 | Failsafe timeout | uint16 | s | W | 0 off, 5 to 600 |
| 5020 | Persist failsafe | uint16 | - | W | 1 = store permanently |
| 5050 | Phase switch source | uint16 | - | W | 0 to 4, 3 = Modbus TCP |
| 5052 | Trigger phase switch | uint16 | - | W | 0 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.
No CRC: Modbus TCP relies on the TCP checksum.
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.
| Symptom | Cause | Remedy | Source |
|---|---|---|---|
| No response, timeout | Unit ID 1 instead of 255 | Set unit ID 255 | PG V1.09, chapter 2 |
| No response after changing DSW1.3 | No restart | Service button about 1 s, or line circuit breaker | IH V3.70, 8.1 |
| Error on a block read | Several registers in one request | Each register on its own, quantity 2 | PG V1.09, chapter 2 |
| Values shifted by one register | Client counts from 1 | The frame carries 1000; if your software counts from 1, enter 1001 | PG V1.09, chapter 2 |
| Exception 02 reading 5004 | Write registers cannot be read | Read 1100 for the maximum current | PG V1.09, chapter 4 |
| KEBA integration and Modbus interfere | UDP and Modbus TCP at the same time | Choose one interface | PG V1.09, section 1.4 |
| c-series unreachable on the network | Public or unusual IP address | Address from a private range | PG V1.09, section 1.5 |
| Charging starts and stops in turns | Failsafe timer expires because the EMS stops writing 5004 during a pause | Keep writing 5004 cyclically during pauses, timeout well above the cycle | PG V1.09, 4.7.4 |
| Phase switch does nothing | Second command within 5 minutes | Retry after 5 minutes, check the result in 1552 | PG V1.09, 4.6 |
| Error group a, red/white | Charging cable rated 13 A or less | Cable rated for a higher current | Diagnostics 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.












