Libretiny + HA + RGBCW lights (BK7231N CBLC5)

I’ve followed this instruction to add some GU10 RGBCW light that I have:

Everything works correctly but sometimes devices are being duplicated in the HA losing the connection and making the automation not work because the entity id is changed. The solution I found is just to delete the new entity and add the entity id again but it’s not comfortable.