EspHome en dispositivos comerciales como la Xiaomi Desk Lamp

In this video tutorial I will show you how to install ESPHome on commercial devices, which are not initially intended for it. Thanks to this hack, we will achieve perfect integration with Home Assistant, totally local control and the possibility of taking advantage of unused GPIOs to add extra functions. You can find guides for a multitude of devices in the specific section of EspHome: https://devices.esphome.io/ ESPHome tutorial from 0:    • ¿Que son ESP8266, ESP32 y EspHome? Explica...   Buttons in ESPHome:    • Usa botones en EspHome y Home Assistant co...   Chapters: 00:00 Presentation 00:15 ESP8266 and ESP32 in commercial products 00:36 Advantages of installing ESPHome 01:16 Only disadvantage 01:32 How to install ESPHome on Tuya, Sonoff, Xiaomi devices... 01:49 ESPHome on Xiaomi Desk Lamp 02:32 Connect ESP32 to the computer via USB-TTL (UART) 03:24 Steps to follow 03:34 UART connection on Xiaomi Desk Lamp 04:50 ESPHome configuration and installation 07:17 Verification of the physical buttons of the flexo 07:44 Connection to Home Assistant 08:32 DHT sensor connection in the free GPIOs 09:05 DHT configuration in ESPHome 09:56 DHT Check in Home Assistant 10:13 Detect double press and long press 14:40 Turn on another lamp from the flexo 15:24 Farewell Tags: #homeassistant #esphome #esp32 #esp8266 #domotic