How do you control the fan? Do you turn it off at the switch or the pull chain? you would need to leave the switch in the on position to keep power to both the fan and the lights. I think you would have to automate both the fan and the lights as to keep the constant power and control each separately. Some of the smart switches have a built in scene controller , So you could do both from one switch.