Cheap Yellow Display Home Assistant panel: a touchscreen dashboard in one ESPHome YAML file
Turn a Cheap Yellow Display into a Home Assistant touchscreen panel with ESPHome + LVGL — one YAML file, no soldering, verified with ESPHome 2026.10.2.

What it is
A Home Assistant touchscreen control panel built from one Cheap Yellow Display board and one ESPHome YAML file — buttons toggle your lights and switches, a tile shows a live sensor, no soldering and no C code.
What you need
- ESP32-2432S028R Cheap Yellow Display the 2.8in ILI9341 revision — check the CYD buyer guide before ordering
- USB data cable micro-USB on the original revision; must carry data to flash
- Home Assistant already running on your network — not something you buy for this page
How hard
Beginner if Home Assistant already runs at home: the whole build is editing three entity IDs in one YAML file and flashing it. Plan about an hour the first time (MCU Atlas planning estimate — the ESPHome add-on does the heavy lifting).
Key Facts
- Board: ESP32-2432S028R Cheap Yellow Display — ESP32-WROOM-32, 2.8in 240x320 ILI9341 (on most units), XPT2046 resistive touch
- Firmware: one ESPHome YAML file, compile-verified with ESPHome 2026.10.2; LVGL 9 ships inside ESPHome's lvgl component, so no libraries to install by hand
- Two-way control: buttons call Home Assistant's light.toggle / switch.toggle, and imported entity states set the on-screen button colors to the real state
- No soldering, no wiring — display and touch sit on two separate SPI buses (display: 14/13/12, CS 15, DC 2; touch: 25/32/39, CS 33, IRQ 36), all encoded in the YAML
- Backlight on GPIO21 with hardware PWM, so the panel itself appears in Home Assistant as a dimmable light
- Firmware MIT; pin map and touch calibration from a hardware-tested 2432S028R config, cross-checked against the rzeldent Sunton board matrix
Which variant do you have?
One model number, several boards. The ESP32-2432S028R ships in at least three hardware revisions that matter to this firmware: the classic single-micro-USB board with an ILI9341 panel (what this YAML targets), a USB-C revision with a different ILI9341 init sequence, and dual-port USB-C plus micro-USB boards that carry an ST7789 driver instead — firmware built for ILI9341 shows a blank or shifted image on those. Check the USB ports in the listing photo before you order, and if the screen stays white, run a TFT identifier (readID) sketch and trust its output over the listing. Our Cheap Yellow Display buyer's guide decodes every variant.
About This Project
A touchscreen wall panel used to mean a commercial product or a phone taped to a wall. This build makes one from the Cheap Yellow Display (CYD), the ESP32-2432S028R board with a built-in 2.8in resistive touchscreen: two big on-screen buttons toggle a light and a switch in Home Assistant, a tile shows a live sensor value, and the button colors follow the real state of your entities — not just what you last tapped. Everything between the tap and the light bulb stays on your own network. The difficulty is beginner if Home Assistant already runs somewhere in your house: there is no soldering, no wiring at all, and no C code — the whole firmware is one ESPHome YAML file. If you do not run Home Assistant yet, start there first (a Raspberry Pi or any always-on small box will do); the panel is only as useful as the home it controls. Hardware-wise the complete parts list is one board and one USB data cable, roughly the cost of a takeout dinner for two. The heart is the ESP32-2432S028R Cheap Yellow Display 2.8in touch — an ESP32-WROOM-32 with a 240x320 ILI9341 panel on most units and an XPT2046 resistive touch layer. Add a USB data cable (the original board revision uses micro-USB; charge-only cables cannot flash it), a 2.4 GHz Wi-Fi network, and your Home Assistant server. No microSD card is needed for this build. The bigger 3.5in sibling (ESP32-3248S035) works as an alternative if you want more screen, but note it uses a different display driver — this YAML targets the 2.8in ILI9341 board specifically and would need its display section changed. There is no wiring section in the classic sense: display, touch, backlight LED, speaker amplifier and microSD slot are all soldered onto the board. What the firmware encodes, and what confuses people who port plain display-sketch code, is that the CYD puts its display and its touch controller on two different SPI buses. The display hangs off SPI pins GPIO14 (clock), GPIO13 (MOSI) and GPIO12 (MISO), with chip select on GPIO15 and data/command on GPIO2. The XPT2046 touch controller sits on its own bus — GPIO25 (clock), GPIO32 (MOSI), GPIO39 (MISO) — with chip select on GPIO33 and touch-interrupt on GPIO36. The backlight LED is driven from GPIO21 with hardware PWM, which is why the panel appears in Home Assistant as a dimmable light. You never touch any of this with a soldering iron; it is all in the YAML, but knowing the map turns the config from magic into sense. The complete firmware is a single YAML file you can download from the links below (cyd-ha-panel.yaml, MIT). It targets the esp32dev board on the Arduino framework and was compile-verified with ESPHome 2026.10.2; there are no libraries to install by hand — LVGL 9 ships inside ESPHome's lvgl component, which is the exact-library-versions question answered: the version is ESPHome's. Three substitutions at the top of the file name the Home Assistant entities to control (a light, a switch, a temperature sensor), and your Wi-Fi credentials plus keys go in a separate secrets.yaml, so the file you share never contains your password. Tapping a button calls Home Assistant's light.toggle or switch.toggle service; entity states flow back through imported Home Assistant sensors and set each button's checked state, so if a light is switched at the wall, the panel catches up. Two honesty notes: the pin map and the XPT2046 touch calibration constants come from a hardware-tested 2432S028R ESPHome config (the SmartEnergyMeter dashboard by Simone7121), cross-checked against the rzeldent Sunton board matrix; our own verification is a clean compile, and the draw buffer is set to 25% because the classic ESP32 has no PSRAM, per ESPHome's recommendation. A white or blank screen almost always means a variant mismatch: boards sold as ESP32-2432S028 exist with an ST7789 driver and different USB ports, and firmware built for ILI9341 shows a blank or shifted image on them. Run a TFT identifier sketch that prints the driver's readID over serial and trust that output, not the listing. If touch works but lands in the wrong place, the calibration constants are per-panel starting points — recalibrate, and remember the resistive panel likes a firm press or a fingernail, not a feather touch. If buttons fire but never show their state, check the entity IDs in the substitutions (Developer Tools, States, in Home Assistant) and that the device is adopted in Home Assistant's ESPHome integration. If the board crashes or bootloops once you add more widgets, you have outrun the classic ESP32's RAM — keep the UI lean and the buffer at 25%. ESPHome will also warn that GPIO2, GPIO12 and GPIO15 are strapping pins; on this board that is by design, and the warnings are expected. A panel that cannot find Wi-Fi falls back to its own hotspot with a captive portal to re-enter credentials. And if flashing simply fails, suspect a charge-only USB cable first — it is the most common cause. This panel is the second rung on our CYD ladder: the first-project walkthrough gets a hello-touch demo running, and this page turns the board into a home-control surface. The next touchscreen project in the series turns the same board into a pocket music player — ShuffleCYD, a microSD MP3 player with Bluetooth output and a touch album browser. When you outgrow two buttons, the same YAML grows with you: every added control is another button block, and the community hub collects where people have taken this board next.
Source & Attribution

Illustration
How to Build It
Parts Needed
- ESP32-2432S028R Cheap Yellow Display (2.8in ILI9341 revision — see the variant note)
- USB data cable (micro-USB on the original board revision)
- Home Assistant already running on your network
- 2.4 GHz Wi-Fi
Steps
- 1
Check your board revision
Look at the USB port (micro-USB on the original 2432S028R revision, USB-C on later ones) and, if the screen ever shows blank after flashing, run a TFT identifier sketch that prints the driver's readID over serial. This firmware targets the 2.8in 240x320 ILI9341 panel; ST7789 revisions sold under the same name need a different display model in the YAML.
- 2
Install ESPHome
The easiest route is the ESPHome add-on in Home Assistant (Settings, Add-ons). From a computer instead: install the esphome command-line tool with pip inside a Python virtual environment. No Arduino IDE and no libraries — LVGL 9 ships inside ESPHome's lvgl component.
- 3
Create the config files
Download cyd-ha-panel.yaml and secrets-example.yaml from the links on this page. Rename the second to secrets.yaml and fill in your Wi-Fi name and password, an OTA password, and an API key: any 32-byte base64 string works (the Home Assistant add-on shows one when you adopt a device, or generate one with one line of Python).
- 4
Point it at your entities
At the top of cyd-ha-panel.yaml, three substitutions name what the panel controls: light_entity, switch_entity and temp_entity. Replace the defaults with your own entity IDs — find them in Home Assistant under Developer Tools, States (for example light.desk_lamp or sensor.living_room_temperature).
- 5
Flash over USB
Plug the board in with a data-capable USB cable and run esphome run cyd-ha-panel.yaml (or use the add-on's plug-in and Adopt). The first flash goes over USB; every later update goes over Wi-Fi. The board is declared as an esp32dev on the Arduino framework, so the same file works for CLI and add-on.
- 6
Add it to Home Assistant
Home Assistant discovers the panel automatically once it joins Wi-Fi: adopt it in Settings, Devices, ESPHome integration. The backlight shows up as a dimmable light entity (it is on GPIO21 with hardware PWM), and the two on-screen buttons are live: tapping one calls light.toggle or switch.toggle, and the imported entity states set each button's green checked color to the real state.
- 7
Make it yours
Every new control is another button block in the lvgl section — copy one, give it a new id, text and entity, and the panel grows. Keep the draw buffer at 25% (the classic ESP32 has no PSRAM) and the UI lean; recalibrate the XPT2046 touch constants if taps land off-target. A separate CYD internet-radio build is next in this series.
Bill of Materials
Parts list
2 parts · 2 linked
Heads up: some Buy links are affiliate links. If you buy through one, MCU Atlas may earn a small commission at no extra cost to you. It never changes which parts we list. How this works
1× ESP32-2432S028R Cheap Yellow Display 2.8in touch
≈$15–48 per board delivered (checked 2026-11-13 — the two-pack route lands near the low end; listing notes on the CYD community hub page). Check the USB port in listing photos: micro-USB on the original revision, USB-C on newer ones.
Not included: Home Assistant server (any always-on box you already run, e.g. a Raspberry Pi), microSD card — not used by this build
Learn
Docs & guides
Read these before you buy. These pages explain things; they don't sell anything.
- Complete firmware: cyd-ha-panel.yaml (MIT)The full ESPHome YAML this page documents — compile-verified with ESPHome 2026.10.2Docs
- secrets-example.yamlTemplate for the Wi-Fi credentials and keys the firmware expects beside itDocs
- ESPHome LVGL component docsEvery widget, style and action used in the YAML, from the sourceDocs
- Your first project on a Cheap Yellow DisplayThe rung below this page — unbox a CYD and get a hello-touch demo runningDocs
- Which Cheap Yellow Display should you buy?All the CYD variants decoded before you order the wrong oneDocs
- Home Assistant's ESPHome integrationHow the panel appears in, and is adopted by, Home AssistantDocs
Related Projects




