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.

35 lines
1.7 KiB

  1. [Index](../README.md) | [Installation guide](installation.md) >
  2. # Why custom ESPHome firmware?
  3. This lamp could always be added to Home Assistant using the Yeelight integration. For this to work,
  4. the lamp had to be configured to enable a special "LAN control" option, which provides the interface
  5. that the Yeelight integration could talk to.
  6. January 2021, Xiaomi decided to remove the LAN control option from the firmware. Information about
  7. this can be found on the Yeelight forums:
  8. https://forum.yeelight.com/t/topic/22664
  9. In the forums, a work-around is offered: by providing your Mi ID, you can be added to some mythical
  10. white list, through which you'll get a special firmware upgrade that does have LAN control enabled.
  11. After that, no further ugprades should be done.
  12. This just didn't feel right, so I started looking into alternative solutions to regain control over
  13. the lamp. After opening it up, I was pleased to find an ESP32-WROOM-32D chip inside, meaning that it
  14. might be possible to build my own firmware for it using ESPHome.
  15. On the Home Assistant community forums, I found an existing thread where people already started
  16. poking at the lamp.
  17. https://community.home-assistant.io/t/hacking-yeelight-fw-enabling-lan-control/284406
  18. I joined the discussion and started poking as well. Some things turned out to be more complicated
  19. than anticipated and quite a bit of reverse engineering was required to make things work, but
  20. eventually this all resulted in working firmware.
  21. Documents related to the reverse engineering process can be found in a separate GitHub repository:
  22. https://github.com/mmakaay/esphome-yeelight_bs2-revengineering
  23. [Index](../README.md) | [Installation guide](installation.md) >