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.

37 lines
1.6 KiB

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