If you are using a presence sensor to trigger the automation you better off using my
Sensor Light blueprint. In this blueprint you will then have the ability to use a LUX sensor so if the light levels are below your setting the automation will run.
This is how I do this and is what you are after.
Blacky ![]()