Automation Set Light to another Light

Hello, need help with an automation.

One lamp in a group is set to 100 percent and cold white by a motion detector as stair lighting and I would like to reset this one lamp to the status of the other lamps when it is switched off.

I tried to set the status with the action light_turn_on using states templates but without success, hope someone can help me

Please share your attempt.


i tryed this and in Traces i got this Error

got it to work, just had to pay attention to whether the color mode was xy or color_temp because otherwise it would have passed the value zero and there was an error