My guess is that at some point you had a lux sensor (illuminance) as a condition and that entity has either had its name changed or has been deleted.
Check out the automation (either in the builder or in the yaml) to see if you have this condition. Then see if that entity still exists or if it’s name has changed.
Edit: for clarity