You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Maurice Makaay a61a546c70 Formatted the codebase using the ESPHome clang rules. 3 years ago
.github Update FUNDING.yml 3 years ago
binary_sensor Applied ESPHome-style code styling. 3 years ago
doc Use the active color for the long press power button night light. 3 years ago
light Applied ESPHome-style code styling. 3 years ago
output Applied ESPHome-style code styling. 3 years ago
sensor Applied ESPHome-style code styling. 3 years ago
text_sensor Applied ESPHome-style code styling. 3 years ago
.clang-format Applied ESPHome-style code styling. 3 years ago
.clang-tidy Applied ESPHome-style code styling. 3 years ago
.gitignore Moved to a proper ESPHome component structure. 3 years ago
CHANGELOG.md Formatted the codebase using the ESPHome clang rules. 3 years ago
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 3 years ago
LICENSE.md Create LICENSE.md 3 years ago
README.md Tiny fix in component vs. components. 3 years ago
__init__.py Use DISABLE_ASYNCTCP_ACK_TIMEOUTS to fix client disconnects (depends on not yet accepted pull request: https://github.com/esphome/esphome/pull/1712). 3 years ago
common.h Applied ESPHome-style code styling. 3 years ago
front_panel_hal.h Applied ESPHome-style code styling. 3 years ago
light_hal.h Applied ESPHome-style code styling. 3 years ago

README.md

ESPHome components for Xiaomi Mijia Bedside Lamp 2

The Bedside Lamp 2 is a smart RGBWW LED lamp, produced by Yeelight. It can be controlled via the WiFi network and using a touch panel on the front of the device. The touch panel contains a power button, a button that changes the color of the light and a slider that can be used to change the brightness of the light.

This project provides custom components for ESPHome, which make it possible to fully control every aspect of the lamp and to integrate the lamp in your Home Assistant setup.

Quick start guide

For those who have experience with flashing ESPHome onto devices:

  • Clone the GitHub repo into your ESPHome config/custom_components directory.
  • Copy [doc/example.yaml](doc/example.yaml) to config/your_device_name.yaml.
  • Modify the configuration to your needs (see the configuration guide]).
  • Compile the firmware.bin file and download it to the device to which you have connected your serial to USB adapter (FTDI).
  • Open up the lamp and connect its TX, RX, GND and GPIO0 debug pads to the serial adapter (see the installation guide for the debug pad locations).
  • Power up the lamp with GPIO0 connected to GND to enable flashing mode.
  • Flash firmware.bin onto the device.

If you experience regular disconnects between Home Assistant and the lamp, then take a look at the known issues document.

Table of contents