Here in the second two pics however where I’ve copy and pasted the same code it does not fire correctly the lights turn on when motion is detected but it turns the light onto the same color as it was before.
LimitlessLED? I had/have the same issue. Any attempt to set the Kelvin or Light_temperature results in some default colour instead of changing to warm white etc.