I’m not sure how to actually do it, since I don’t have anything to test it with at the moment. Is there any code in your configuration.yaml that calls the fan switch platform? If there is you could try applying this logic and convert it completely to light ( so you get a slider) and then only add that new light in your HomeKit.