Rule to check status and change it if necessary (SOLVED)

You were not clear on what you want to achieve
I think that what you want is that AFTER sunset, if one of the two lights turns off then turn it back on.

You need to look at this design pattern: