Hi David, looking at the code there was an issue in the logic. What this meant was that if the sequence was triggered during the hour of sunset (in your case 5-6pm) it would run successfully, however if it was after that hour (ie from 6pm onwards) it would not pass.
I've modified this and it should now be resolved. Can you please let me know if it works for you tonight?