Two homes in Perth have caught fire with one sparked by a faulty air conditioner and the other by a phone charger.