Control a light bulb with an Encoder connected to ESPHome

Опубликовано: 28 Июнь 2026
на канале: La Choza Digital
3,718
236

In this video tutorial I will show you how to use a Rotary Encoder with ESPHome and with it
Control the brightness of a Home Assistant bulb.

To do this we will use ESPHome's own component to count the steps.

We will also use the button included in many encoders to turn the light on and off.


ESPHome tutorial from 0:    • ¿Que son ESP8266, ESP32 y EspHome? Explica...  
Buttons in ESPHome:    • Usa botones en EspHome y Home Assistant co...  
Automation Tricks:    • 8 trucos, con ejemplos, para mejorar tus a...  
ESPHome Encoder Component: https://esphome.io/components/sensor/...

Scheme: https://github.com/MiguelAngelLV/lach...

Chapters:
00:00 Presentation
00:10 What is a rotary encoder?
00:42 Differences between Encoder and Potentiometer
01:10 Operation of an encoder
01:48 Necessary material
01:58 Assembly
02:26 Configure an Encoder in ESPHome
03:35 Using the Encoder in Home Assistant
04:10 Additional settings
06:10 Using the encoder button
07:23 Maximums, minimums and buttons in Home Assistant
07:52 Control a light with an Encoder in Home Assistant
11:36 Farewell
Tags: #homeassistant #esphome #esp32 #esp8266 #domotic