There are lots of ways to accomplish it, but if you have a heavy feed coming into your controller (above 20 amps), then there needs to be some intermediate protection set if it ultimately winds up powering 15 or 20a receptacles. This can be done with some internal fusing, track-mount circuit breakers, a small sub-panel, etc.
Most of the commercially-built light controllers that I've seen fail to this. It's relatively expensive (at least compared to not providing protection) and it is a highly competitive market. They won't meet code and they will invalidate your fire insurance on the off chance that it would cover a loss in a house with a grow. These companies will frequently tell you that their controllers are code-compliant - they just don't tell you where. They rely on a very tightly delineated portion of the code that only applies if every one of the restrictions are met. The code provision is designed for warehouse lighting, with a cord connecting the ballast to the receptacle that is less than 2' long, the cordset is listed (tested and published as being appropriate) for that service, the ballast hangs immediately below the receptacle, the cord is visible over it's entire length, etc. In short - it will never apply to any of our installations and will be illegal for use in them.
Most of the commercially-built light controllers that I've seen fail to this. It's relatively expensive (at least compared to not providing protection) and it is a highly competitive market. They won't meet code and they will invalidate your fire insurance on the off chance that it would cover a loss in a house with a grow. These companies will frequently tell you that their controllers are code-compliant - they just don't tell you where. They rely on a very tightly delineated portion of the code that only applies if every one of the restrictions are met. The code provision is designed for warehouse lighting, with a cord connecting the ballast to the receptacle that is less than 2' long, the cordset is listed (tested and published as being appropriate) for that service, the ballast hangs immediately below the receptacle, the cord is visible over it's entire length, etc. In short - it will never apply to any of our installations and will be illegal for use in them.