A teenager accused of firing gunshots at a school in Perth’s northern suburbs is allowed to go home, where he must stay under the supervision of his parents.