I do something similar with an ‘evening mode’
I use one average lux sensor to turn this mode on when lux is low enough and it’s close to sunset.
That way, all my lighting automations only work when it’s genereally dark enough in the house.
Andy