SmartRack (ESPHome)

SmartRack is an ESP32-S3–based smart rack display and lighting controller built with ESPHome.
It combines LED effects, presence detection, and a live system dashboard powered by Home Assistant.

demo demo

✨ Features

demo

🧱 Hardware


⚙️ Configuration

Substitutions

substitutions:  
  COLOR_TEXT: "0x21A321"
  COLOR_ICON: "0x005300"

ESP32 Setup

Optimizations:


Connectivity


💡 Lighting

LED Ring (Internal)


LED Rack


Backlight

Behavior:


👁 Presence Detection

Using VL53L0X distance sensor over I2C:

Logic:

Debounce:


Behavior

EventAction
Presence ONBacklight ON + LED ring ON
Presence OFFBacklight OFF + LEDs OFF (after delay)

🖥 Display (LVGL) 2.25-inch TFT LCD ST7789 small screen 76*284 module

SPI Pins:


UI Widgets

Each widget:


🎞 Animation


📊 Home Assistant Integration

Sensors used:

Updates:


🔢 Configurable Parameters

Occupancy Fade Time

Controls delay before system turns off after no presence.


📶 Diagnostics


🚀 Getting Started

  1. Install ESPHome
  2. Copy configuration into .yaml
  3. Configure secrets:
wifi_ssid: "your_wifi"
wifi_password: "your_password"