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:
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: