Alternatively, you might consider using Hubitat Simple Lighting or Motion Lighting for this automation instead. Both can handle it with ease; with Simple Lighting, I'd recommend two instances, one to turn it on if after sunset and one to turn it off any time (it's so simple a restriction based on time won't turn it off if it happens to be after sunrise or whatever your end time is). Motion Lighting has a lot of options for almost anything people have requested.
Rule Machine is cool, but if you're not trying to learn it, these are a lot less work to set up (and as a bonus might execute a bit faster).