We have a standard 200amp overhead service. Comes into meter pan and from the meter pan we ran a 6' of 2"pvc into house to service entrance rated transfer switch. Out of switch we ran SER cable to panel. Inspector said we can't run that far in house as per code. I know if it was SEU cable we have to be the nearest point of entry in home. If wires are physically protected in thought you run as far as you want. We have been doing this for years and never had any problems in other towns. I am looking to find what code applies to this.