The first time after connecting to the Wi-Fi router, the connection to the router was lost after the chandelier was turned off. The chandelier was offline. After installing the switch - Yeelight YLKG12YL Electronically Switched Switch and enabling the yeelight flex switch in the program settings, the problem of the chandelier falling offline was solved, now it works fine both through the home assistant and through Alice.