It’s been 6 months and they still couldn’t help me, so I decided to do everything myself.
Even though I wrote before that I would never buy a Yeelight product again, I had to. I bought exactly the same lamp, soldered the programmer, downloaded the firmware, and wrote it to the faulty lamp.
If someone needs help and firmware - write, I’ll put it on GitHub for everyone in need.
third-party firmware esphome works fine, but there is a small problem that did not suit me… the dimmer (YLKG07YL) did not work with third-party firmware.