Problem with an outdoor room with 2 automated nightlights not turning back on after motionsensor trigger!

Got 3 lights i the same outdoor …2 white ambiance and one discover floodlight … the 2 white i got an automation for dusk dawn Nightlight setup …works fine… so i added a outdoor sensor to trigger this 2 white plus and one discover floodlight to bright settings for 5 minutes… works fine after u trigger … but after the 5 minutes i want the the 2 white ambience go back to Nightlight …and they don`t …is there some flaw? or workaround with scenes …let me know … Thx

SOLVED

put the outdoorsensor after triggering the 5 min BACK to last state… didnt know there was an option