I suspect that with the error you are getting, you are setting the devices up in the automations.yaml
The problem with these bulbs is that they use a Broadcom chip in the hardware and there seems to be no method to flash it with something like Tasmota. I had success with the earlier firmware but as soon as it got updated, they stopped responding via HA and were only controllable via Google or Amazon assistants.
It would help if you could describe what you have in place and show us the code you are using in which files. Remember to use the code tags and make sure you have no usernames or passwords accessible.