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.

41 lines
1.8 KiB

3 years ago
  1. # ESPHome components for Xiaomi Mijia Bedside Lamp 2
  2. [ [Changelog](CHANGELOG.md) | [License](LICENSE.md) | [Code of conduct](CODE_OF_CONDUCT.md) ]
  3. The Bedside Lamp 2 is a smart RGBWW LED lamp, produced by Yeelight. It can
  4. be controlled via the WiFi network and using a touch panel on the front of
  5. the device. The touch panel contains a power button, a button that changes
  6. the color of the light and a slider that can be used to change the
  7. brightness of the light.
  8. This project provides custom components for ESPHome, which make it
  9. possible to fully control every aspect of the lamp and to integrate the
  10. lamp in your Home Assistant setup.
  11. ## Quick start guide
  12. For those who have experience with flashing ESPHome onto devices:
  13. * Clone the [GitHub repo](https://github.com/mmakaay/esphome-xiaomi_bslamp2)
  14. into your ESPHome `config/custom_components` directory.
  15. * Copy `[doc/example.yaml](doc/example.yaml)` to `config/your_device_name.yaml`.
  16. * Modify the configuration to your needs (see the [configuration guide](doc/configuration.md)]).
  17. * Compile the `firmware.bin` file and download it to the device to which you
  18. have connected your serial to USB adapter (FTDI).
  19. * Open up the lamp and connect its `TX`, `RX`, `GND` and `GPIO0` debug pads
  20. to the serial adapter (see the [installation
  21. guide](doc/installation.md) for the debug pad locations).
  22. * Power up the lamp with `GPIO0` connected to GND to enable flashing mode.
  23. * Flash `firmware.bin` onto the device.
  24. If you experience regular disconnects between Home Assistant and the lamp,
  25. then take a look at the [known issues document](doc/known_issues.md).
  26. ## Table of contents
  27. * [Why custom firmware?](doc/why_custom_firmware.md)
  28. * [Installation guide](doc/installation.md)
  29. * [Configuration_guide](doc/configuration.md)
  30. * [Flashing guide](doc/flashing.md)
  31. * [Known issues](doc/known_issues.md)
  32. * [Sponsoring](doc/sponsoring.md)