Solar timer project to charge an EV

So I made this on a breadboard and it works perfectly. I can adjust the sensitivity to any level, and I can override with a simple switch.
Now to work on the hysteresis aspect, how to get this to respond well to changing light situations without flipping the relay often.


Here's a picture attached.
Simple but it works.
Thanks for the help so far!