Checking Automation Runs at Startup

Is there a way to have or tell HA to check an automation status at start-up and run it if it was not run?

We had a power outage today that lasted past my sunset automation time. When the power came back on, the server started back up (along with HA) cleanly and with no issues but I had to go manually turn on the lights that would have been turned on with the sunset automation.

I never gave it much thought until today so I thought I would post the question and see if there was a solution.