Cbe Ds300 Esphome Panel for ESP32-P4
An ESP32 display project for ESP32-P4.
Parts and sourceBefore you start
Confirm board compatibility and supported firmware targets in the upstream documentation.
Upstream README
CBE DS-300 → ESPHome touch panel
Replace the CBE PC-100 / PC-200 / PC220 control panel of a motorhome with a 10.1" ESP32-P4 touch screen running ESPHome + LVGL and Home Assistant. The CBE DS-300 distribution unit stays where it is, untouched: the new panel plugs into the same 16-pin cable (connector 17) through a 3D-printed plug.
This repo has the reverse-engineered pinout of DS-300 connector 17, the small interface that switches the 12 V loads and the water pump from the screen, the complete firmware, and the 3D-printed parts. Everything here is the setup that runs every day in my van. Nothing is untested theory.
This is my build, shared as a reference, not a kit. Your van will have other lights, other sensors, maybe no Home Assistant at all. What every DS-300 owner has in common is connector 17, and that part is here in full: the pinout, how it was found, the documents, the printed plug and the traps I fell into. Take what you need.
Before: the original panel. The front is a custom one branded Elnagh Prince, the electronics are CBE (PC220 family, made in Trento) on the same DS-300 and connector 17. Small LCD and seven buttons, hard to find and expensive to replace.
After: the new panel where the CBE PC220 used to be (light theme, home page). The Webasto knob on the right is still the original one.
⚠️ You are working on the 12 V system of a vehicle. Read the disclaimer first.
Contents
- What you get
- Vehicle
- How it works
- Connector 17 pinout
- Shopping list
- Step-by-step build
- Firmware
- The screens
- Switching the 12 V from the screen
- Webasto (optional, not done here)
- Related projects
- How the pinout was found
- Gotchas
- Contributing
- Disclaimer
- How this was made
What you get
main 12 V switch (PIN protected) · water pump switch · inside / outside temperature from the original CBE probes · grey-water tank full · 15 lights on a real floor plan (via Home Assistant) · battery, water, gas and grey water with days-left estimates · climate · engine, tyres and spirit level · media player · alarms banner · checklist before leaving · night clock · light / dark theme · everything also in Home Assistant
Vehicle page at night (dark theme). Engine data come from a WiCAN, tyres from a USB TPMS dongle.
Vehicle
| Motorhome | Elnagh Prince 55L (2009), Fiat Ducato X250 base |
| Distribution unit | CBE DS-300/E (Elnagh variant, manual "DS300-EL") |
| Original panel | CBE electronics, PC220 family, with a custom Elnagh Prince front (same connector as PC-100 / PC-200) |
| New panel | Guition JC8012P4A1C, ESP32-P4 + ESP32-C6, 10.1" 1280×800 IPS, capacitive touch |
| Firmware | ESPHome 2026.6.4, LVGL 9 |
Other motorhomes with a CBE DS-300 and a 16-pin panel cable are likely the same, but only the van above has been tested.
How it works
- The CBE panel is only a remote control. The DS-300 holds the relays and fuses; the panel closes a few command lines and reads levels over connector 17.
- The two commands that matter, pin 14 (main 12 V loads: lights, sockets, boiler) and pin 6 (water pump), are active-low: tie them to GND and the DS-300 switches that line on. Nothing else is needed: no pulses, no data protocol.
- The new panel does it with a 2-channel relay module on the NC contacts. At rest (panel off, rebooting, dead) the NC contacts are closed, so loads and pump stay ON. The panel energises a relay only to switch something OFF.
- The relays are driven by a PCF8574 and the probes are read by an ADS1115, both on the I²C connector of the panel (CN4). No GPIO soldering on the board.
- Everything else (lights, battery, water, gas…) comes from Home Assistant over WiFi.
Do I need Home Assistant?
Yes, for most of the screen. I run Home Assistant OS on a Raspberry Pi inside the van, on the van's own WiFi router. The panel talks to it over the ESPHome API; it does not need the internet.
| Works without Home Assistant | Needs Home Assistant |
|---|---|
| main 12 V switch with PIN and pump switch | lights (they must already be in your HA, the panel only calls them) |
| inside / outside temperature (CBE probes) | battery, water, gas, grey-water estimates |
| grey tank full alarm | climate, engine (WiCAN), tyres (TPMS), spirit level, media |
| night screen, theme | clock (time comes from HA), alarms, checklist, the clean shutdown script before the 90 s cut |
Without Home Assistant the panel does not reboot looking for it (reboot_timeout: 0s): the missing values just show --.
Connector 17 pinout
| Pin | Signal | CBE label | Used here | Notes |
|---|---|---|---|---|
| 15 | +12 V service battery | B2 | ✅ power | always on, ~12.7 V (13.5 V on charge) |
| 3 | GND | GND | ✅ | |
| 14 | main 12 V switch | C.GEN | ✅ relay 1 | to GND = ON |
| 6 | water pump switch | C.POMPA | ✅ relay 2 | to GND = ON |
| 9 | grey tank full | REC 3/3 | ✅ ADS1115 A2 | passive probe, measured against pin 11 |
| 11 | probe ground | AGND | ✅ ADS1115 GND | the tank electrode, not ground (open circuit to pin 3) |
| 13 | grey tank ⅓ | REC 1/3 | – | not fitted in my tank |
| 2 / 8 / 7 | fresh water ⅓, ⅔, full | POT 1/3, 2/3, 3/3 | – | water level comes from Home Assistant |
| 5 | alternator D+ | OUT D+ | – | |
| 10 | mains present | S.RETE | – | |
| 12 | engine battery | B1 | – | |
| 4 | outdoor light relay | R.L.EXT | – | |
| 1, 16 | not connected | – |
Geometry: two rows of 8. The row on the key-slot side is 9–16, the other row is 1–8, and columns pair k with k+8. The CBE labels are Italian abbreviations (C.GEN = comando generale, main switch; C.POMPA = comando pompa, pump switch; REC = recupero, grey water; POT = potabile, fresh water; S.RETE = segnale rete, mains present). CBE is an Italian company and uses them on every edition: they come from the official CBE wiring diagram DG01UK01.A (PC-100/PC-200/DS-300UK, the English export version) and were checked on the real van one by one with a multimeter and by switching the relays.
How it was confirmed
- 12.7 V between pin 15 and pin 3 with everything off: that pin pair also tells you the plug orientation.
- Pin 14 straight to pin 3 with a wire: the main relay clicks and the lights work.
- Pin 6 straight to pin 3: the pump relay clicks and water flows.
Shopping list
| Part | Qty | Notes |
|---|---|---|
| Guition JC8012P4A1C (ESP32-P4, 10.1") | 1 | WiFi via the on-board ESP32-C6 |
| 12 → 5 V buck converter, USB-C, 3 A | 1 | I use a potted 8–32 V → 5 V 3 A one. The panel needs the full 3 A |
| Inline mini-blade fuse holder + 2 A fuse | 1 | on the +12 V from pin 15 |
| PCF8574 I²C module | 1 | address 0x20 (A0 A1 A2 to GND) |
2-channel relay module, 5 V coils, opto-isolated, low-level trigger, with a GND · VCC · JD-VCC header |
1 | the jumper between VCC and JD-VCC is removed. Modules with DC+ / DC- screw terminals and a High/Low jumper do not work with a PCF8574 |
| ADS1115 module | 1 | address 0x48 (ADDR to GND) |
| Resistors: 2 × 10 kΩ 1%, 1 × 100 kΩ | 3 | NTC dividers, grey-tank divider |
| JST SH 1.0 mm 4-pin cable, one end loose | 1 | for CN4 of the panel |
| Small perfboard, female header for the ADS1115, Dupont wires | ||
| 16 × Dupont male crimp terminals + wire | for the printed plug | |
| PETG filament, M3 screw + heat-set insert | plug and wall mount |
Step-by-step build
1. Find pin 15 and pin 3
Unplug the old CBE panel. On the 16-pin cable, measure ~12.7 V between pin 15 (+12 V) and pin 3 (GND). If you read 0 V, the battery isolator is open or the B2 fuse is blown: fix that first. If the pins look swapped, the plug is rotated by 180°: +12 V and GND sit in mirrored positions.
2. Print and wire the IDC16 plug
The cable from the DS-300 ends in a female 2×8 IDC socket. hardware/idc16-plug/idc16_plug.stl is a male shroud for it: crimp Dupont male terminals on the wires and push them in from the back, lance facing outwards, until they click. A zip tie over the back holds the socket against vibration.
![]() |
![]() |
The printed plug: the key slot on the shroud matches the bump of the IDC socket, so it only goes in one way.
Only six wires are needed (pins 15, 3, 14, 6, 9, 11). I wired all sixteen, for future use. The wire colours in the pinout picture are the ones of this plug, not of the van's cable.
Measure your IDC socket before printing: the parameters are at the top of idc16_plug.py (FreeCAD, freecadcmd idc16_plug.py regenerates the STL and STEP).
3. Wire the interface
Overview: power, the two relays on pins 14 and 6, the I²C bus and the grey-tank probe.
- Power: pin 15 → 2 A fuse → buck IN+, pin 3 → buck IN−. The buck's USB-C goes to the panel.
- 5 V for the relay coils: cut the USB-C cable open and tap red (5 V) and black (GND) towards the relay module's JD-VCC and GND. Re-join all four wires towards the panel.
- I²C bus from CN4 of the panel (
GND · 3V3 · SCL · SDA, follow the silkscreen labels, not the wire colours) to the PCF8574, the ADS1115 and the relay module (VCC = 3.3 V and GND only, the inputs side). - Remove the VCC–JD-VCC jumper on the relay module. With the jumper on and VCC at 5 V, the 3.3 V "high" of the PCF8574 does not fully turn the opto off and the relay can stay on.
- PCF8574: A0, A1, A2 to GND (address 0x20). P0 → IN1, P1 → IN2.
- Relay 1: COM → pin 3 (GND), NC → pin 14. Relay 2: COM → pin 3, NC → pin 6. Leave NO free.
- ADS1115: ADDR to GND with a wire (floating = random address).
- A0 and A1: the two original CBE NTC probes (2 wires each, no polarity; they reach the panel directly, not through connector 17). Divider: 3V3 → 10 kΩ 1% → A0 → NTC → GND. My probes measure B = 3950, R25 = 9.2 kΩ.
- A2: grey tank full. 3V3 → 100 kΩ → A2 → pin 9, and pin 11 (AGND) → ADS1115 GND with its own wire. Without it the probe has no return path.
I put the ADS1115, its resistors and the header strips on a small perfboard, one bus column per signal; the PCF8574 and the relay module stay outside on Dupont wires. These are the drawings I built it from:
The probe circuits on the ADS1115: two NTC dividers and the grey-tank probe with its 100 kΩ pull-up. A3 (grey ⅓) is drawn but not fitted in my tank.
Perfboard layout, component side, holes A–X × 01–18. Grey = bare wire under the board, orange = jumper on top. E11/E17 are left over from a Webasto input that is no longer used (its R5 has been removed).
Every Dupont cable, one per row: what goes where, with the perfboard coordinates. Steps 1–5 on the bench, 6–9 in the van.
The same connections drawn where the parts actually sit.
![]() |
![]() |

Top: the final perfboard, component side (ADS1115, divider resistors, female headers for the Dupont wires) and solder side (bus columns as bare wire). Bottom: back of the Guition board, CN4 is the small 4-pin connector at the bottom (the module boxes in this older picture are not up to date: follow the wiring diagram above).
Before plugging in, with the relay module powered and the PCF8574 at rest: relay 1 NC must be closed (continuity between COM and NC).
4. Mount the panel
hardware/display-mount/ is a two-part wall mount: a plate screwed to the six M2.5 bosses on the back of the display, and a wall bracket that covers the old panel cut-out (210 × 75 mm) with a 10° tilt. The plate hangs on French cleats and one M3 screw from below into a heat-set insert locks it. Print in PETG. Parameters and dimensions are in display_mount.py.
Rest screen with the clock, after 30 s without touches.
Firmware
firmware/panel-p4.yaml is a single ESPHome file (~3800 lines, LVGL). Labels on the screen are in Italian (my van); code comments are in English. Some identifiers keep Italian names (utenze = 12 V loads, pompa = pump, grigie = grey water).
pip install esphome==2026.6.4
cp firmware/secrets.yaml.example firmware/secrets.yaml # fill it in
esphome compile firmware/panel-p4.yaml
esphome upload firmware/panel-p4.yaml --device <panel-ip> # OTA, after the first USB flash
esphome logs firmware/panel-p4.yaml --device <panel-ip>
- First flash over USB: hold BOOT while plugging the USB-C cable, otherwise the web flasher "succeeds" without writing and the Guition factory demo stays on.
- Secrets: WiFi, API key, OTA password, the 6-digit PIN asked before switching the 12 V, and the Home Assistant URL (for the album cover).
- Home Assistant entities: the panel reads about 90 entities (lights, battery, water, gas, climate, tyres, engine…), listed in the
sensor:/text_sensor:/binary_sensor:sections. Replace theentity_ids with yours. A missing entity does not crash anything: the value shows--. - Hardware entities exposed to Home Assistant: "Utenze 12V" (12 V loads, relay 1), "Pompa acqua" (water pump, relay 2), "Temp interna / esterna (sonda CBE)" (inside / outside temperature), "Grigie piene" (grey tank full), plus the
Reset utenze 12Vbutton (reset 12 V loads, OFF → 3 s → ON). - Touch driver:
firmware/components/gsl3680is the GSL3680 component from kvj/esphomejd9365_gsl3680, vendored with a small patch for ESPHome 2026.x. - Self-check of the helper functions (autonomy estimates):
c++ -std=c++17 tools/test_ui_helpers.cpp -o /tmp/t && /tmp/t. - Floor plan:
firmware/images/plan_{dark,light}.pngis the Elnagh Prince 55L. Draw your own and move the light buttons in thepage_homesection.
The screens
Design mockups of the UI (the firmware follows them; the photos above are the real thing).
![]() |
![]() |
| Home: floor plan with the lights, resources, inside temperature, scenes | Same page, light theme (switched by a lux sensor in Home Assistant) |
![]() |
![]() |
| Resources: battery, water, gas, grey water, days left, 3-day chart | Climate: air conditioner, fridges, Webasto status |
![]() |
![]() |
| Vehicle: engine, tyres, spirit level, last trip, warning lights | Night screen: dim amber clock |
Switching the 12 V from the screen
The main switch cuts the lights, the 12 V sockets, the boiler, and in my van also the Raspberry Pi with Home Assistant and the router. So:
- A PIN is asked both to switch off and to switch on: a hand on the screen must not black out the camper.
- Switching off takes 90 s: the panel first calls a Home Assistant script (
script.camper_spegni_server, "switch off server") that shuts down the server and the router cleanly, then cuts the line. A big countdown stays on screen.
![]() |
![]() |
| Countdown before the cut ("Spegnimento in corso" = switching off) | With the 12 V off, any touch on a page shows this: "Utenze 12V spente" = 12 V loads off, "Accendi le utenze" (switch on) opens the PIN pad |
- The panel itself runs from B2 before the main relay, so it stays on with the loads off and can switch them back on.
- Fail-safe by design: no panel = relays at rest = everything on. A crash can never leave the van dark.
The water pump switch has no PIN: it is meant for repairs or a leak. Note that anything powered from the pump line (in my van, the ESP32 of the water tank sensor) goes off with it.
Webasto (optional, not done here)
The Climate page shows the Webasto state from a Home Assistant entity (binary_sensor.webasto_in_funzione, "Webasto running"); it shows -- if you don't have one.
Driving the heater from this panel was planned (relay 2 in parallel with the button of the MultiControl MC04/05 knob, status read from the spare plug behind it) but was not finished on purpose: a complete reverse engineering of the Webasto MC04/05 panel is under way and will be published as a separate repository, with an ESP32 that replaces the knob. I will link it here when it is out.
Related projects
The DS-300 knows nothing about the engine, the tyres or the fridge. In my van these projects of mine fill the gaps, all feeding Home Assistant:
- fiat-ducato-x250-wican: decoded body-CAN of the Fiat Ducato X250 read with a WiCAN OBD dongle: engine running, RPM, coolant, fuel, odometer, doors, lights, parking brake, trip computer.
- usb-tpms-home-assistant: the cheap 433 MHz "USB TPMS for Android" kits read directly in Home Assistant: pressure and temperature of every tyre.
- vevor_fridge_ble2mqtt: an ESP32 bridging the Bluetooth of Vevor / Alpicool compressor fridges to MQTT: temperature, set point and on/off from Home Assistant and from the panel's floor plan.
- Webasto MC04/05: coming as its own repo (see above).
How the pinout was found
CBE does not publish the pin-by-pin pinout of connector 17: the manual only says it goes to the panel. This is how it was put together.
- The manual. The CBE PC-100 / PC-200 / DS-300 manual (Italian, copy found here) describes every other connector of the DS-300 and what the unit does by itself (battery separator, low-voltage cut-off, simulated D+).
- The forums. Other owners had the same question: camperonline.it (Italian) and hobby-wohnmobilforum.de (German).
- The wiring diagram. The official CBE diagram DG01UK01.A (PC-100 / PC-200 / DS-300, found through the Internet Archive) names every pin: C.GEN, C.POMPA, B2, AGND… It does not say which row is which.
- The multimeter. On the van, with the CBE panel unplugged: 12.7 V between pin 15 and pin 3 fixed the geometry (key-slot row = 9–16). Then pin 14 and pin 6 were shorted to pin 3 one at a time, and the main relay and the pump relay of the DS-300 clicked.
- The probes. Grey-tank "full" was checked by bridging the two probe wires at the tank and watching the reading change on the panel.
The CBE documents are not redistributed here (they belong to CBE). If a link dies, search for the titles above.
Gotchas
- No resistor in series. A 1 kΩ "to be safe" between pin 14 and GND leaves about 1 V on the DS-300 relay coil: nothing clicks, and you think the pin is wrong. Use a straight wire (or the relay contact).
- B2 and GND are mirrored. A plug rotated by 180° swaps them and every measurement looks wrong. Check 12.7 V on pin 15 first.
- No low-voltage cut-off any more. The CBE panel switched the loads off below ~10 V; the DS-300 does not. Watch the battery in Home Assistant (the panel shows a "battery below 30%" alarm).
- Pin 11 (AGND) is not ground. It is the common electrode in the grey tank (open circuit to pin 3). The probe needs a dedicated wire from pin 11 to the ADS1115 GND.
- A broken Dupont looks like a dead chip. If a relay doesn't respond, bridge IN to GND by hand: if it clicks, check the wire before blaming the PCF8574.
- ESP32-C6 WiFi: after a USB flash the C6 co-processor is not reset. If WiFi does not come back, remove power for a few seconds.
- Check the build actually runs. "OTA successful" is not enough: read
ESPHome version … compiled on <date>in the logs. - Use a real 3 A supply for the panel: the 10.1" backlight draws a lot at full brightness.
Contributing
Tested this on another DS-300, found a pin that's different on your camper, or wired the probes this repo leaves out (fresh-water levels, D+, mains present)? Please share it. Open an issue or a pull request; see CONTRIBUTING.md.
If this saved you a few evenings with a multimeter, you can buy me a coffee.
Disclaimer
This is a hobby project, shared for information only, with no warranty of any kind (see LICENSE).
- Working on the electrical system of a vehicle is at your own risk. A short on B2 can melt wires or start a fire: fuse every wire that leaves +12 V, close to the source. I accept no liability for any damage to vehicles, equipment, data or people.
- The pinout comes from one vehicle. Measure yours before connecting anything.
- The original panel switched the loads off at low voltage; this setup does not. Look after your battery.
- Check that modifications are allowed by your local rules, insurance and warranty.
- CBE, Elnagh, Webasto, Fiat, Ducato, Guition, Espressif and Home Assistant are trademarks of their respective owners. This project is not affiliated with or endorsed by any of them. CBE manuals and diagrams are not redistributed here.
How this was made
I built this together with an AI coding agent (Claude Code by Anthropic). The agent searched the CBE documentation and the forums for the pinout, planned the measurements, wrote the firmware and the CAD scripts, flashed the panel over the network, and drafted this documentation.
I did every measurement, every relay click and every wire by hand on the real van, and nothing is listed as working unless I saw it working there. If you find a mistake, please open an issue.











