Light template (Hue-Bulb and Switch)

I have to following situation:

I have a Hue-bulb behind a switch (also controllable through HA).

Therefore, if the switch is turned off i need to turn it on before i can turn on/use the huebulb.

How can i combine this within a light template?
What i want to achieve is to have only 1 entity to control. Which is more or less the hue bulb but with the condition that, if i try to turn on the entity and the switch is not turned on, it will turn on the switch, wait a second and turn on the entity (aka huebulb)

Or is there any more elegant way to achieve this?