How to create a template light that turn on one or another light based on the status of a switch

Hi, I have a bed lamp that has a special night mode.

I can only turn on this special state with a command so I created a command light.

I would like to combine the two light so the “normal”one is switched on almost every time BUT if is night ( or based on a switch status) it will turn on the light with the command in the specific night mode. Any hint how to reach it?

Not sure what a command light is, but either way you should be able to achieve it with a Template Light.
For the services I would call a script, where you can turn on your light or mode based on your conditions.