Time based magic occupancy

Hey all

I haven’t posted home automation here before hopefully this is the correct spot. I am trying to run a home automation that will run from sunrise to sunset lights should be a certain color and/or temperature when motion sensor goes off, from sun set to sun rise should be a different temperature and or color, but they seem to cancel each other out on the automation. To make sure the light doesn’t stay on too long I’m using the home bridge plug-in magic occupancy, which when motion detected trigger occupancy for x seconds if motion is detected the timer resets for occupancy, when occupancy is no longer detected turn light off.

What are you using for the automation? Since you mentioned color/temperature, I know you’re not using Lutron for the automation. Is it just in the Home app?