I've used one of those bee traps with the mason jar on the bottom, it didn't work for me on my deck, but I've seen them other places just full of those darn bees. Wife read about filling a gray plastic shopping bag like from wally world with other plastic bags and tying it up and then hanging the stuffed gray bag in close proximity to where the carpenter bees hang out/bore/nest. The carpenter bees see the plastic grey bag and think it is a hornets nest and they move on as hornets will kill carpenter bees.
The gray bag has been up for a couple weeks and have not seen a carpenter bee in about 2 weeks.
GO BIG ORANGE !
I meant to behave, but there were just way too many other options available at the time.