Two entities for on light

I very new to home assistant and I’m having a problem with a light. I have a zbminil2 to turn on the light, which works. The light is a hue white zigbee.
One entity is a switch to turn on the light. The other entity is the bulb control for color on / off. Now for the light to work the blub entity has to be always on.
It all works when i turn on off the light via switch. Problem is after a while the blub entity will turn off so if i turn on the switch it will not turn on because the blub is off. I can find anything that says keep always on. Thanks for any help.