JPS:
As to your townhome question. Here in NJ a 'townhouse' is a single family dwelling, as in a structure with 8 townhouse units is 8-single family houses. Work within each unit requires a seperate permit. The hot tub in this instance is in/at a single family home.

NJ also has a requirement for Emergency Off on public pools.

An alternative for the hot tub is a 'Stengel Switch" which shuts down the pump(s) with an increase in suction. Another option was/is a raised diverter on the return line.

John


John