Been doing this myself. Had C4 installed when the house was built but have installed Home Assistant. C4 only shows the lights to HA but HA directly integrates everything else I have in C4 apart from my alarm system. HA also integrates with a whole bunch of stuff that C4 won't talk to (e.g. the cheap Tuya devices). I've used HA to do a couple of automations based on occupancy (when all the mobile devices have left the home) and it works great. The main thing I want to figure out is how to fade the lights in and out on HA like they do with C4.