Merging Light and Switch entities on one Lovelace Card

Hello everyone,

I’m (quite) beginner in HA but I really love it, unfortunately I have , I guess, “beginner’s problem”.

I’ve installed smart light bulbs in group and smart switch (on the wall).

Is it possible to use Light Card Lovelace (to control brightness and color temperature) but change entity resposible for turning on/off lights? So tapping on the icon will change state of the switch but sliders can control light’s atributes.

I’ve found something about “templates” but it looks like creating card from scratch.

Sorry if there is somewhere exactly the same question but i couldn’t find it:(

Thanks for any hint:)