Shift color temperature and brightness on a schedule independent of any actions or other triggers

Is there a way to shift the brightness based on a schedule if the light comes on based on another trigger? For example, from 9am to 5pm 100% brightness and 5pm-9am, overnight reduce the brightness to 25%?

Thanks!

Yes , you can do that with shortcuts