Student or Learner
"The lights that burst onto the scene matched the ones next door, activated when the dogs jumped the fence and added to the confusion with their barking. When an irate neighbour flung open his door, a further shout brought them to their mistress's side and they calmly sat to be stroked as the automatic lights went off."
Not sure what the underlined part means. Is it saying the light and the dog's barking throws the place into a confusion?