You can solve the problem without doing it that way. First, when your lights are off, the ambient temp should be within range, so you don't need the fan running then, at least for temperature reasons. When your lights are on and you need air flow, simply use a dimmer switch to adjust the fan...