A teenager accused of tossing a firecracker into Perth bushland on New Year’s Eve has been charged after it sparked a bushfire that threatened homes on the city’s eastern fringe.

More than 2,000 homes and businesses lost power as the fire, east of Perth airport in Western Australia, approached properties near Maida Vale, Forrestfield and Kalamunda, police said in a statement on Thursday.

The fire was still burning on Thursday afternoon, contained but not controlled, with firefighters warning that a change in weather conditions posed a possible fresh threat to lives and homes.

Sign up: AU Breaking News email

Arson investigators have charged a 19-year-old man from Kalamunda with breach of duty after he allegedly threw a firecracker into dry grass just after midnight, igniting the blaze.

Police said the fire had “quickly gained in intensity”, and multiple firefighting crews and police assisted by a helicopter worked overnight to contain it.

More than 160 firefighters battled the blaze as the fire tracked westward, close to the city’s main airport, destroying more than 25 hectares of native bushland.

The emergency escalated on Thursday as temperatures rose and the fire threatened homes and property, before Emergency WA downgraded its warning to a watch-and-act alert.

An evacuation centre was opened at High Wycombe Community and Recreation Centre, as fire conditions were constantly changing and residents were on alert.

“We have got a fire break all the way around the fire, but there is still a significant risk to the community,” incident controller Paul Postma said on Thursday morning.

“We’ve had power lines burnt. We’ve had trees burnt.

“It’s still not controlled, we have the fire inside a box – contained within mineral earth brakes put in by dozers and front-end loaders, and it’s going to take us a number of hours to make sure that we get the fire controlled.”

Several structures, including fences and a shed were thought destroyed but no homes were reported lost in the fire, as authorities urged residents to remain vigilant.

The teenager charged over the incident was due to front the Perth magistrates court on Thursday.