Help automating lights: on when first person arrives only between sunset and sunrise

I am having trouble setting an automation. There is a light I want to turn on if these conditions are met:

-it is between sunset and sunrise
-when the first of 2 people (phones) arrive home
-do not turn on while someone is home

any help would be appreciated. Thanks!

If anyone arrives home Set a virtual switch to on

Then if virtual switch changes to on turn the light on. - this will only change when the first person arrives.