Questions Community

custom display

pantileionut

Hi, I have several displays with somewhat unusual configurations that I’ve managed to get working in ESPHome. Is it possible to add a display option that allows for a custom configuration loaded via an ESPHome .yaml file?

Discussion 2

Add a comment
hermannw

+1 for this! Basically defining what EPS32 module is used, what display and what IO's the display is connected. I already started to create something for myself but it would be better if it's an official implementation.

MaxGramser Admin

Partly, today. Every screen has an Override YAML (in the ··· menu next to its name): a file loaded after the shared firmware and kept through every update. Starting from the board closest to yours, it can:

  • change the display with id: !extend my_display (model, pins, timings),
  • replace the touch driver (- id: !remove ts_touch, then your own ts_touch),
  • set the size and grid substitutions: PANEL_W, PANEL_H, DISPLAY_DPI, GRID_COLS, GRID_ROWS, LVGL_BUFFER_SIZE,
  • add your own hardware.

Flash a screen yourself has the details. The limits: the board you start from must have the same chip, because the installer checks it; the Override YAML can't change the packages, so not the look (compact for small glass, standard for the rest); and the app knows a screen by its board, so a borrowed board brings that board's picture sizes and options.

What doesn't exist is a generic "custom board" under New screen. For a display that works, the better route is a board file of its own: ADDING_A_BOARD.md is the recipe, and tools/new_board.py --from <nearest board> writes most of it. Send it as a pull request to dev, or post your working YAML as a board request on the wishlist, and everyone with the same display gets it too.

Add your thoughts, a screenshot or a useful link.

Markdown & basic HTML
Paste or drop images · URLs on their own line become previews0 / 10,000
Create your account to join in

We need a verified email address to reach you about your contribution. Your address stays private.

Continue with GitHub

Your draft stays in this tab. Return here after verification.