I wanted the lights to know what temperature and brightness to turn on to based on a schedule, but there wasn't a way for them to pull the desired state upon power-on; instead I'd have to detect power on and push a state change to the desired color temp. This meant they'd turn on at whatever last state they had on power-off, and a few seconds later (or frequently much slower) adjust to scheduled color temp.
This may have worked better had I used smart switches to turn lights on/off rather than wall switches that cut power to the bulbs, but I also had issues with the smart hub losing connection to bulbs occasionally, HA not reliably seeing power-on events for the bulbs, and HA losing connection to the hub. (Bulbs/hub were Ikea tradfri; perhaps other manufacturers' products are more reliable).
This was a couple years ago; I haven't looked into it much since - maybe it would be easier to do now.