Use Color LCD with ESP in Home Assistant

Опубликовано: 21 Февраль 2026
на канале: kian
8,873
99

#diy #howto #tutorial
In this video, I will show you how to connect and use a color LCD with an ESP microcontroller in Home Assistant. You will learn how to set up the necessary components, write the code, and display various information on the LCD screen, such as temperature, humidity, and more. This tutorial is perfect for beginners who want to add an extra layer of interactivity to their Home Assistant setup.

Invitation Link to join my Exclusive membership:
   / @kian.smarthome  

image:
  - file: "logo kian.png"
    id: logo_kian
    type: RGB565
    resize: 150x100
font:
  - file: "arial.ttf"
    id: arialfont
    size: 20

  - file: "gfonts://Roboto"
    id: roboto
    size: 30

spi:
  clk_pin: GPIO18
  mosi_pin: GPIO23
  miso_pin: GPIO19

color:
  - id: yellow
    red: 100%
    green: 100%
    blue: 0%

  - id: red
    red: 100%
    green: 0%
    blue: 0%

display:
  - platform: st7735
    model: "INITR_18BLACKTAB"
    reset_pin: GPIO13
    cs_pin: GPIO5
    dc_pin: GPIO4
    rotation: 90
    device_width: 128
    device_height: 160
    col_start: 0
    row_start: 0
    eight_bit_color: true
    update_interval: 5s

    lambda: |-
   
       // Print "Subscribe" in top center.
       it.printf(85, 104, id(arialfont), id(red),  TextAlign::TOP_CENTER, "Subscribe");
   
       // Draw the image logo_kian at position [x=10,y=5]
       it.image(10, 5, id(logo_kian));
       // Print "«kian" in middle.
       it.printf(60, 35, id(roboto), id(yellow),  "Kian");

Select Color Website:
https://www.december.com/html/spec/co...

Buy me a Coffee:
https://www.buymeacoffee.com/kian.sma...

#homeassistant #colorlcd #iot #smarthome #homeautomation #automation #wifi #ideas