The lights did not go out Tuesday night on the Statue of Liberty — they simply failed to go on at dusk because of a failure to reset an electrical controller, officials said Wednesday.

Various reports overnight said the lights went out for “several hours” and “more than an hour” before being restored at 11:45 p.m.

The National Park Service said the lights for the crown and the torch turned on at desk Tuesday as usual, but the lights for the main body of the statue did not.

The outage was indirectly linked to superstorm Sandy.

The lights to the main body of the statue had been switched off during the day Tuesday as work was done on a new emergency generator as part of a Sandy recovery project, the park service said.

After that work was finished for the day, power was restored, but the controller was not properly reset, the park service said.

“In other words, the controller was not reset to turn them on at dusk when they normally come on,” park service spokesman Gerald Willis said in an email.

advertisement | advertise on newsday

Although this was an unplanned outage, there will be some planned outages in the coming weeks as the work continues, the park service said.

“We will alert media and the public to these outages through statements to the media and on our social media platforms,” the park service said.

Social media comments had sprung up noting the outage came just hours before the start of “A Day Without A Woman” protest on economic and social inequality.